Files
StructureLib/master/javadoc/com/gtnewhorizon/structurelib/structure/IStructureElementChain.html
T

620 lines
44 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>IStructureElementChain (StructureLib 1.4.35-master.1+19179ec894 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.7.1.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.min.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="IStructureElementChain (StructureLib 1.4.35-master.1+19179ec894 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":18,"i1":18,"i2":6,"i3":18,"i4":18,"i5":18,"i6":18,"i7":18,"i8":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../index.html?com/gtnewhorizon/structurelib/structure/IStructureElementChain.html" target="_top">Frames</a></li>
<li><a href="IStructureElementChain.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.gtnewhorizon.structurelib.structure</a></div>
<h2 title="Interface IStructureElementChain" class="title">Interface IStructureElementChain&lt;T&gt;</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;T&gt;</code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">IStructureElementChain&lt;T&gt;</span>
extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;T&gt;</pre>
<div class="block">Use StructureUtility to instantiate</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.com.gtnewhorizon.structurelib.structure.IStructureElement">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;com.gtnewhorizon.structurelib.structure.<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a></h3>
<code><a href="IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure">IStructureElement.BlocksToPlace</a>, <a href="IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>default boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#check(T,net.minecraft.world.World,int,int,int)">check</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>default boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#couldBeValid(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">couldBeValid</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger)</code></th>
<td class="colLast">
<div class="block">Pure (stateless and side effect free) function to test if current block could be valid.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fallbacks()">fallbacks</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>default <a href="IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure">IStructureElement.BlocksToPlace</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBlocksToPlace(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">getBlocksToPlace</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger,
<a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a>&nbsp;env)</code></th>
<td class="colLast">
<div class="block">A simplified version of survivalPlaceBlock.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>default java.util.List&lt;java.lang.String&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDescription()">getDescription</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a human-readable description of what block(s) this element accepts.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>default boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#placeBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">placeBlock</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>default boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawnHint(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">spawnHint</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>default <a href="IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">survivalPlaceBlock</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger,
<a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a>&nbsp;env)</code></th>
<td class="colLast">
<div class="block">Try place the block by taking resource from given <a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>default <a href="IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)">survivalPlaceBlock</a></span>&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger,
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a>&nbsp;s,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html?is-external=true" title="class or interface in net.minecraft.entity.player" class="externalLink">EntityPlayerMP</a>&nbsp;actor,
java.util.function.Consumer&lt;<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html?is-external=true" title="class or interface in net.minecraft.util" class="externalLink">IChatComponent</a>&gt;&nbsp;chatter)</code></th>
<td class="colLast">
<div class="block">Try place the block by taking resource from given IItemSource.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.com.gtnewhorizon.structurelib.structure.IStructureElement">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;com.gtnewhorizon.structurelib.structure.<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a></h3>
<code><a href="IStructureElement.html#getStepA()">getStepA</a>, <a href="IStructureElement.html#getStepB()">getStepB</a>, <a href="IStructureElement.html#getStepC()">getStepC</a>, <a href="IStructureElement.html#isNavigating()">isNavigating</a>, <a href="IStructureElement.html#noPlacement()">noPlacement</a>, <a href="IStructureElement.html#resetA()">resetA</a>, <a href="IStructureElement.html#resetB()">resetB</a>, <a href="IStructureElement.html#resetC()">resetC</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="fallbacks()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fallbacks</h4>
<pre class="methodSignature"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;[]&nbsp;fallbacks()</pre>
</li>
</ul>
<a id="check(java.lang.Object,net.minecraft.world.World,int,int,int)">
<!-- -->
</a><a id="check(T,net.minecraft.world.World,int,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>check</h4>
<pre class="methodSignature">default&nbsp;boolean&nbsp;check&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#check(T,net.minecraft.world.World,int,int,int)">check</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="couldBeValid(java.lang.Object,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">
<!-- -->
</a><a id="couldBeValid(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>couldBeValid</h4>
<pre class="methodSignature">default&nbsp;boolean&nbsp;couldBeValid&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="IStructureElement.html#couldBeValid(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">IStructureElement</a></code></span></div>
<div class="block">Pure (stateless and side effect free) function to test if current block could be valid. Used to give user hints
about incorrectly placed blocks given a controller and trigger item. If couldBeValid(...) == false for a set of
channels, with those same tiers, check(...) == false. Not required, defaults to true which is always safe but
won't give the user error hints.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#couldBeValid(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">couldBeValid</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="spawnHint(java.lang.Object,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">
<!-- -->
</a><a id="spawnHint(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spawnHint</h4>
<pre class="methodSignature">default&nbsp;boolean&nbsp;spawnHint&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#spawnHint(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">spawnHint</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="placeBlock(java.lang.Object,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">
<!-- -->
</a><a id="placeBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>placeBlock</h4>
<pre class="methodSignature">default&nbsp;boolean&nbsp;placeBlock&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#placeBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack)">placeBlock</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a id="getDescription()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDescription</h4>
<pre class="methodSignature">@Nullable
default&nbsp;java.util.List&lt;java.lang.String&gt;&nbsp;getDescription()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="IStructureElement.html#getDescription()">IStructureElement</a></code></span></div>
<div class="block">Returns a human-readable description of what block(s) this element accepts. Used for diagnostic messages when
structure checks fail (e.g. "expected Input Bus at (1, 2, 3)").
<p>
Unlike <a href="IStructureElement.html#getBlocksToPlace(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)"><code>IStructureElement.getBlocksToPlace(T, net.minecraft.world.World, int, int, int, net.minecraft.item.ItemStack, com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)</code></a>, which returns the full set of concrete block variants for autoplacing (e.g.
every tier of Input Bus), this method returns <b>category-level</b> descriptions suitable for display to the
player (e.g. just "Input Bus"). It also requires no parameters, no world, trigger item, or environment, making it
usable in contexts where those are unavailable.
<p>
Implementations should return <b>lang keys</b> (e.g. <code>"tile.blockGlass.name"</code>) rather than pre-translated
display names. The caller is responsible for translating these keys on the client side via
<code>StatCollector.translateToLocal()</code>. If a key has no matching translation, <code>translateToLocal</code> returns
the input string unchanged, so pre-translated fallback strings also work.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#getDescription()">getDescription</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a list of accepted block descriptions as lang keys (or display names as fallback), or null if no
description is available</dd>
</dl>
</li>
</ul>
<a id="getBlocksToPlace(java.lang.Object,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">
<!-- -->
</a><a id="getBlocksToPlace(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBlocksToPlace</h4>
<pre class="methodSignature">@Nullable
default&nbsp;<a href="IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure">IStructureElement.BlocksToPlace</a>&nbsp;getBlocksToPlace&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger,
<a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a>&nbsp;env)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="IStructureElement.html#getBlocksToPlace(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">IStructureElement</a></code></span></div>
<div class="block">A simplified version of survivalPlaceBlock. Return null if not implemented.
<p>
<b>BY OVERRIDING THIS TO NULL, YOU ACKNOWLEDGE THAT THE <a href="IStructureElement.html#check(T,net.minecraft.world.World,int,int,int)"><code>IStructureElement.check(Object, World, int, int, int)</code></a> OF THIS
CLASS IS SIDE EFFECT FREE AND CAN HAVE ITS CHECK CALLED WITHOUT BREAKING ANYTHING. OTHERWISE OVERRIDE THE
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a> TO PROVIDE A
SIDEEFFECT FREE <a href="IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>.</b>
<p>
It should be noticed that this filter is only advisory and the actual
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a> or
<a href="IStructureElement.html#check(T,net.minecraft.world.World,int,int,int)"><code>IStructureElement.check(Object, World, int, int, int)</code></a> are free to reject/accept/place blocks not contained in this list,
e.g. when the element can be placed anywhere in the structure, but no more than 3 overall; when the structure
element cannot know all blocks it will accept at the time of calling; when this is backed by a legacy
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> that just didn't implement this API.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#getBlocksToPlace(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">getBlocksToPlace</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
<dd><code>trigger</code> - trigger item</dd>
<dd><code>env</code> - autoplacing environment</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>null if not implemented, otherwise an instance describing what kind of blocks will be placed by
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a></dd>
</dl>
</li>
</ul>
<a id="survivalPlaceBlock(java.lang.Object,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)">
<!-- -->
</a><a id="survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>survivalPlaceBlock</h4>
<pre class="methodSignature">default&nbsp;<a href="IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a>&nbsp;survivalPlaceBlock&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger,
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a>&nbsp;s,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html?is-external=true" title="class or interface in net.minecraft.entity.player" class="externalLink">EntityPlayerMP</a>&nbsp;actor,
java.util.function.Consumer&lt;<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html?is-external=true" title="class or interface in net.minecraft.util" class="externalLink">IChatComponent</a>&gt;&nbsp;chatter)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)">IStructureElement</a></code></span></div>
<div class="block">Try place the block by taking resource from given IItemSource.
<p>
You might want to use
<a href="StructureUtility.html#survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer)"><code>StructureUtility.survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, net.minecraft.entity.player.EntityPlayer)</code></a>
or its overloads to implement this.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)">survivalPlaceBlock</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
<dd><code>trigger</code> - trigger item</dd>
<dd><code>s</code> - drain resources from this place</dd>
<dd><code>actor</code> - source of action. for very critical errors you can also just send the error messages here,
bypassing any filter that chatter might have.</dd>
<dd><code>chatter</code> - send error messages here. Caller will choose an appropriate way to forward it to player if the
other fallbacks also fails.</dd>
</dl>
</li>
</ul>
<a id="survivalPlaceBlock(java.lang.Object,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">
<!-- -->
</a><a id="survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>survivalPlaceBlock</h4>
<pre class="methodSignature">default&nbsp;<a href="IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a>&nbsp;survivalPlaceBlock&#8203;(<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&nbsp;t,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true" title="class or interface in net.minecraft.world" class="externalLink">World</a>&nbsp;world,
int&nbsp;x,
int&nbsp;y,
int&nbsp;z,
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html?is-external=true" title="class or interface in net.minecraft.item" class="externalLink">ItemStack</a>&nbsp;trigger,
<a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a>&nbsp;env)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">IStructureElement</a></code></span></div>
<div class="block">Try place the block by taking resource from given <a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a>.
<p>
You might want to use
<a href="StructureUtility.html#survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer)"><code>StructureUtility.survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, net.minecraft.entity.player.EntityPlayer)</code></a>
or its overloads to implement this.
<p>
The default implementation provided will
<ol>
<li>Get <a href="IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via
<a href="IStructureElement.html#getBlocksToPlace(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)"><code>IStructureElement.getBlocksToPlace(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a>. If not null
<ol>
<li>call <a href="IStructureElement.html#check(T,net.minecraft.world.World,int,int,int)"><code>IStructureElement.check(Object, World, int, int, int)</code></a>. If this returns <code>true</code>, <a href="IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>
will be returned without further action.</li>
<li>Use the <a href="IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a> to determine an item to
place</li>
<li>Hand over control to
<a href="StructureUtility.html#survivalPlaceBlock(net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.util.ItemStackPredicate.NBTMode,net.minecraft.nbt.NBTTagCompound,boolean,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer,java.util.function.Consumer)"><code>StructureUtility.survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></a></li>
</ol>
</li>
<li>Call legacy
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a> if
<code>env.getActor()</code> contains an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html?is-external=true" title="class or interface in net.minecraft.entity.player" class="externalLink"><code>EntityPlayerMP</code></a></li>
<li>Emit warning under debug mode (or throw exception under panic mode), then return
<a href="IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a></li>
</ol>
It should be noticed that the default implementation is likely to cause unexpected issues if the
<a href="IStructureElement.html#check(T,net.minecraft.world.World,int,int,int)"><code>IStructureElement.check(Object, World, int, int, int)</code></a> is not side effect free, or is not idempotent. E.g. the
<a href="IStructureElement.html#check(T,net.minecraft.world.World,int,int,int)"><code>IStructureElement.check(Object, World, int, int, int)</code></a> will add current coord to a <code>List</code>. As this method
might be invoked at a location that is already accepted, this will cause the machine to have multiple of this
coord in its list.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">survivalPlaceBlock</a></code>&nbsp;in interface&nbsp;<code><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a>&lt;<a href="IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>&gt;</code></dd>
<dd><code>trigger</code> - trigger item</dd>
<dd><code>env</code> - autoplacing environment</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../index.html?com/gtnewhorizon/structurelib/structure/IStructureElementChain.html" target="_top">Frames</a></li>
<li><a href="IStructureElementChain.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>