UNPKG

crmod-api

Version:

A dynamic mod/asset generator for Cosmic Reach

93 lines (92 loc) 70.2 kB
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ModelCuboid | crmod-api</title><meta name="description" content="Documentation for crmod-api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">crmod-api</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">crmod-api</a></li><li><a href="ModelCuboid.html">ModelCuboid</a></li></ul><h1>Class ModelCuboid</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Defines a cuboid within a <a href="BlockModel.html" class="tsd-kind-class">BlockModel</a>.</p> <p> ModelCuboid</p> </div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L41">api/modelCuboid.js:41</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="ModelCuboid.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a> </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="ModelCuboid.html#ambientOcclusion" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ambient<wbr/>Occlusion</span></a> <a href="ModelCuboid.html#box" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>box</span></a> <a href="ModelCuboid.html#materials" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>materials</span></a> <a href="ModelCuboid.html#visible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>visible</span></a> </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="ModelCuboid.html#visibleFaces" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>visible<wbr/>Faces</span></a> </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="ModelCuboid.html#applyMatrixTransform" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>apply<wbr/>Matrix<wbr/>Transform</span></a> <a href="ModelCuboid.html#clone" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>clone</span></a> <a href="ModelCuboid.html#getMaterials" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Materials</span></a> <a href="ModelCuboid.html#serialize" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>serialize</span></a> <a href="ModelCuboid.html#setAllMaterials" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>All<wbr/>Materials</span></a> <a href="ModelCuboid.html#setAllVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>All<wbr/>Visible</span></a> <a href="ModelCuboid.html#setAmbientOcclusionEnabled" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Ambient<wbr/>Occlusion<wbr/>Enabled</span></a> <a href="ModelCuboid.html#setDownMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Down<wbr/>Material</span></a> <a href="ModelCuboid.html#setDownVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Down<wbr/>Visible</span></a> <a href="ModelCuboid.html#setEastMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>East<wbr/>Material</span></a> <a href="ModelCuboid.html#setEastVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>East<wbr/>Visible</span></a> <a href="ModelCuboid.html#setFaceMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Face<wbr/>Material</span></a> <a href="ModelCuboid.html#setFaceVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Face<wbr/>Visible</span></a> <a href="ModelCuboid.html#setIndividualMaterials" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Individual<wbr/>Materials</span></a> <a href="ModelCuboid.html#setIndividualVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Individual<wbr/>Visible</span></a> <a href="ModelCuboid.html#setNorthMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>North<wbr/>Material</span></a> <a href="ModelCuboid.html#setNorthVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>North<wbr/>Visible</span></a> <a href="ModelCuboid.html#setSouthMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>South<wbr/>Material</span></a> <a href="ModelCuboid.html#setSouthVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>South<wbr/>Visible</span></a> <a href="ModelCuboid.html#setUpMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Up<wbr/>Material</span></a> <a href="ModelCuboid.html#setUpVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Up<wbr/>Visible</span></a> <a href="ModelCuboid.html#setWestMaterial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>West<wbr/>Material</span></a> <a href="ModelCuboid.html#setWestVisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>West<wbr/>Visible</span></a> </div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_ModelCuboid" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Model<wbr/>Cuboid</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">box</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#constructor.new_ModelCuboid" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Initializes a new ModelCuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">box</span>: <span class="tsd-signature-type">Box3</span></span><div class="tsd-comment tsd-typography"><p>The bounding box of the cuboid.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L80">api/modelCuboid.js:80</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member"><a id="ambientOcclusion" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>ambient<wbr/>Occlusion</span><a href="#ambientOcclusion" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ambient<wbr/>Occlusion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Whether ambient occlusion is enabled for the cuboid.</p> </div><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L56">api/modelCuboid.js:56</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="box" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>box</span><a href="#box" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">box</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Box3</span></div><div class="tsd-comment tsd-typography"><p>The bounding box of the cuboid.</p> </div><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L48">api/modelCuboid.js:48</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="materials" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>materials</span><a href="#materials" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">materials</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ModelCuboidMaterials</span></div><div class="tsd-comment tsd-typography"><p>The materials for each face of the cuboid.</p> </div><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L64">api/modelCuboid.js:64</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="visible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>visible</span><a href="#visible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">visible</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ModelCuboidVisible</span></div><div class="tsd-comment tsd-typography"><p>The visibility of each face of the cuboid.</p> </div><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L72">api/modelCuboid.js:72</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Accessors</h2><section class="tsd-panel tsd-member"><a id="visibleFaces" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>visible<wbr/>Faces</span><a href="#visibleFaces" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature" id="visibleFaces.visibleFaces-1"><span class="tsd-signature-keyword">get</span> visibleFaces<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets number of visible faces.</p> </div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L343">api/modelCuboid.js:343</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="applyMatrixTransform" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>apply<wbr/>Matrix<wbr/>Transform</span><a href="#applyMatrixTransform" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="applyMatrixTransform.applyMatrixTransform-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">apply<wbr/>Matrix<wbr/>Transform</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">matrix</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#applyMatrixTransform.applyMatrixTransform-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Applies a matrix transformation to the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">matrix</span>: <span class="tsd-signature-type">Matrix4</span></span><div class="tsd-comment tsd-typography"><p>The matrix to apply.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L354">api/modelCuboid.js:354</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="clone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>clone</span><a href="#clone" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="clone.clone-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">clone</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#clone.clone-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Clones the cuboid into a new instance.</p> </div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><p>A new instance of the current cuboid.</p> <div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L365">api/modelCuboid.js:365</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getMaterials" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Materials</span><a href="#getMaterials" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getMaterials.getMaterials-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Materials</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a><span class="tsd-signature-symbol">[]</span><a href="#getMaterials.getMaterials-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets the materials for all faces of the cuboid.</p> </div><h4 class="tsd-returns-title">Returns <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a><span class="tsd-signature-symbol">[]</span></h4><div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L227">api/modelCuboid.js:227</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="serialize" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>serialize</span><a href="#serialize" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="serialize.serialize-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">serialize</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><a href="#serialize.serialize-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Serializes the cuboid into a JSON object.</p> </div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><p>The serialized cuboid as a JSON object.</p> <div class="tsd-comment tsd-typography"><h4>Memberof</h4><p>ModelCuboid</p> </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L380">api/modelCuboid.js:380</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setAllMaterials" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>All<wbr/>Materials</span><a href="#setAllMaterials" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setAllMaterials.setAllMaterials-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>All<wbr/>Materials</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">material</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setAllMaterials.setAllMaterials-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the material for all faces of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">material</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material to set.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L122">api/modelCuboid.js:122</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setAllVisible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>All<wbr/>Visible</span><a href="#setAllVisible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setAllVisible.setAllVisible-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>All<wbr/>Visible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">visible</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setAllVisible.setAllVisible-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the visibility for all faces of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">visible</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the faces are visible.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L238">api/modelCuboid.js:238</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setAmbientOcclusionEnabled" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Ambient<wbr/>Occlusion<wbr/>Enabled</span><a href="#setAmbientOcclusionEnabled" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setAmbientOcclusionEnabled.setAmbientOcclusionEnabled-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Ambient<wbr/>Occlusion<wbr/>Enabled</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">ambientOcclusionEnabled</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setAmbientOcclusionEnabled.setAmbientOcclusionEnabled-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the ambient occlusion for the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">ambientOcclusionEnabled</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether ambient occlusion is enabled.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L111">api/modelCuboid.js:111</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setDownMaterial" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Down<wbr/>Material</span><a href="#setDownMaterial" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setDownMaterial.setDownMaterial-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Down<wbr/>Material</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">material</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setDownMaterial.setDownMaterial-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the material for the down face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">material</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the down face.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L183">api/modelCuboid.js:183</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setDownVisible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Down<wbr/>Visible</span><a href="#setDownVisible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setDownVisible.setDownVisible-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Down<wbr/>Visible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">visible</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setDownVisible.setDownVisible-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the visibility for the down face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">visible</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the down face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L299">api/modelCuboid.js:299</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setEastMaterial" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>East<wbr/>Material</span><a href="#setEastMaterial" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setEastMaterial.setEastMaterial-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>East<wbr/>Material</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">material</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setEastMaterial.setEastMaterial-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the material for the east face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">material</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the east face.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L172">api/modelCuboid.js:172</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setEastVisible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>East<wbr/>Visible</span><a href="#setEastVisible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setEastVisible.setEastVisible-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>East<wbr/>Visible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">visible</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setEastVisible.setEastVisible-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the visibility for the west face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">visible</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the west face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L288">api/modelCuboid.js:288</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setFaceMaterial" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Face<wbr/>Material</span><a href="#setFaceMaterial" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setFaceMaterial.setFaceMaterial-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Face<wbr/>Material</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">direction</span>, <span class="tsd-kind-parameter">material</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setFaceMaterial.setFaceMaterial-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the material for a specific face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">direction</span>: <a href="Direction.html" class="tsd-signature-type tsd-kind-class">Direction</a></span><div class="tsd-comment tsd-typography"><p>The direction of the face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">material</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the face.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L150">api/modelCuboid.js:150</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setFaceVisible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Face<wbr/>Visible</span><a href="#setFaceVisible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setFaceVisible.setFaceVisible-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Face<wbr/>Visible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">face</span>, <span class="tsd-kind-parameter">visible</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setFaceVisible.setFaceVisible-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the visibility for a specific face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">face</span>: <a href="Direction.html" class="tsd-signature-type tsd-kind-class">Direction</a></span><div class="tsd-comment tsd-typography"><p>The direction of the face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">visible</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L266">api/modelCuboid.js:266</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setIndividualMaterials" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Individual<wbr/>Materials</span><a href="#setIndividualMaterials" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setIndividualMaterials.setIndividualMaterials-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Individual<wbr/>Materials</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">west</span>, <span class="tsd-kind-parameter">east</span>, <span class="tsd-kind-parameter">down</span>, <span class="tsd-kind-parameter">up</span>, <span class="tsd-kind-parameter">north</span>, <span class="tsd-kind-parameter">south</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setIndividualMaterials.setIndividualMaterials-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the material for each face of the cuboid individually.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">west</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the west face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">east</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the east face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">down</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the down face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">up</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the up face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">north</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the north face.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">south</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the south face.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L138">api/modelCuboid.js:138</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setIndividualVisible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Individual<wbr/>Visible</span><a href="#setIndividualVisible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setIndividualVisible.setIndividualVisible-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Individual<wbr/>Visible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">west</span>, <span class="tsd-kind-parameter">east</span>, <span class="tsd-kind-parameter">down</span>, <span class="tsd-kind-parameter">up</span>, <span class="tsd-kind-parameter">north</span>, <span class="tsd-kind-parameter">south</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setIndividualVisible.setIndividualVisible-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the visibility for each face of the cuboid individually.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">west</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the west face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">east</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the east face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">down</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the down face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">up</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the up face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">north</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the north face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">south</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the south face is visible.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L254">api/modelCuboid.js:254</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setNorthMaterial" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>North<wbr/>Material</span><a href="#setNorthMaterial" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setNorthMaterial.setNorthMaterial-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>North<wbr/>Material</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">material</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setNorthMaterial.setNorthMaterial-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the material for the north face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">material</span>: <a href="Material.html" class="tsd-signature-type tsd-kind-class">Material</a></span><div class="tsd-comment tsd-typography"><p>The material for the north face.</p> </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/arlojay/cosmic-reach-modding-api/blob/bf2f84f/api/modelCuboid.js#L216">api/modelCuboid.js:216</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setNorthVisible" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>North<wbr/>Visible</span><a href="#setNorthVisible" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setNorthVisible.setNorthVisible-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>North<wbr/>Visible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">visible</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ModelCuboid.html" class="tsd-signature-type tsd-kind-class">ModelCuboid</a><a href="#setNorthVisible.setNorthVisible-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the visibility for the north face of the cuboid.</p> </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">visible</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the north face is visible.</p>