mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-12 16:27:36 +00:00
Deploy javadoc from ref master
This commit is contained in:
1 parent
aef5ddf9ed
commit
aea2c67a0b
87 files changed
+940
-816
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>All Classes (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>All Classes (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>All Classes (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>All Classes (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
||||
+4
-4
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>StructureEvent.StructureElementVisitedEvent (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>StructureEvent.StructureElementVisitedEvent (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="StructureEvent.StructureElementVisitedEvent (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="StructureEvent.StructureElementVisitedEvent (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -279,8 +279,8 @@ extends <a href="../../../com/gtnewhorizon/structurelib/StructureEvent.html" tit
|
||||
int b,
|
||||
int c,
|
||||
<a href="../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><?> element)</pre>
|
||||
<div class="block">Fire this event on <code>MinecraftForge.EVENT_BUS</code> by populating it with given arguments.
|
||||
Do nothing if instrumenting isn't enabled for current thread.
|
||||
<div class="block">Fire this event on <code>MinecraftForge.EVENT_BUS</code> by populating it with given arguments. Do nothing if
|
||||
instrumenting isn't enabled for current thread.
|
||||
<p>
|
||||
Any <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang"><code>Exception</code></a> thrown by event listeners will be logged and ignored. <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><code>Error</code></a> will be propagated
|
||||
as is.</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>StructureEvent (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>StructureEvent (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="StructureEvent (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="StructureEvent (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -124,8 +124,8 @@ extends <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10
|
||||
All of these events will be fired on the <code>MinecraftForge.EVENT_BUS</code>, if they are
|
||||
enabled by <a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#enableInstrument-java.lang.Object-"><code>StructureLibAPI.enableInstrument(Object)</code></a>.
|
||||
<p>
|
||||
All public stuff in this class and its enclosed classes are considered part of the public API.
|
||||
Backwards compatibility is maintained to the maximum extend possible.</div>
|
||||
All public stuff in this class and its enclosed classes are considered part of the public API. Backwards
|
||||
compatibility is maintained to the maximum extend possible.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>StructureLibAPI (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>StructureLibAPI (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,13 +11,13 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="StructureLibAPI (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="StructureLibAPI (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":41,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9};
|
||||
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":41,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@@ -109,7 +109,8 @@ var activeTableTab = "activeTableTab";
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">StructureLibAPI</span>
|
||||
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
|
||||
<div class="block">A stable interface into the structure lib's internals. Backwards compatibility is maintained to the maximum extend possible.</div>
|
||||
<div class="block">A stable interface into the structure lib's internals. Backwards compatibility is maintained to the maximum extend
|
||||
possible.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -273,11 +274,17 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>static <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/Item.html?is-external=true" title="class or interface in net.minecraft.item">Item</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#getDefaultHologramItem--">getDefaultHologramItem</a></span>()</code>
|
||||
<div class="block">Get the hologram item.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>static <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/Item.html?is-external=true" title="class or interface in net.minecraft.item">Item</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#getItemBlockHint--">getItemBlockHint</a></span>()</code>
|
||||
<div class="block">Get the ItemBlock for StructureLib supplied hint block.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#hintParticle-net.minecraft.world.World-int-int-int-net.minecraft.block.Block-int-">hintParticle</a></span>(<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">World</a> w,
|
||||
int x,
|
||||
@@ -288,7 +295,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Generate a new hint particle on client side at given location using textures from given block.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#hintParticle-net.minecraft.world.World-int-int-int-net.minecraft.util.IIcon:A-">hintParticle</a></span>(<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">World</a> w,
|
||||
int x,
|
||||
@@ -298,7 +305,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Generate a new hint particle on client side at given location using given textures.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#hintParticleTinted-net.minecraft.world.World-int-int-int-net.minecraft.block.Block-int-short:A-">hintParticleTinted</a></span>(<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">World</a> w,
|
||||
int x,
|
||||
@@ -310,7 +317,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Generate a new hint particle on client side at given location using textures from given block with a tint.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#hintParticleTinted-net.minecraft.world.World-int-int-int-net.minecraft.util.IIcon:A-short:A-">hintParticleTinted</a></span>(<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">World</a> w,
|
||||
int x,
|
||||
@@ -321,7 +328,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Generate a new hint particle on client side at given location using given textures with a tint.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#isBlockTriviallyReplaceable-net.minecraft.world.World-int-int-int-net.minecraft.entity.player.EntityPlayer-">isBlockTriviallyReplaceable</a></span>(<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">World</a> w,
|
||||
int x,
|
||||
@@ -331,7 +338,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Determines if given block can be replaced without much effort.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#isBlockTriviallyReplaceable-net.minecraft.world.World-int-int-int-net.minecraft.entity.player.EntityPlayerMP-">isBlockTriviallyReplaceable</a></span>(<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">World</a> w,
|
||||
int x,
|
||||
@@ -341,19 +348,19 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<tr id="i14" class="altColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#isDebugEnabled--">isDebugEnabled</a></span>()</code>
|
||||
<div class="block">Check if structure debug mode is on.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i14" class="altColor">
|
||||
<tr id="i15" class="rowColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#isInstrumentEnabled--">isInstrumentEnabled</a></span>()</code>
|
||||
<div class="block">Check if instrumenting is enabled.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i15" class="rowColor">
|
||||
<tr id="i16" class="altColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#markHintParticleError-net.minecraft.entity.player.EntityPlayer-net.minecraft.world.World-int-int-int-">markHintParticleError</a></span>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html?is-external=true" title="class or interface in net.minecraft.entity.player">EntityPlayer</a> player,
|
||||
<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">World</a> w,
|
||||
@@ -363,50 +370,50 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Update the tint of given hint particle.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i16" class="altColor">
|
||||
<tr id="i17" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#queryAlignment-com.gtnewhorizon.structurelib.alignment.IAlignmentProvider-">queryAlignment</a></span>(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider)</code>
|
||||
<div class="block">Query the ExtendedFacing of this tile entity from client side.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i17" class="rowColor">
|
||||
<tr id="i18" class="altColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#sendAlignment-com.gtnewhorizon.structurelib.alignment.IAlignmentProvider-">sendAlignment</a></span>(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider)</code>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i18" class="altColor">
|
||||
<tr id="i19" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#sendAlignment-com.gtnewhorizon.structurelib.alignment.IAlignmentProvider-net.minecraft.entity.player.EntityPlayerMP-">sendAlignment</a></span>(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider,
|
||||
<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">EntityPlayerMP</a> player)</code>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to given player.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i19" class="rowColor">
|
||||
<tr id="i20" class="altColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#sendAlignment-com.gtnewhorizon.structurelib.alignment.IAlignmentProvider-cpw.mods.fml.common.network.NetworkRegistry.TargetPoint-">sendAlignment</a></span>(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider,
|
||||
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/cpw/mods/fml/common/network/NetworkRegistry.TargetPoint.html?is-external=true" title="class or interface in cpw.mods.fml.common.network">NetworkRegistry.TargetPoint</a> targetPoint)</code>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players around target point.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i20" class="altColor">
|
||||
<tr id="i21" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#sendAlignment-com.gtnewhorizon.structurelib.alignment.IAlignmentProvider-net.minecraft.world.World-">sendAlignment</a></span>(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider,
|
||||
<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">World</a> dimension)</code>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players in that dimension.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i21" class="rowColor">
|
||||
<tr id="i22" class="altColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#setDebugEnabled-boolean-">setDebugEnabled</a></span>(boolean enabled)</code> </td>
|
||||
</tr>
|
||||
<tr id="i22" class="altColor">
|
||||
<tr id="i23" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#startHinting-net.minecraft.world.World-">startHinting</a></span>(<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">World</a> w)</code>
|
||||
<div class="block">Start a batch of hinting.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i23" class="rowColor">
|
||||
<tr id="i24" class="altColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#updateHintParticleTint-net.minecraft.entity.player.EntityPlayer-net.minecraft.world.World-int-int-int-short:A-">updateHintParticleTint</a></span>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html?is-external=true" title="class or interface in net.minecraft.entity.player">EntityPlayer</a> player,
|
||||
<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">World</a> w,
|
||||
@@ -697,12 +704,13 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
appropriate. Otherwise, these events will not be sent at all, regardless of whether a listener for these events
|
||||
are registered.
|
||||
<p>
|
||||
Identifiers are required to be value-comparable, i.e. overrides <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>Object.equals(Object)</code></a>.
|
||||
Suggested identifier includes
|
||||
Identifiers are required to be value-comparable, i.e. overrides <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>Object.equals(Object)</code></a>. Suggested
|
||||
identifier includes
|
||||
<ul>
|
||||
<li>Mod Instance or <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/cpw/mods/fml/common/ModContainer.html?is-external=true" title="class or interface in cpw.mods.fml.common"><code>ModContainer</code></a></li>
|
||||
<li><a href="../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable"><code>IConstructable</code></a> and its friends, if you are triggering structure check via this interface.</li>
|
||||
<li><a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/ResourceLocation.html?is-external=true" title="class or interface in net.minecraft.util"><code>ResourceLocation</code></a></li>
|
||||
<li>Mod Instance or <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/cpw/mods/fml/common/ModContainer.html?is-external=true" title="class or interface in cpw.mods.fml.common"><code>ModContainer</code></a></li>
|
||||
<li><a href="../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable"><code>IConstructable</code></a> and its friends, if you are
|
||||
triggering structure check via this interface.</li>
|
||||
<li><a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/ResourceLocation.html?is-external=true" title="class or interface in net.minecraft.util"><code>ResourceLocation</code></a></li>
|
||||
</ul>
|
||||
<p>
|
||||
It's an API abuse for normal <a href="../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureDefinition</code></a> users to depend on this feature. They have full control
|
||||
@@ -754,9 +762,11 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<li class="blockList">
|
||||
<h4>startHinting</h4>
|
||||
<pre>public static void startHinting(<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">World</a> w)</pre>
|
||||
<div class="block">Start a batch of hinting. All hints particles generated during one batch will be considered to belong to one hologram.
|
||||
<div class="block">Start a batch of hinting. All hints particles generated during one batch will be considered to belong to one
|
||||
hologram.
|
||||
<p>
|
||||
You don't need to call this unless your constructable tool didn't call <a href="../../../com/gtnewhorizon/structurelib/alignment/constructable/ConstructableUtility.html#handle-net.minecraft.item.ItemStack-net.minecraft.entity.player.EntityPlayer-net.minecraft.world.World-int-int-int-int-"><code>ConstructableUtility.handle(ItemStack, EntityPlayer, World, int, int, int, int)</code></a></div>
|
||||
You don't need to call this unless your constructable tool didn't call
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/constructable/ConstructableUtility.html#handle-net.minecraft.item.ItemStack-net.minecraft.entity.player.EntityPlayer-net.minecraft.world.World-int-int-int-int-"><code>ConstructableUtility.handle(ItemStack, EntityPlayer, World, int, int, int, int)</code></a></div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="endHinting-net.minecraft.world.World-">
|
||||
@@ -766,9 +776,11 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<li class="blockList">
|
||||
<h4>endHinting</h4>
|
||||
<pre>public static void endHinting(<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">World</a> w)</pre>
|
||||
<div class="block">End current batch of hinting. All hints particles generated during one batch will be considered to belong to one hologram.
|
||||
<div class="block">End current batch of hinting. All hints particles generated during one batch will be considered to belong to one
|
||||
hologram.
|
||||
<p>
|
||||
You don't need to call this unless your constructable tool didn't call <a href="../../../com/gtnewhorizon/structurelib/alignment/constructable/ConstructableUtility.html#handle-net.minecraft.item.ItemStack-net.minecraft.entity.player.EntityPlayer-net.minecraft.world.World-int-int-int-int-"><code>ConstructableUtility.handle(ItemStack, EntityPlayer, World, int, int, int, int)</code></a></div>
|
||||
You don't need to call this unless your constructable tool didn't call
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/constructable/ConstructableUtility.html#handle-net.minecraft.item.ItemStack-net.minecraft.entity.player.EntityPlayer-net.minecraft.world.World-int-int-int-int-"><code>ConstructableUtility.handle(ItemStack, EntityPlayer, World, int, int, int, int)</code></a></div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="hintParticleTinted-net.minecraft.world.World-int-int-int-net.minecraft.util.IIcon:A-short:A-">
|
||||
@@ -791,7 +803,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dd><code>y</code> - y coord</dd>
|
||||
<dd><code>z</code> - z coord</dd>
|
||||
<dd><code>icons</code> - 6 texture. in forge direction order.</dd>
|
||||
<dd><code>RGBa</code> - a 4 short array. tint in rgba form. currently alpha channel is ignored, but we might change this later on.</dd>
|
||||
<dd><code>RGBa</code> - a 4 short array. tint in rgba form. currently alpha channel is ignored, but we might change this
|
||||
later on.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -817,7 +830,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dd><code>z</code> - z coord</dd>
|
||||
<dd><code>block</code> - block to take texture from</dd>
|
||||
<dd><code>meta</code> - the meta of block to take texture from</dd>
|
||||
<dd><code>RGBa</code> - a 4 short array. tint in rgba form. currently alpha channel is ignored, but we might change this later on.</dd>
|
||||
<dd><code>RGBa</code> - a 4 short array. tint in rgba form. currently alpha channel is ignored, but we might change this
|
||||
later on.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -880,9 +894,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
int z)</pre>
|
||||
<div class="block">Update the tint of given hint particle. Do nothing if particle not found.
|
||||
<p>
|
||||
Can be called on either client side or server side.
|
||||
Server side will schedule a network message to update it for this player only.
|
||||
Will do nothing if no hint particle is found at given location.</div>
|
||||
Can be called on either client side or server side. Server side will schedule a network message to update it for
|
||||
this player only. Will do nothing if no hint particle is found at given location.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>false if nothing updated. true if updated or update instruction sent.</dd>
|
||||
@@ -915,11 +928,13 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<li class="blockList">
|
||||
<h4>queryAlignment</h4>
|
||||
<pre>public static void queryAlignment(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider)</pre>
|
||||
<div class="block">Query the ExtendedFacing of this tile entity from client side. Can be sent only on client side.
|
||||
The ExtendedFacing will later be set onto given tile entity via <a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a>
|
||||
upon arrival of server reply.
|
||||
<div class="block">Query the ExtendedFacing of this tile entity from client side. Can be sent only on client side. The
|
||||
ExtendedFacing will later be set onto given tile entity via
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> upon arrival of
|
||||
server reply.
|
||||
<p>
|
||||
The server side will query the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> of this provider using <a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#getExtendedFacing--"><code>IAlignment.getExtendedFacing()</code></a></div>
|
||||
The server side will query the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> of this provider using
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#getExtendedFacing--"><code>IAlignment.getExtendedFacing()</code></a></div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if is not tile entity or provided a null alignment</dd>
|
||||
@@ -935,7 +950,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<pre>public static void sendAlignment(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider)</pre>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players. Can be called on server side only.
|
||||
<p>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its <a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if is not tile entity or provided a null alignment</dd>
|
||||
@@ -952,7 +968,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<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">EntityPlayerMP</a> player)</pre>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to given player. Can be called on server side only.
|
||||
<p>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its <a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if is not tile entity or provided a null alignment</dd>
|
||||
@@ -967,9 +984,11 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<h4>sendAlignment</h4>
|
||||
<pre>public static void sendAlignment(<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignmentProvider.html" title="interface in com.gtnewhorizon.structurelib.alignment">IAlignmentProvider</a> provider,
|
||||
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/cpw/mods/fml/common/network/NetworkRegistry.TargetPoint.html?is-external=true" title="class or interface in cpw.mods.fml.common.network">NetworkRegistry.TargetPoint</a> targetPoint)</pre>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players around target point. Can be called on server side only.
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players around target point. Can be called on server side
|
||||
only.
|
||||
<p>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its <a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if is not tile entity or provided a null alignment</dd>
|
||||
@@ -986,7 +1005,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<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">World</a> dimension)</pre>
|
||||
<div class="block">Send the ExtendedFacing of this Tile Entity to all players in that dimension. Can be called on server side only.
|
||||
<p>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its <a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
The receiving tile entity will receive the <a href="../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><code>ExtendedFacing</code></a> via its
|
||||
<a href="../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#setExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>IAlignment.setExtendedFacing(ExtendedFacing)</code></a> method.</div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if is not tile entity or provided a null alignment</dd>
|
||||
@@ -1013,6 +1033,16 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<div class="block">Get the ItemBlock for StructureLib supplied hint block.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getDefaultHologramItem--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getDefaultHologramItem</h4>
|
||||
<pre>public static <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/Item.html?is-external=true" title="class or interface in net.minecraft.item">Item</a> getDefaultHologramItem()</pre>
|
||||
<div class="block">Get the hologram item.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="isDebugEnabled--">
|
||||
<!-- -->
|
||||
</a>
|
||||
@@ -1049,10 +1079,11 @@ public static boolean isBlockTriviallyReplaceable(<a href="https://skm
|
||||
int z,
|
||||
<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">EntityPlayerMP</a> actor)</pre>
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
||||
<div class="block">Determines if given block can be replaced without much effort. The exact predicate clauses is not stable and
|
||||
will be changed, but the general idea will always stay the same.
|
||||
<div class="block">Determines if given block can be replaced without much effort. The exact predicate clauses is not stable and will
|
||||
be changed, but the general idea will always stay the same.
|
||||
<p>
|
||||
Use this in your <a href="../../../com/gtnewhorizon/structurelib/structure/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></div>
|
||||
Use this in your
|
||||
<a href="../../../com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="isBlockTriviallyReplaceable-net.minecraft.world.World-int-int-int-net.minecraft.entity.player.EntityPlayer-">
|
||||
@@ -1066,10 +1097,11 @@ public static boolean isBlockTriviallyReplaceable(<a href="https://skm
|
||||
int y,
|
||||
int z,
|
||||
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html?is-external=true" title="class or interface in net.minecraft.entity.player">EntityPlayer</a> actor)</pre>
|
||||
<div class="block">Determines if given block can be replaced without much effort. The exact predicate clauses is not stable and
|
||||
will be changed, but the general idea will always stay the same.
|
||||
<div class="block">Determines if given block can be replaced without much effort. The exact predicate clauses is not stable and will
|
||||
be changed, but the general idea will always stay the same.
|
||||
<p>
|
||||
Use this in your <a href="../../../com/gtnewhorizon/structurelib/structure/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></div>
|
||||
Use this in your
|
||||
<a href="../../../com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="addThrottledChat-java.lang.Object-net.minecraft.entity.player.EntityPlayer-net.minecraft.util.IChatComponent-short-">
|
||||
@@ -1085,12 +1117,13 @@ public static boolean isBlockTriviallyReplaceable(<a href="https://skm
|
||||
<div class="block">Send chat to player, but throttled.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>throttleKey</code> - throttle key. Must properly implement <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang"><code>Object.hashCode()</code></a> and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>Object.equals(Object)</code></a>
|
||||
to handle value equality.</dd>
|
||||
<dd><code>throttleKey</code> - throttle key. Must properly implement <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang"><code>Object.hashCode()</code></a> and
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>Object.equals(Object)</code></a> to handle value equality.</dd>
|
||||
<dd><code>player</code> - player to send chat to</dd>
|
||||
<dd><code>text</code> - chat to send</dd>
|
||||
<dd><code>intervalRequired</code> - interval required before last recorded time to actually send the message. unit in millisecond.
|
||||
we purposefully chose to not use a bigger data type to limit how long this interval can be</dd>
|
||||
<dd><code>intervalRequired</code> - interval required before last recorded time to actually send the message. unit in
|
||||
millisecond. we purposefully chose to not use a bigger data type to limit how long this
|
||||
interval can be</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -1108,12 +1141,13 @@ public static boolean isBlockTriviallyReplaceable(<a href="https://skm
|
||||
<div class="block">Send chat to player, but throttled.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>throttleKey</code> - throttle key. Must properly implement <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang"><code>Object.hashCode()</code></a> and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>Object.equals(Object)</code></a>
|
||||
to handle value equality.</dd>
|
||||
<dd><code>throttleKey</code> - throttle key. Must properly implement <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang"><code>Object.hashCode()</code></a> and
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>Object.equals(Object)</code></a> to handle value equality.</dd>
|
||||
<dd><code>player</code> - player to send chat to</dd>
|
||||
<dd><code>text</code> - chat to send</dd>
|
||||
<dd><code>intervalRequired</code> - interval required before last recorded time to actually send the message. unit in millisecond.
|
||||
we purposefully chose to not use a bigger data type to limit how long this interval can be</dd>
|
||||
<dd><code>intervalRequired</code> - interval required before last recorded time to actually send the message. unit in
|
||||
millisecond. we purposefully chose to not use a bigger data type to limit how long
|
||||
this interval can be</dd>
|
||||
<dd><code>forceUpdateLastSend</code> - if true, always update the last send time, even if the message isn't actually sent.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>AlignmentUtility (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>AlignmentUtility (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="AlignmentUtility (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="AlignmentUtility (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IAlignment (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IAlignment (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IAlignment (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IAlignment (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -368,8 +368,8 @@ extends <a href="../../../../com/gtnewhorizon/structurelib/alignment/IAlignmentL
|
||||
<li class="blockList">
|
||||
<h4>setExtendedFacing</h4>
|
||||
<pre>void setExtendedFacing(<a href="../../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> alignment)</pre>
|
||||
<div class="block">Set the facing without additional checks.
|
||||
Tools altering facing should use <a href="../../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#toolSetExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>toolSetExtendedFacing(ExtendedFacing)</code></a> instead.</div>
|
||||
<div class="block">Set the facing without additional checks. Tools altering facing should use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/alignment/IAlignment.html#toolSetExtendedFacing-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-"><code>toolSetExtendedFacing(ExtendedFacing)</code></a> instead.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getAlignmentLimits--">
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IAlignmentLimits.Builder (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IAlignmentLimits.Builder (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IAlignmentLimits.Builder (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IAlignmentLimits.Builder (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IAlignmentLimits (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IAlignmentLimits (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IAlignmentLimits (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IAlignmentLimits (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IAlignmentProvider (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IAlignmentProvider (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IAlignmentProvider (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IAlignmentProvider (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IntegerAxisSwap (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IntegerAxisSwap (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IntegerAxisSwap (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IntegerAxisSwap (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+15
-19
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ChannelDataAccessor (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ChannelDataAccessor (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ChannelDataAccessor (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ChannelDataAccessor (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -189,8 +189,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> channel)</code>
|
||||
<div class="block">Return a trigger item that
|
||||
|
||||
Still carry all the subchannel in some unspecified ways
|
||||
Have its master channel data replaced with specified subchannel's data
|
||||
Still carry all the subchannel in some unspecified ways
|
||||
Have its master channel data replaced with specified subchannel's data
|
||||
|
||||
|
||||
If given subchannel does not exist, masterStack may or may not be returned to save performance.</div>
|
||||
@@ -228,17 +228,17 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> channel)</pre>
|
||||
<div class="block">Return a trigger item that
|
||||
<ul>
|
||||
<li>Still carry all the subchannel in some unspecified ways</li>
|
||||
<li>Have its master channel data replaced with specified subchannel's data</li>
|
||||
<li>Still carry all the subchannel in some unspecified ways</li>
|
||||
<li>Have its master channel data replaced with specified subchannel's data</li>
|
||||
</ul>
|
||||
|
||||
If given subchannel does not exist, masterStack may or may not be returned to save performance.
|
||||
Code within StructureLib can depend on this behavior, you cannot.</div>
|
||||
If given subchannel does not exist, masterStack may or may not be returned to save performance. Code within
|
||||
StructureLib can depend on this behavior, you cannot.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>masterStack</code> - trigger item. can be the return value of another <a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/ChannelDataAccessor.html#withChannel-net.minecraft.item.ItemStack-java.lang.String-"><code>withChannel(ItemStack, String)</code></a> call</dd>
|
||||
<dd><code>channel</code> - subchannel to use. will use current master channel data instead if this channel does not exist
|
||||
Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>a trigger item with new master channel</dd>
|
||||
</dl>
|
||||
@@ -272,8 +272,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>masterStack</code> - trigger stack to check</dd>
|
||||
<dd><code>channel</code> - channel identifier.
|
||||
Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dd><code>channel</code> - channel identifier. Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>true if contains specified subchannel</dd>
|
||||
</dl>
|
||||
@@ -291,8 +290,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>masterStack</code> - trigger stack to query from</dd>
|
||||
<dd><code>channel</code> - channel identifier.
|
||||
Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dd><code>channel</code> - channel identifier. Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>channel data</dd>
|
||||
</dl>
|
||||
@@ -311,8 +309,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>masterStack</code> - trigger stack to check</dd>
|
||||
<dd><code>channel</code> - channel identifier.
|
||||
Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dd><code>channel</code> - channel identifier. Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dd><code>data</code> - subchannel data. should always be a positive value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
@@ -329,8 +326,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>masterStack</code> - trigger stack to unset</dd>
|
||||
<dd><code>channel</code> - channel identifier.
|
||||
Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
<dd><code>channel</code> - channel identifier. Note: all channel identifiers are supposed to be lower case and not empty.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -361,8 +357,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dd><code>masterStack</code> - trigger stack to check</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>A java8 stream of pairs. Key is channel identifier and value is channel data. Pairs do not support
|
||||
mutation nor removal. Can still cause <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util"><code>ConcurrentModificationException</code></a> if underlying channel
|
||||
data is modified while stream is working.</dd>
|
||||
mutation nor removal. Can still cause <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util"><code>ConcurrentModificationException</code></a> if underlying
|
||||
channel data is modified while stream is working.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ConstructableUtility (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ConstructableUtility (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ConstructableUtility (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ConstructableUtility (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IConstructable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IConstructable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IConstructable (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IConstructable (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IConstructableProvider (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IConstructableProvider (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IConstructableProvider (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IConstructableProvider (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+6
-4
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IMultiblockInfoContainer (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IMultiblockInfoContainer (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IMultiblockInfoContainer (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IMultiblockInfoContainer (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -173,7 +173,8 @@ var activeTableTab = "activeTableTab";
|
||||
<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">EntityPlayerMP</a> actorProfile,
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IMultiblockInfoContainer.html" title="type parameter in IMultiblockInfoContainer">T</a> tileEntity,
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> aSide)</code>
|
||||
<div class="block">Construct the structure using <a href="../../../../../com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
@@ -280,7 +281,8 @@ var activeTableTab = "activeTableTab";
|
||||
<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">EntityPlayerMP</a> actorProfile,
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IMultiblockInfoContainer.html" title="type parameter in IMultiblockInfoContainer">T</a> tileEntity,
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> aSide)</pre>
|
||||
<div class="block">Construct the structure using <a href="../../../../../com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a></div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>-1 if done, a helping pointer</dd>
|
||||
|
||||
+18
-12
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ISurvivalConstructable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ISurvivalConstructable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ISurvivalConstructable (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ISurvivalConstructable (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -105,9 +105,9 @@ var activeTableTab = "activeTableTab";
|
||||
<br>
|
||||
<pre>public interface <span class="typeNameLabel">ISurvivalConstructable</span>
|
||||
extends <a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable">IConstructable</a></pre>
|
||||
<div class="block">An extension to <a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable"><code>IConstructable</code></a>. Tile Entities (or delegates returned by <a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructableProvider.html#getConstructable--"><code>IConstructableProvider.getConstructable()</code></a>
|
||||
should implement this interface to allow third party tools and StructureLib builtin constructable tools to trigger
|
||||
autoplace in survival mode.
|
||||
<div class="block">An extension to <a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable"><code>IConstructable</code></a>. Tile Entities (or delegates returned by
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/IConstructableProvider.html#getConstructable--"><code>IConstructableProvider.getConstructable()</code></a> should implement this interface to allow third party tools and
|
||||
StructureLib builtin constructable tools to trigger autoplace in survival mode.
|
||||
<p>
|
||||
While not originally planned, a creative player can also use this interface to trigger autoplace by using an
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a> with every possible items in the game.</div>
|
||||
@@ -170,8 +170,10 @@ extends <a href="../../../../../com/gtnewhorizon/structurelib/alignment/construc
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/gtnewhorizon/structurelib/alignment/constructable/ISurvivalConstructable.html#survivalConstruct-net.minecraft.item.ItemStack-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-">survivalConstruct</a></span>(<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">ItemStack</a> stackSize,
|
||||
int elementBudget,
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/ISurvivalBuildEnvironment.html" title="interface in com.gtnewhorizon.structurelib.structure">ISurvivalBuildEnvironment</a> env)</code>
|
||||
<div class="block">Construct the structure using <a href="../../../../../com/gtnewhorizon/structurelib/structure/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="../../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/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="../../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -226,8 +228,10 @@ default int survivalConstruct(<a href="https://skmedix.github.io/Forge
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> source,
|
||||
<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">EntityPlayerMP</a> actor)</pre>
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
||||
<div class="block">Construct the structure using <a href="../../../../../com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a>
|
||||
or <a href="../../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayerMP-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, IItemSource, EntityPlayerMP, boolean)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a>
|
||||
or
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayerMP-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, IItemSource, EntityPlayerMP, boolean)</code></a></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>elementBudget</code> - The server configured element budget. The implementor can choose to tune this up a bit if
|
||||
@@ -247,8 +251,10 @@ default int survivalConstruct(<a href="https://skmedix.github.io/Forge
|
||||
<pre>default int survivalConstruct(<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">ItemStack</a> stackSize,
|
||||
int elementBudget,
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/ISurvivalBuildEnvironment.html" title="interface in com.gtnewhorizon.structurelib.structure">ISurvivalBuildEnvironment</a> env)</pre>
|
||||
<div class="block">Construct the structure using <a href="../../../../../com/gtnewhorizon/structurelib/structure/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="../../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="../../../../../com/gtnewhorizon/structurelib/structure/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="../../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>elementBudget</code> - The server configured element budget. The implementor can choose to tune this up a bit if
|
||||
@@ -256,7 +262,7 @@ default int survivalConstruct(<a href="https://skmedix.github.io/Forge
|
||||
server</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>-1 if done, -2 if not supported (e.g. due to an incompatible change in the API of env, otherwise number
|
||||
of elements placed this round</dd>
|
||||
of elements placed this round</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment.constructable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment.constructable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment.constructable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment.constructable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.constructable (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.constructable (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment.constructable Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment.constructable Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.constructable Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.constructable Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Direction (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Direction (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Direction (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Direction (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+7
-7
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ExtendedFacing (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ExtendedFacing (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ExtendedFacing (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ExtendedFacing (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -532,7 +532,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?i
|
||||
<tr id="i14" class="altColor">
|
||||
<td class="colFirst"><code><a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getOffsetABC-net.minecraft.util.Vec3-">getOffsetABC</a></span>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a> xyzOffset)</code>
|
||||
<div class="block">Translates world offset to relative front facing offset</div>
|
||||
<div class="block">Translates world offset to relative front facing offset</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i15" class="rowColor">
|
||||
@@ -598,7 +598,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?i
|
||||
<tr id="i29" class="rowColor">
|
||||
<td class="colFirst"><code><a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getWorldOffset-net.minecraft.util.Vec3-">getWorldOffset</a></span>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a> abcOffset)</code>
|
||||
<div class="block">Translates relative to front facing offset to world offset</div>
|
||||
<div class="block">Translates relative to front facing offset to world offset</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i30" class="altColor">
|
||||
@@ -1834,7 +1834,7 @@ not permitted.)</div>
|
||||
<li class="blockList">
|
||||
<h4>getWorldOffset</h4>
|
||||
<pre>public <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a> getWorldOffset(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a> abcOffset)</pre>
|
||||
<div class="block">Translates relative to front facing offset to world offset</div>
|
||||
<div class="block">Translates relative to front facing offset to world offset</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>abcOffset</code> - A,B,C offset (facing relative <code>L-->R,U-->D,F-->B</code>)</dd>
|
||||
@@ -1889,12 +1889,12 @@ not permitted.)</div>
|
||||
<li class="blockList">
|
||||
<h4>getOffsetABC</h4>
|
||||
<pre>public <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a> getOffsetABC(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/Vec3.html?is-external=true" title="class or interface in net.minecraft.util">Vec3</a> xyzOffset)</pre>
|
||||
<div class="block">Translates world offset to relative front facing offset</div>
|
||||
<div class="block">Translates world offset to relative front facing offset</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>xyzOffset</code> - X,Y,Z offset in world</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>A, B, C offset (facing relative <code>L-->R,U-->D,F-->B</code>)</dd>
|
||||
<dd>A, B, C offset (facing relative <code>L-->R,U-->D,F-->B</code>)</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Flip (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Flip (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Flip (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Flip (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Rotation (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Rotation (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Rotation (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Rotation (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment.enumerable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment.enumerable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment.enumerable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment.enumerable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.enumerable (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.enumerable (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment.enumerable Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment.enumerable Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.enumerable Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment.enumerable Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -81,8 +81,8 @@
|
||||
<ul>
|
||||
<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a><E> (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
|
||||
<ul>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/Direction.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Direction</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">ExtendedFacing</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/Direction.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Direction</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/Rotation.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Rotation</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="../../../../../com/gtnewhorizon/structurelib/alignment/enumerable/Flip.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Flip</span></a></li>
|
||||
</ul>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -129,8 +129,8 @@
|
||||
<h2 title="Package com.gtnewhorizon.structurelib.alignment Description">Package com.gtnewhorizon.structurelib.alignment Description</h2>
|
||||
<div class="block">This package provide a framework for rotating a given block, or a multiblock structure.
|
||||
<p>
|
||||
All public stuff in this package and its subpackages are considered part of the public API.
|
||||
Backwards compatibility is maintained to the maximum extend possible.</div>
|
||||
All public stuff in this package and its subpackages are considered part of the public API. Backwards compatibility
|
||||
is maintained to the maximum extend possible.</div>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.alignment Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.alignment Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.alignment Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+6
-6
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>AutoPlaceEnvironment.APILevel (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>AutoPlaceEnvironment.APILevel (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="AutoPlaceEnvironment.APILevel (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="AutoPlaceEnvironment.APILevel (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -221,8 +221,8 @@ the order they are declared.</div>
|
||||
<li class="blockList">
|
||||
<h4>Legacy</h4>
|
||||
<pre>public static final <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.APILevel.html" title="enum in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment.APILevel</a> Legacy</pre>
|
||||
<div class="block">Implements <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getChatter--"><code>AutoPlaceEnvironment.getChatter()</code></a>, <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> and <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getSource--"><code>AutoPlaceEnvironment.getSource()</code></a>.
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> is guaranteed to be 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"><code>EntityPlayerMP</code></a></div>
|
||||
<div class="block">Implements <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getChatter--"><code>AutoPlaceEnvironment.getChatter()</code></a>, <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> and <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getSource--"><code>AutoPlaceEnvironment.getSource()</code></a>. <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> is
|
||||
guaranteed to be 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"><code>EntityPlayerMP</code></a></div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="LegacyRelaxed">
|
||||
@@ -232,8 +232,8 @@ the order they are declared.</div>
|
||||
<li class="blockList">
|
||||
<h4>LegacyRelaxed</h4>
|
||||
<pre>public static final <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.APILevel.html" title="enum in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment.APILevel</a> LegacyRelaxed</pre>
|
||||
<div class="block">Implements <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getChatter--"><code>AutoPlaceEnvironment.getChatter()</code></a>, <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> and <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getSource--"><code>AutoPlaceEnvironment.getSource()</code></a>.
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> is <b>NOT</b> guaranteed to be 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"><code>EntityPlayerMP</code></a></div>
|
||||
<div class="block">Implements <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getChatter--"><code>AutoPlaceEnvironment.getChatter()</code></a>, <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> and <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getSource--"><code>AutoPlaceEnvironment.getSource()</code></a>. <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getActor--"><code>AutoPlaceEnvironment.getActor()</code></a> is
|
||||
<b>NOT</b> guaranteed to be 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"><code>EntityPlayerMP</code></a></div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="V2">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>AutoPlaceEnvironment (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>AutoPlaceEnvironment (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="AutoPlaceEnvironment (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="AutoPlaceEnvironment (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -302,8 +302,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<li class="blockList">
|
||||
<h4>getActor</h4>
|
||||
<pre>public <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html?is-external=true" title="class or interface in net.minecraft.entity.player">EntityPlayer</a> getActor()</pre>
|
||||
<div class="block">The initiator of actions. for very critical errors you can also just send the error messages here, bypassing
|
||||
any filter that <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getChatter--"><code>getChatter()</code></a> might have. You might want to use
|
||||
<div class="block">The initiator of actions. for very critical errors you can also just send the error messages here, bypassing any
|
||||
filter that <a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html#getChatter--"><code>getChatter()</code></a> might have. You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/StructureLibAPI.html#addThrottledChat-java.lang.Object-net.minecraft.entity.player.EntityPlayer-net.minecraft.util.IChatComponent-short-"><code>StructureLibAPI.addThrottledChat(Object, EntityPlayer, IChatComponent, short)</code></a>
|
||||
to help reduce spam.</div>
|
||||
</li>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IBlockPosConsumer (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IBlockPosConsumer (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IBlockPosConsumer (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IBlockPosConsumer (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ICustomBlockSetting (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ICustomBlockSetting (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ICustomBlockSetting (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ICustomBlockSetting (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -125,8 +125,8 @@ var activeTableTab = "activeTableTab";
|
||||
int y,
|
||||
int z,
|
||||
int meta)</code>
|
||||
<div class="block">Default block setting calls <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true#setBlock-int-int-int-net.minecraft.block.Block-int-int-" title="class or interface in net.minecraft.world"><code>World.setBlock(int x, int y, int z, Block block, int meta, int updateType)</code></a> like:
|
||||
<code>world.setBlock(x,y,z,this/block,meta,2)</code> where updateType 2 means to update lighting and stuff</div>
|
||||
<div class="block">Default block setting calls <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true#setBlock-int-int-int-net.minecraft.block.Block-int-int-" title="class or interface in net.minecraft.world"><code>World.setBlock(int x, int y, int z, Block block, int meta, int updateType)</code></a>
|
||||
like: <code>world.setBlock(x,y,z,this/block,meta,2)</code> where updateType 2 means to update lighting and stuff</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -155,8 +155,8 @@ var activeTableTab = "activeTableTab";
|
||||
int y,
|
||||
int z,
|
||||
int meta)</pre>
|
||||
<div class="block">Default block setting calls <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true#setBlock-int-int-int-net.minecraft.block.Block-int-int-" title="class or interface in net.minecraft.world"><code>World.setBlock(int x, int y, int z, Block block, int meta, int updateType)</code></a> like:
|
||||
<code>world.setBlock(x,y,z,this/block,meta,2)</code> where updateType 2 means to update lighting and stuff</div>
|
||||
<div class="block">Default block setting calls <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true#setBlock-int-int-int-net.minecraft.block.Block-int-int-" title="class or interface in net.minecraft.world"><code>World.setBlock(int x, int y, int z, Block block, int meta, int updateType)</code></a>
|
||||
like: <code>world.setBlock(x,y,z,this/block,meta,2)</code> where updateType 2 means to update lighting and stuff</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>world</code> - world that should be affected</dd>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IItemSource (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IItemSource (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IItemSource (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IItemSource (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -195,8 +195,8 @@ var activeTableTab = "activeTableTab";
|
||||
int count)</pre>
|
||||
<div class="block">Retrieve some amount of items from this item source matching given filter.
|
||||
<p>
|
||||
We probably don't need to get a lot of items from this method,
|
||||
so I don't care about the overhead of storing all fetched items even if downstream code doesn't need it</div>
|
||||
We probably don't need to get a lot of items from this method, so I don't care about the overhead of storing all
|
||||
fetched items even if downstream code doesn't need it</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>predicate</code> - filtering predicate. should return true for ItemStacks that should be added to result collection</dd>
|
||||
@@ -259,12 +259,12 @@ var activeTableTab = "activeTableTab";
|
||||
boolean simulate)</pre>
|
||||
<div class="block">Take exactly one item. ItemStack given must have a stack size of 1.
|
||||
<p>
|
||||
This is meant to be an optimized version of <a href="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html#takeOne-java.util.function.Predicate-boolean-"><code>takeOne(Predicate, boolean)</code></a>.
|
||||
Implementations that support item storage indexed by ItemStack can use this to speed up calculation.</div>
|
||||
This is meant to be an optimized version of <a href="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html#takeOne-java.util.function.Predicate-boolean-"><code>takeOne(Predicate, boolean)</code></a>. Implementations that support
|
||||
item storage indexed by ItemStack can use this to speed up calculation.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>stack</code> - what item to extract. The NBT tag of this ItemStack is siginifcant and will be
|
||||
considered during matching. must have a stack size of 1.</dd>
|
||||
<dd><code>stack</code> - what item to extract. The NBT tag of this ItemStack is siginifcant and will be considered during
|
||||
matching. must have a stack size of 1.</dd>
|
||||
<dd><code>simulate</code> - whether to actually commit the modification. true for dry run, false otherwise.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>true if found. false otherwise</dd>
|
||||
@@ -283,8 +283,8 @@ var activeTableTab = "activeTableTab";
|
||||
boolean simulate)</pre>
|
||||
<div class="block">Take some item. Will not take item if it cannot find enough items to take.
|
||||
<p>
|
||||
This is meant to be an optimized version of <a href="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html#takeOne-java.util.function.Predicate-boolean-"><code>takeOne(Predicate, boolean)</code></a>.
|
||||
Implementations that support indexing off ItemStack can use this to speed up calculation.</div>
|
||||
This is meant to be an optimized version of <a href="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html#takeOne-java.util.function.Predicate-boolean-"><code>takeOne(Predicate, boolean)</code></a>. Implementations that support
|
||||
indexing off ItemStack can use this to speed up calculation.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>stack</code> - what item and how many to extract. The NBT tag of this ItemStack is siginifcant and will be
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ISpecialItemBlock (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ISpecialItemBlock (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ISpecialItemBlock (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ISpecialItemBlock (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureDefinition (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureDefinition (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureDefinition (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureDefinition (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -112,11 +112,11 @@ var activeTableTab = "activeTableTab";
|
||||
|
||||
<h2>Cache the instances of this class</h2>
|
||||
<p>
|
||||
You will construct this definition once per multi, either at class load or at first call to your variant of <code>getStructureDefinition()</code>.
|
||||
You can use a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassValue.html?is-external=true" title="class or interface in java.lang"><code>ClassValue<IStructureDefinition<?>></code></a> if you have a template for subclass.
|
||||
You can also use <a href="../../../../com/gtnewhorizon/structurelib/structure/StructureUtility.html#defer-java.util.function.Function-"><code>defer()</code></a> or its overloads for simpler cases, but it is
|
||||
slightly less performant as it will allocate new objects on each structure check, whereas <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassValue.html?is-external=true" title="class or interface in java.lang"><code>ClassValue</code></a> will
|
||||
allocate once and cache it onwards.
|
||||
You will construct this definition once per multi, either at class load or at first call to your variant of
|
||||
<code>getStructureDefinition()</code>. You can use a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassValue.html?is-external=true" title="class or interface in java.lang"><code>ClassValue<IStructureDefinition<?>></code></a> if you
|
||||
have a template for subclass. You can also use <a href="../../../../com/gtnewhorizon/structurelib/structure/StructureUtility.html#defer-java.util.function.Function-"><code>defer()</code></a> or its overloads for
|
||||
simpler cases, but it is slightly less performant as it will allocate new objects on each structure check, whereas
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassValue.html?is-external=true" title="class or interface in java.lang"><code>ClassValue</code></a> will allocate once and cache it onwards.
|
||||
<p>
|
||||
<h2>Constructing</h2>
|
||||
<p>
|
||||
@@ -124,17 +124,20 @@ var activeTableTab = "activeTableTab";
|
||||
<p>
|
||||
Builder has two main methods:
|
||||
<ul>
|
||||
<li><a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addShape-java.lang.String-java.lang.String:A:A-"><code>addShape()</code></a>
|
||||
is a 2d string array describing the layout of structure. You can optionally use `StructureUtility#transpose()`
|
||||
to transpose the array to make the structure look nicer in source code.
|
||||
<li><a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addElement-java.lang.Character-com.gtnewhorizon.structurelib.structure.IStructureElement-"><code>addElement()</code></a>. It takes a char identifier (mapped to a char in any of <a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addShape-java.lang.String-java.lang.String:A:A-"><code>addShape()</code></a> calls) and a <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>.
|
||||
<li><a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addShape-java.lang.String-java.lang.String:A:A-"><code>addShape()</code></a> is a 2d string array describing the layout of structure. You can optionally use
|
||||
`StructureUtility#transpose()` to transpose the array to make the structure look nicer in source code.
|
||||
<li><a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addElement-java.lang.Character-com.gtnewhorizon.structurelib.structure.IStructureElement-"><code>addElement()</code></a>. It takes a char identifier (mapped to a char in any of
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addShape-java.lang.String-java.lang.String:A:A-"><code>addShape()</code></a>
|
||||
calls) and a <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>.
|
||||
</ul>
|
||||
<h2>Position A, B and C</h2>
|
||||
|
||||
Imagine you stand in front of the controller, with controller facing towards you not rotated or flipped.
|
||||
<ul>
|
||||
<li>The "A" position would be the number of blocks on the left side of the controller, not counting controller itself.</li>
|
||||
<li>The "B" position would be the number of blocks on the top side of the controller, not counting controller itself.</li>
|
||||
<li>The "A" position would be the number of blocks on the left side of the controller, not counting controller
|
||||
itself.</li>
|
||||
<li>The "B" position would be the number of blocks on the top side of the controller, not counting controller
|
||||
itself.</li>
|
||||
<li>The "C" position would be the number of blocks between you and controller, not counting controller itself.</li>
|
||||
</ul></div>
|
||||
</li>
|
||||
@@ -191,8 +194,9 @@ var activeTableTab = "activeTableTab";
|
||||
int basePositionB,
|
||||
int basePositionC,
|
||||
boolean hintsOnly)</code>
|
||||
<div class="block">Call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#build-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>build(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> if <code>hintsOnly</code>,
|
||||
call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#hints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>hints(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> otherwise.</div>
|
||||
<div class="block">Call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#build-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>build(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> if
|
||||
<code>hintsOnly</code>, call
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#hints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>hints(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> otherwise.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
@@ -321,14 +325,16 @@ var activeTableTab = "activeTableTab";
|
||||
<pre><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html" title="type parameter in IStructureDefinition">T</a>>[] getStructureFor(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
||||
<div class="block">Used internally
|
||||
<p>
|
||||
Might, but is not required, to throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a> if the given structure piece is not found.</div>
|
||||
Might, but is not required, to throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a> if the given structure piece is not
|
||||
found.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>name</code> - same name as for other methods here</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>the array of elements to process</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util">NoSuchElementException</a></code> - if the given structure piece is not found and the moon phase perfectly matches</dd>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util">NoSuchElementException</a></code> - if the given structure piece is not found and the moon phase perfectly
|
||||
matches</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -478,8 +484,9 @@ var activeTableTab = "activeTableTab";
|
||||
int basePositionB,
|
||||
int basePositionC,
|
||||
boolean hintsOnly)</pre>
|
||||
<div class="block">Call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#build-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>build(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> if <code>hintsOnly</code>,
|
||||
call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#hints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>hints(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> otherwise.</div>
|
||||
<div class="block">Call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#build-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>build(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> if
|
||||
<code>hintsOnly</code>, call
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#hints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>hints(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> otherwise.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>object</code> - context object. usually multiblock controller.</dd>
|
||||
@@ -544,10 +551,10 @@ default int survivalBuild(<a href="../../../../com/gtnewhorizon/struct
|
||||
<dd><code>elementBudget</code> - build up to this many elements</dd>
|
||||
<dd><code>source</code> - from where to drain resource</dd>
|
||||
<dd><code>actor</code> - source of action</dd>
|
||||
<dd><code>check</code> - whether <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>IStructureElement.check(Object, World, int, int, int)</code></a> should be called if anything
|
||||
would be placed. use with caution.
|
||||
if in doubt, call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#check-T-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-boolean-"><code>check(Object, String, World, ExtendedFacing, int, int, int, int, int, int, boolean)</code></a>
|
||||
after this call and set this parameter to false</dd>
|
||||
<dd><code>check</code> - whether <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>IStructureElement.check(Object, World, int, int, int)</code></a> should be called if
|
||||
anything would be placed. use with caution. if in doubt, call
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#check-T-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-boolean-"><code>check(Object, String, World, ExtendedFacing, int, int, int, int, int, int, boolean)</code></a>
|
||||
after this call and set this parameter to false</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>number of elements built, or -1 if structure done</dd>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
@@ -593,10 +600,10 @@ default int survivalBuild(<a href="../../../../com/gtnewhorizon/struct
|
||||
<dd><code>basePositionC</code> - see class javadoc</dd>
|
||||
<dd><code>elementBudget</code> - build up to this many elements</dd>
|
||||
<dd><code>env</code> - build environment.</dd>
|
||||
<dd><code>check</code> - whether <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>IStructureElement.check(Object, World, int, int, int)</code></a> should be called if anything
|
||||
would be placed. use with caution.
|
||||
if in doubt, call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#check-T-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-boolean-"><code>check(Object, String, World, ExtendedFacing, int, int, int, int, int, int, boolean)</code></a>
|
||||
after this call and set this parameter to false</dd>
|
||||
<dd><code>check</code> - whether <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>IStructureElement.check(Object, World, int, int, int)</code></a> should be called if
|
||||
anything would be placed. use with caution. if in doubt, call
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#check-T-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-boolean-"><code>check(Object, String, World, ExtendedFacing, int, int, int, int, int, int, boolean)</code></a>
|
||||
after this call and set this parameter to false</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>number of elements built, or -1 if structure done</dd>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
@@ -641,9 +648,10 @@ default int survivalBuild(<a href="../../../../com/gtnewhorizon/struct
|
||||
<dd><code>basePositionA</code> - see class javadoc</dd>
|
||||
<dd><code>basePositionB</code> - see class javadoc</dd>
|
||||
<dd><code>basePositionC</code> - see class javadoc</dd>
|
||||
<dd><code>hintsOnly</code> - whether to spawn hints or do creative build. no effect if <code>checkBlocksIfNotNullForceCheckAllIfTrue</code> is not null.</dd>
|
||||
<dd><code>checkBlocksIfNotNullForceCheckAllIfTrue</code> - creative build or spawn hints if null. Force check not loaded chunk
|
||||
if true. Check only loaded chunk is false.</dd>
|
||||
<dd><code>hintsOnly</code> - whether to spawn hints or do creative build. no effect if
|
||||
<code>checkBlocksIfNotNullForceCheckAllIfTrue</code> is not null.</dd>
|
||||
<dd><code>checkBlocksIfNotNullForceCheckAllIfTrue</code> - creative build or spawn hints if null. Force check not loaded
|
||||
chunk if true. Check only loaded chunk is false.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>true if iteration completed successfully.</dd>
|
||||
</dl>
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElement.BlocksToPlace (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElement.BlocksToPlace (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElement.BlocksToPlace (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElement.BlocksToPlace (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+13
-12
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElement.PlaceResult (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElement.PlaceResult (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElement.PlaceResult (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElement.PlaceResult (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -151,14 +151,14 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?i
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#REJECT">REJECT</a></span></code>
|
||||
<div class="block">This element's space is occupied by other stuff and require player attention, or player missing required resource,
|
||||
or the block cannot be placed due to obscure mechanisms, or some other unforeseen situations.</div>
|
||||
<div class="block">This element's space is occupied by other stuff and require player attention, or player missing required
|
||||
resource, or the block cannot be placed due to obscure mechanisms, or some other unforeseen situations.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP">SKIP</a></span></code>
|
||||
<div class="block">This element either exists already, or does not yet have an implementation for survivalPlaceBlock, or
|
||||
some other unforeseen situations.</div>
|
||||
<div class="block">This element either exists already, or does not yet have an implementation for survivalPlaceBlock, or some
|
||||
other unforeseen situations.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
@@ -230,9 +230,9 @@ the order they are declared.</div>
|
||||
<li class="blockList">
|
||||
<h4>SKIP</h4>
|
||||
<pre>public static final <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a> SKIP</pre>
|
||||
<div class="block">This element either exists already, or does not yet have an implementation for survivalPlaceBlock, or
|
||||
some other unforeseen situations.
|
||||
TODO this definition doesn't seem right. Should we separate SKIP from EXISTS, or SKIP from ERROR?</div>
|
||||
<div class="block">This element either exists already, or does not yet have an implementation for survivalPlaceBlock, or some
|
||||
other unforeseen situations. TODO this definition doesn't seem right. Should we separate SKIP from EXISTS, or
|
||||
SKIP from ERROR?</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="REJECT">
|
||||
@@ -242,8 +242,8 @@ the order they are declared.</div>
|
||||
<li class="blockList">
|
||||
<h4>REJECT</h4>
|
||||
<pre>public static final <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a> REJECT</pre>
|
||||
<div class="block">This element's space is occupied by other stuff and require player attention, or player missing required resource,
|
||||
or the block cannot be placed due to obscure mechanisms, or some other unforeseen situations.</div>
|
||||
<div class="block">This element's space is occupied by other stuff and require player attention, or player missing required
|
||||
resource, or the block cannot be placed due to obscure mechanisms, or some other unforeseen situations.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="STOP">
|
||||
@@ -253,7 +253,8 @@ the order they are declared.</div>
|
||||
<li class="blockList">
|
||||
<h4>STOP</h4>
|
||||
<pre>public static final <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a> STOP</pre>
|
||||
<div class="block">Autoplace cannot proceed within this tick. To proceed further would require stopping the placement and wait for next round.</div>
|
||||
<div class="block">Autoplace cannot proceed within this tick. To proceed further would require stopping the placement and wait
|
||||
for next round.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="ACCEPT">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElement (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElement (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElement (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElement (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -104,8 +104,8 @@ var activeTableTab = "activeTableTab";
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public interface <span class="typeNameLabel">IStructureElement<T></span></pre>
|
||||
<div class="block">Use StructureUtility to instantiate. These are the building blocks for your <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureDefinition</code></a>. It represents
|
||||
what a particular element can be and how this particular element should be autoplaced.</div>
|
||||
<div class="block">Use StructureUtility to instantiate. These are the building blocks for your <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureDefinition</code></a>. It
|
||||
represents what a particular element can be and how this particular element should be autoplaced.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -244,8 +244,8 @@ var activeTableTab = "activeTableTab";
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</a><<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">IChatComponent</a>> chatter)</code>
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||||
<div class="block"><span class="deprecationComment">caller should call the non deprecated overload. implementor for reusable <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long as you know
|
||||
the caller will not call this overload.</span></div>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long
|
||||
as you know the caller will not call this overload.</span></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -330,18 +330,19 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<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">EntityPlayerMP</a> actor,
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</a><<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">IChatComponent</a>> chatter)</pre>
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">caller should call the non deprecated overload. implementor for reusable <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long as you know
|
||||
the caller will not call this overload.</span></div>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long
|
||||
as you know the caller will not call this overload.</span></div>
|
||||
<div class="block">Try place the block by taking resource from given IItemSource.
|
||||
<p>
|
||||
You might want to use <a href="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="paramLabel">Parameters:</span></dt>
|
||||
<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>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>
|
||||
@@ -367,11 +368,12 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<p>
|
||||
<b>BY OVERRIDING THIS TO NULL, YOU ACKNOWLEDGE THAT THE <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a> TO PROVIDE A SIDEEFFECT
|
||||
FREE <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>.</b>
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a> TO PROVIDE A
|
||||
SIDEEFFECT FREE <a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a>
|
||||
or <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a> are free to reject/accept/place blocks not contained in this list,
|
||||
It should be noticed that this filter is only advisory and the actual
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a> or
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> that just didn't implement this API.</div>
|
||||
@@ -380,7 +382,8 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a></dd>
|
||||
<dd>null if not implemented, otherwise an instance describing what kind of blocks will be placed by
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -401,26 +404,34 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a> env)</pre>
|
||||
<div class="block">Try place the block by taking resource from given <a href="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a>.
|
||||
<p>
|
||||
You might want to use <a href="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#getBlocksToPlace-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>getBlocksToPlace(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a>. If not null
|
||||
<ol>
|
||||
<li>call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a>. If this returns <code>true</code>, <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a> will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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 <code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy <a href="../../../../com/gtnewhorizon/structurelib/structure/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>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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a></li>
|
||||
<li>Get <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#getBlocksToPlace-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-"><code>getBlocksToPlace(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)</code></a>. If not null
|
||||
<ol>
|
||||
<li>call <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a>. If this returns <code>true</code>, <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>
|
||||
will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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
|
||||
<code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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>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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a> is not side effect free, or is not idempotent.
|
||||
E.g. the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a> will add current coord to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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>
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a> is not side effect free, or is not idempotent. E.g. the
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#check-T-net.minecraft.world.World-int-int-int-"><code>check(Object, World, int, int, int)</code></a> will add current coord to a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>trigger</code> - trigger item</dd>
|
||||
|
||||
+35
-24
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElementChain (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElementChain (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElementChain (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElementChain (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -318,11 +318,12 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<p>
|
||||
<b>BY OVERRIDING THIS TO NULL, YOU ACKNOWLEDGE THAT THE <a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>.</b>
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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,
|
||||
It should be noticed that this filter is only advisory and the actual
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> that just didn't implement this API.</div>
|
||||
@@ -332,7 +333,8 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<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="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
<dd>null if not implemented, otherwise an instance describing what kind of blocks will be placed by
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
@@ -356,15 +358,16 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>></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>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>
|
||||
@@ -388,26 +391,34 @@ default <a href="../../../../com/gtnewhorizon/structurelib/structure/IStruc
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a>.
|
||||
<p>
|
||||
You might want to use <a href="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via <a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a> will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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 <code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy <a href="../../../../com/gtnewhorizon/structurelib/structure/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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a></li>
|
||||
<li>Get <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>
|
||||
will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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
|
||||
<code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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>
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-">survivalPlaceBlock</a></code> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElementChain.html" title="type parameter in IStructureElementChain">T</a>></code></dd>
|
||||
|
||||
+28
-19
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElementCheckOnly (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElementCheckOnly (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElementCheckOnly (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElementCheckOnly (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -264,15 +264,16 @@ extends <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureE
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElementCheckOnly.html" title="type parameter in IStructureElementCheckOnly">T</a>></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>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>
|
||||
@@ -296,26 +297,34 @@ extends <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureE
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a>.
|
||||
<p>
|
||||
You might want to use <a href="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via <a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a> will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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 <code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy <a href="../../../../com/gtnewhorizon/structurelib/structure/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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a></li>
|
||||
<li>Get <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>
|
||||
will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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
|
||||
<code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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>
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-">survivalPlaceBlock</a></code> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElementCheckOnly.html" title="type parameter in IStructureElementCheckOnly">T</a>></code></dd>
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElementDeferred (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElementDeferred (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElementDeferred (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElementDeferred (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+28
-19
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IStructureElementNoPlacement (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IStructureElementNoPlacement (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IStructureElementNoPlacement (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IStructureElementNoPlacement (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -241,15 +241,16 @@ extends <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureE
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElementNoPlacement.html" title="type parameter in IStructureElementNoPlacement">T</a>></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>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>
|
||||
@@ -273,26 +274,34 @@ extends <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureE
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IItemSource</code></a>.
|
||||
<p>
|
||||
You might want to use <a href="../../../../com/gtnewhorizon/structurelib/structure/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>
|
||||
You might want to use
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via <a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a> will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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 <code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy <a href="../../../../com/gtnewhorizon/structurelib/structure/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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a></li>
|
||||
<li>Get <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> via
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html#SKIP"><code>IStructureElement.PlaceResult.SKIP</code></a>
|
||||
will be returned without further action.</li>
|
||||
<li>Use the <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.BlocksToPlace.html" title="class in com.gtnewhorizon.structurelib.structure"><code>IStructureElement.BlocksToPlace</code></a> retrieved earlier and passed in <a href="../../../../com/gtnewhorizon/structurelib/structure/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
|
||||
<code>StructureUtility#survivalPlaceBlock(ItemStack, NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Call legacy
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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"><code>EntityPlayerMP</code></a></li>
|
||||
<li>Emit warning under debug mode (or throw exception under panic mode), then return
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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>
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/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="../../../../com/gtnewhorizon/structurelib/structure/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 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. 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="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-">survivalPlaceBlock</a></code> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElementNoPlacement.html" title="type parameter in IStructureElementNoPlacement">T</a>></code></dd>
|
||||
|
||||
+8
-4
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ISurvivalBuildEnvironment (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ISurvivalBuildEnvironment (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ISurvivalBuildEnvironment (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ISurvivalBuildEnvironment (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -161,7 +161,9 @@ var activeTableTab = "activeTableTab";
|
||||
<pre><a href="../../../../com/gtnewhorizon/structurelib/structure/IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> getSource()</pre>
|
||||
<div class="block">Get the source of the items. This will be invoked exactly once per structure element build.
|
||||
<p>
|
||||
If the call chain ever got into the old API, this will be called at least once per <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a> call.</div>
|
||||
If the call chain ever got into the old API, this will be called at least once per
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a>
|
||||
call.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getActor--">
|
||||
@@ -171,7 +173,9 @@ var activeTableTab = "activeTableTab";
|
||||
<li class="blockList">
|
||||
<h4>getActor</h4>
|
||||
<pre><a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html?is-external=true" title="class or interface in net.minecraft.entity.player">EntityPlayer</a> getActor()</pre>
|
||||
<div class="block">Get the origin of action. This will be invoked at least once per <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a> call.</div>
|
||||
<div class="block">Get the origin of action. This will be invoked at least once per
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a>
|
||||
call.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="create-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayer-">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ITierConverter (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ITierConverter (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ITierConverter (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ITierConverter (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IWithExtendedContext (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IWithExtendedContext (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IWithExtendedContext (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IWithExtendedContext (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+7
-7
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>StructureDefinition.Builder (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>StructureDefinition.Builder (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="StructureDefinition.Builder (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="StructureDefinition.Builder (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -213,11 +213,10 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<pre>public <a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html" title="class in com.gtnewhorizon.structurelib.structure">StructureDefinition.Builder</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html" title="type parameter in StructureDefinition.Builder">T</a>> addShape(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[][] structurePiece)</pre>
|
||||
<div class="block">Adds shape. Shape is a two-dimensional string array. Each <b>character</b> inside any of these strings will
|
||||
be later mapped to a particular type of <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> as indicated by <a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addElement-java.lang.Character-com.gtnewhorizon.structurelib.structure.IStructureElement-"><code>addElement(Character, IStructureElement)</code></a>.
|
||||
be later mapped to a particular type of <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> as indicated by
|
||||
<a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.Builder.html#addElement-java.lang.Character-com.gtnewhorizon.structurelib.structure.IStructureElement-"><code>addElement(Character, IStructureElement)</code></a>.
|
||||
<p>
|
||||
next char is next block(a)
|
||||
next string is next line(b)
|
||||
next string[] is next slice(c)
|
||||
next char is next block(a) next string is next line(b) next string[] is next slice(c)
|
||||
<p>
|
||||
There are a few special reserved characters that are pre-mapped to some common structure elements
|
||||
<ul>
|
||||
@@ -231,7 +230,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>name</code> - unlocalized/code name</dd>
|
||||
<dd><code>structurePiece</code> - generated or written struct - DO NOT STORE IT ANYWHERE, or at least set them to null afterwards</dd>
|
||||
<dd><code>structurePiece</code> - generated or written struct - DO NOT STORE IT ANYWHERE, or at least set them to null
|
||||
afterwards</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>this builder</dd>
|
||||
</dl>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>StructureDefinition (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>StructureDefinition (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="StructureDefinition (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="StructureDefinition (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -265,7 +265,8 @@ implements <a href="../../../../com/gtnewhorizon/structurelib/structure/IStructu
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#getStructureFor-java.lang.String-">IStructureDefinition</a></code></span></div>
|
||||
<div class="block">Used internally
|
||||
<p>
|
||||
Might, but is not required, to throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a> if the given structure piece is not found.</div>
|
||||
Might, but is not required, to throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a> if the given structure piece is not
|
||||
found.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#getStructureFor-java.lang.String-">getStructureFor</a></code> in interface <code><a href="../../../../com/gtnewhorizon/structurelib/structure/IStructureDefinition.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureDefinition</a><<a href="../../../../com/gtnewhorizon/structurelib/structure/StructureDefinition.html" title="type parameter in StructureDefinition">T</a>></code></dd>
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>IBlockAdder (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>IBlockAdder (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="IBlockAdder (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="IBlockAdder (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ITileAdder (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ITileAdder (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ITileAdder (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ITileAdder (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.structure.adders (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.structure.adders (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.structure.adders (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.structure.adders (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure.adders (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure.adders (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.structure.adders Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.structure.adders Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure.adders Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure.adders Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.structure (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.structure (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.structure (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.structure (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -218,8 +218,8 @@
|
||||
<h2 title="Package com.gtnewhorizon.structurelib.structure Description">Package com.gtnewhorizon.structurelib.structure Description</h2>
|
||||
<div class="block">This package provide support for multiblock structure checking.
|
||||
<p>
|
||||
All public stuff in this package and its subpackages are considered part of the public API.
|
||||
Backwards compatibility is maintained to the maximum extend possible.</div>
|
||||
All public stuff in this package and its subpackages are considered part of the public API. Backwards compatibility
|
||||
is maintained to the maximum extend possible.</div>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.structure Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.structure Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.structure Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryIterable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryIterable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryIterable (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryIterable (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryUtility.InventoryProvider (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryUtility.InventoryProvider (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryUtility.InventoryProvider (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryUtility.InventoryProvider (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryUtility.ItemStackCounter (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryUtility.ItemStackCounter (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryUtility.ItemStackCounter (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryUtility.ItemStackCounter (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryUtility.ItemStackExtractor.APIType (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryUtility.ItemStackExtractor.APIType (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryUtility.ItemStackExtractor.APIType (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryUtility.ItemStackExtractor.APIType (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
+8
-8
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryUtility.ItemStackExtractor (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryUtility.ItemStackExtractor (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryUtility.ItemStackExtractor (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryUtility.ItemStackExtractor (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -207,14 +207,14 @@ var activeTableTab = "activeTableTab";
|
||||
<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">ItemStack</a> source,
|
||||
<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">ItemStack</a> filter,
|
||||
<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">EntityPlayerMP</a> player)</pre>
|
||||
<div class="block">Extract a particular type of item. The extractor can choose to not return all items contained within this item
|
||||
as long as it makes sense, but the author should inform the player of this.
|
||||
<div class="block">Extract a particular type of item. The extractor can choose to not return all items contained within this
|
||||
item as long as it makes sense, but the author should inform the player of this.
|
||||
<p>
|
||||
Whether this method does recursive extraction is at the discretion of implementor.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>predicate</code> - the main filtering predicate. never null. It's assumed predicate always returns true on filter,
|
||||
if that is not null</dd>
|
||||
<dd><code>predicate</code> - the main filtering predicate. never null. It's assumed predicate always returns true on
|
||||
filter, if that is not null</dd>
|
||||
<dd><code>store</code> - where to store extracted items. Should increment the</dd>
|
||||
<dd><code>source</code> - from where an extraction should be attempted</dd>
|
||||
<dd><code>filter</code> - stack to extract. should not be mutated! match the NBT tag using EXACT mode. might be null.</dd>
|
||||
@@ -235,8 +235,8 @@ var activeTableTab = "activeTableTab";
|
||||
<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">ItemStack</a> toExtract,
|
||||
boolean simulate,
|
||||
<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">EntityPlayerMP</a> player)</pre>
|
||||
<div class="block">Extract a particular type of item. The extractor can choose to not return all items contained within this item
|
||||
as long as it makes sense, but the author should inform the player of this.
|
||||
<div class="block">Extract a particular type of item. The extractor can choose to not return all items contained within this
|
||||
item as long as it makes sense, but the author should inform the player of this.
|
||||
<p>
|
||||
Whether this method does recursive extraction is at the discretion of implementor.</div>
|
||||
<dl>
|
||||
|
||||
+4
-4
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryUtility.OptimizedExtractor (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryUtility.OptimizedExtractor (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryUtility.OptimizedExtractor (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryUtility.OptimizedExtractor (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -156,8 +156,8 @@ var activeTableTab = "activeTableTab";
|
||||
<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">ItemStack</a> toExtract,
|
||||
boolean simulate,
|
||||
<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">EntityPlayerMP</a> player)</pre>
|
||||
<div class="block">Extract a particular type of item. The extractor can choose to not return all items contained within this item
|
||||
as long as it makes sense, but the author should inform the player of this.
|
||||
<div class="block">Extract a particular type of item. The extractor can choose to not return all items contained within this
|
||||
item as long as it makes sense, but the author should inform the player of this.
|
||||
<p>
|
||||
Whether optimized extractor do recursive extraction is at the discretion of implementor.</div>
|
||||
<dl>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InventoryUtility (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>InventoryUtility (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InventoryUtility (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="InventoryUtility (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -364,8 +364,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a><<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">ItemStack</a>> predicate,
|
||||
boolean simulate,
|
||||
int count)</pre>
|
||||
<div class="block">take count amount of stacks that matches given filter. might take partial amount of stuff, so simulation is suggested
|
||||
if you ever need to take more than one.</div>
|
||||
<div class="block">take count amount of stacks that matches given filter. might take partial amount of stuff, so simulation is
|
||||
suggested if you ever need to take more than one.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - source of stacks</dd>
|
||||
@@ -386,8 +386,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
|
||||
<pre>public static int takeFromInventory(<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">EntityPlayerMP</a> player,
|
||||
<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">ItemStack</a> filter,
|
||||
boolean simulate)</pre>
|
||||
<div class="block">take count amount of stacks that matches given filter. might take partial amount of stuff, so simulation is suggested
|
||||
if you ever need to take more than one.</div>
|
||||
<div class="block">take count amount of stacks that matches given filter. might take partial amount of stuff, so simulation is
|
||||
suggested if you ever need to take more than one.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - source of stacks</dd>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ItemStackArrayIterable (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ItemStackArrayIterable (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ItemStackArrayIterable (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ItemStackArrayIterable (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ItemStackPredicate.NBTMode (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ItemStackPredicate.NBTMode (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ItemStackPredicate.NBTMode (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ItemStackPredicate.NBTMode (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ItemStackPredicate (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>ItemStackPredicate (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ItemStackPredicate (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="ItemStackPredicate (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>MiscUtils (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>MiscUtils (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="MiscUtils (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="MiscUtils (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>SortedRegistry (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>SortedRegistry (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="SortedRegistry (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="SortedRegistry (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Vec3Impl (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Vec3Impl (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Vec3Impl (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Vec3Impl (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>XSTR (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>XSTR (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="XSTR (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="XSTR (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -118,10 +118,7 @@ var activeTableTab = "activeTableTab";
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">XSTR</span>
|
||||
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a></pre>
|
||||
<div class="block">XSTR - Xorshift ThermiteRandom
|
||||
Modified by Bogdan-G
|
||||
03.06.2016
|
||||
version 0.0.4</div>
|
||||
<div class="block">XSTR - Xorshift ThermiteRandom Modified by Bogdan-G 03.06.2016 version 0.0.4</div>
|
||||
<dl>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
<dd><a href="../../../../serialized-form.html#com.gtnewhorizon.structurelib.util.XSTR">Serialized Form</a></dd>
|
||||
@@ -169,8 +166,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/gtnewhorizon/structurelib/util/XSTR.html#XSTR-long-">XSTR</a></span>(long seed)</code>
|
||||
<div class="block">Creates a new pseudo random number generator, starting with the specified
|
||||
seed, using <code>setSeed(seed);</code>.</div>
|
||||
<div class="block">Creates a new pseudo random number generator, starting with the specified seed, using
|
||||
<code>setSeed(seed);</code>.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -201,9 +198,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/gtnewhorizon/structurelib/util/XSTR.html#next-int-">next</a></span>(int nbits)</code>
|
||||
<div class="block">Implementation of George Marsaglia's elegant Xorshift random generator
|
||||
30% faster and better quality than the built-in java.util.random see also
|
||||
see http://www.javamex.com/tutorials/random_numbers/xorshift.shtml</div>
|
||||
<div class="block">Implementation of George Marsaglia's elegant Xorshift random generator 30% faster and better quality than the
|
||||
built-in java.util.random see also see http://www.javamex.com/tutorials/random_numbers/xorshift.shtml</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
@@ -233,9 +229,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/gtnewhorizon/structurelib/util/XSTR.html#nextInt-int-">nextInt</a></span>(int bound)</code>
|
||||
<div class="block">Returns a pseudorandom, uniformly distributed <code>int</code> value between 0
|
||||
(inclusive) and the specified value (exclusive), drawn from this random
|
||||
number generator's sequence.</div>
|
||||
<div class="block">Returns a pseudorandom, uniformly distributed <code>int</code> value between 0 (inclusive) and the specified value
|
||||
(exclusive), drawn from this random number generator's sequence.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
@@ -301,8 +296,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<li class="blockList">
|
||||
<h4>XSTR</h4>
|
||||
<pre>public XSTR()</pre>
|
||||
<div class="block">Creates a new pseudo random number generator. The seed is initialized to
|
||||
the current time, as if by
|
||||
<div class="block">Creates a new pseudo random number generator. The seed is initialized to the current time, as if by
|
||||
<code>setSeed(System.currentTimeMillis());</code>.</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -313,8 +307,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<li class="blockList">
|
||||
<h4>XSTR</h4>
|
||||
<pre>public XSTR(long seed)</pre>
|
||||
<div class="block">Creates a new pseudo random number generator, starting with the specified
|
||||
seed, using <code>setSeed(seed);</code>.</div>
|
||||
<div class="block">Creates a new pseudo random number generator, starting with the specified seed, using
|
||||
<code>setSeed(seed);</code>.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>seed</code> - the initial seed</dd>
|
||||
@@ -376,9 +370,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<li class="blockList">
|
||||
<h4>setSeed</h4>
|
||||
<pre>public void setSeed(long seed)</pre>
|
||||
<div class="block">Sets the seed for this pseudo random number generator. As described
|
||||
above, two instances of the same random class, starting with the same
|
||||
seed, produce the same results, if the same methods are called.</div>
|
||||
<div class="block">Sets the seed for this pseudo random number generator. As described above, two instances of the same random
|
||||
class, starting with the same seed, produce the same results, if the same methods are called.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true#setSeed-long-" title="class or interface in java.util">setSeed</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a></code></dd>
|
||||
@@ -409,9 +402,8 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<li class="blockList">
|
||||
<h4>next</h4>
|
||||
<pre>public int next(int nbits)</pre>
|
||||
<div class="block">Implementation of George Marsaglia's elegant Xorshift random generator
|
||||
30% faster and better quality than the built-in java.util.random see also
|
||||
see http://www.javamex.com/tutorials/random_numbers/xorshift.shtml</div>
|
||||
<div class="block">Implementation of George Marsaglia's elegant Xorshift random generator 30% faster and better quality than the
|
||||
built-in java.util.random see also see http://www.javamex.com/tutorials/random_numbers/xorshift.shtml</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true#next-int-" title="class or interface in java.util">next</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a></code></dd>
|
||||
@@ -442,15 +434,14 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
<li class="blockList">
|
||||
<h4>nextInt</h4>
|
||||
<pre>public int nextInt(int bound)</pre>
|
||||
<div class="block">Returns a pseudorandom, uniformly distributed <code>int</code> value between 0
|
||||
(inclusive) and the specified value (exclusive), drawn from this random
|
||||
number generator's sequence. The general contract of <code>nextInt</code> is
|
||||
that one <code>int</code> value in the specified range is pseudorandomly
|
||||
generated and returned. All <code>bound</code> possible <code>int</code> values are
|
||||
produced with (approximately) equal probability. The method
|
||||
<code>nextInt(int bound)</code> is implemented by class <code>Random</code> as if
|
||||
by:
|
||||
<pre> <code>
|
||||
<div class="block">Returns a pseudorandom, uniformly distributed <code>int</code> value between 0 (inclusive) and the specified value
|
||||
(exclusive), drawn from this random number generator's sequence. The general contract of <code>nextInt</code> is that
|
||||
one <code>int</code> value in the specified range is pseudorandomly generated and returned. All <code>bound</code> possible
|
||||
<code>int</code> values are produced with (approximately) equal probability. The method <code>nextInt(int bound)</code> is
|
||||
implemented by class <code>Random</code> as if by:
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
public int nextInt(int bound) {
|
||||
if (bound <= 0)
|
||||
throw new IllegalArgumentException("bound must be positive");
|
||||
@@ -464,39 +455,33 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
|
||||
val = bits % bound;
|
||||
} while (bits - val + (bound-1) < 0);
|
||||
return val;
|
||||
}</code></pre>
|
||||
}</code>
|
||||
</pre>
|
||||
|
||||
<p>The hedge "approx
|
||||
imately" is used in the foregoing description only because the next
|
||||
method is only approximately an unbiased source of independently chosen
|
||||
bits. If it were a perfect source of randomly chosen bits, then the
|
||||
algorithm shown would choose <code>int</code> values from the stated range
|
||||
with perfect uniformity.
|
||||
<p>
|
||||
The algorithm is slightly tricky. It rejects values that would result in
|
||||
an uneven distribution (due to the fact that 2^31 is not divisible by n).
|
||||
The probability of a value being rejected depends on n. The worst case is
|
||||
n=2^30+1, for which the probability of a reject is 1/2, and the expected
|
||||
number of iterations before the loop terminates is 2.
|
||||
The hedge "approx imately" is used in the foregoing description only because the next method is only
|
||||
approximately an unbiased source of independently chosen bits. If it were a perfect source of randomly chosen
|
||||
bits, then the algorithm shown would choose <code>int</code> values from the stated range with perfect uniformity.
|
||||
<p>
|
||||
The algorithm treats the case where n is a power of two specially: it
|
||||
returns the correct number of high-order bits from the underlying
|
||||
pseudo-random number generator. In the absence of special treatment, the
|
||||
correct number of <i>low-order</i> bits would be returned. Linear
|
||||
congruential pseudo-random number generators such as the one implemented
|
||||
by this class are known to have short periods in the sequence of values
|
||||
of their low-order bits. Thus, this special case greatly increases the
|
||||
length of the sequence of values returned by successive calls to this
|
||||
method if n is a small power of two.</div>
|
||||
The algorithm is slightly tricky. It rejects values that would result in an uneven distribution (due to the fact
|
||||
that 2^31 is not divisible by n). The probability of a value being rejected depends on n. The worst case is
|
||||
n=2^30+1, for which the probability of a reject is 1/2, and the expected number of iterations before the loop
|
||||
terminates is 2.
|
||||
<p>
|
||||
The algorithm treats the case where n is a power of two specially: it returns the correct number of high-order
|
||||
bits from the underlying pseudo-random number generator. In the absence of special treatment, the correct number
|
||||
of <i>low-order</i> bits would be returned. Linear congruential pseudo-random number generators such as the one
|
||||
implemented by this class are known to have short periods in the sequence of values of their low-order bits.
|
||||
Thus, this special case greatly increases the length of the sequence of values returned by successive calls to
|
||||
this method if n is a small power of two.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true#nextInt-int-" title="class or interface in java.util">nextInt</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a></code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>bound</code> - the upper bound (exclusive). Must be positive.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>the next pseudorandom, uniformly distributed <code>int</code> value
|
||||
between zero (inclusive) and <code>bound</code> (exclusive) from this random
|
||||
number generator's sequence</dd>
|
||||
<dd>the next pseudorandom, uniformly distributed <code>int</code> value between zero (inclusive) and <code>bound</code>
|
||||
(exclusive) from this random number generator's sequence</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if bound is not positive</dd>
|
||||
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.util (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.util (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.util (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.util (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.util (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.util (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -142,10 +142,7 @@
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../../com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">XSTR - Xorshift ThermiteRandom
|
||||
Modified by Bogdan-G
|
||||
03.06.2016
|
||||
version 0.0.4</div>
|
||||
<div class="block">XSTR - Xorshift ThermiteRandom Modified by Bogdan-G 03.06.2016 version 0.0.4</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>com.gtnewhorizon.structurelib.util Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>com.gtnewhorizon.structurelib.util Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="com.gtnewhorizon.structurelib.util Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="com.gtnewhorizon.structurelib.util Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Constant Field Values (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Constant Field Values (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Constant Field Values (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Constant Field Values (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Deprecated List (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Deprecated List (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Deprecated List (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Deprecated List (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -155,8 +155,8 @@
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><a href="com/gtnewhorizon/structurelib/structure/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-">com.gtnewhorizon.structurelib.structure.IStructureElement.survivalPlaceBlock(T, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer<IChatComponent>)</a>
|
||||
<div class="block"><span class="deprecationComment">caller should call the non deprecated overload. implementor for reusable <a href="com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long as you know
|
||||
the caller will not call this overload.</span></div>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long
|
||||
as you know the caller will not call this overload.</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>API Help (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>API Help (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="API Help (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="API Help (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Index (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Index (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Index (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Index (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -156,8 +156,9 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#buildOrHints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-boolean-">buildOrHints(T, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, boolean)</a></span> - Method in interface com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureDefinition</a></dt>
|
||||
<dd>
|
||||
<div class="block">Call <a href="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#build-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>IStructureDefinition.build(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> if <code>hintsOnly</code>,
|
||||
call <a href="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#hints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>IStructureDefinition.hints(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> otherwise.</div>
|
||||
<div class="block">Call <a href="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#build-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>IStructureDefinition.build(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> if
|
||||
<code>hintsOnly</code>, call
|
||||
<a href="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#hints-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-"><code>IStructureDefinition.hints(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int)</code></a> otherwise.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#byIndex-int-">byIndex(int)</a></span> - Static method in enum com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></dt>
|
||||
<dd> </dd>
|
||||
@@ -333,7 +334,8 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#defer-java.util.function.Function-java.util.function.BiFunction-">defer(Function<T, IStructureElement<T>>, BiFunction<T, ItemStack, IStructureElement<T>>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This will defer the actual instantiation of structure element until the <b>first time</b> structure code is actually called.</div>
|
||||
<div class="block">This will defer the actual instantiation of structure element until the <b>first time</b> structure code is
|
||||
actually called.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#defer-java.util.function.Function-java.util.function.BiFunction-java.util.Map-">defer(Function<T, K>, BiFunction<T, ItemStack, K>, Map<K, IStructureElement<T>>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
@@ -553,6 +555,10 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/IWithExtendedContext.html#getCurrentContext--">getCurrentContext()</a></span> - Method in interface com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/IWithExtendedContext.html" title="interface in com.gtnewhorizon.structurelib.structure">IWithExtendedContext</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/StructureLibAPI.html#getDefaultHologramItem--">getDefaultHologramItem()</a></span> - Static method in class com.gtnewhorizon.structurelib.<a href="com/gtnewhorizon/structurelib/StructureLibAPI.html" title="class in com.gtnewhorizon.structurelib">StructureLibAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Get the hologram item.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/constructable/IMultiblockInfoContainer.html#getDescription-net.minecraft.item.ItemStack-">getDescription(ItemStack)</a></span> - Method in interface com.gtnewhorizon.structurelib.alignment.constructable.<a href="com/gtnewhorizon/structurelib/alignment/constructable/IMultiblockInfoContainer.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable">IMultiblockInfoContainer</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getDirection--">getDirection()</a></span> - Method in enum com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></dt>
|
||||
@@ -625,7 +631,7 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getOffsetABC-net.minecraft.util.Vec3-">getOffsetABC(Vec3)</a></span> - Method in enum com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></dt>
|
||||
<dd>
|
||||
<div class="block">Translates world offset to relative front facing offset</div>
|
||||
<div class="block">Translates world offset to relative front facing offset</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getOffsetABC-com.gtnewhorizon.structurelib.util.Vec3Impl-">getOffsetABC(Vec3Impl)</a></span> - Method in enum com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></dt>
|
||||
<dd> </dd>
|
||||
@@ -723,7 +729,7 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getWorldOffset-net.minecraft.util.Vec3-">getWorldOffset(Vec3)</a></span> - Method in enum com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></dt>
|
||||
<dd>
|
||||
<div class="block">Translates relative to front facing offset to world offset</div>
|
||||
<div class="block">Translates relative to front facing offset to world offset</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html#getWorldOffset-com.gtnewhorizon.structurelib.util.Vec3Impl-">getWorldOffset(Vec3Impl)</a></span> - Method in enum com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></dt>
|
||||
<dd> </dd>
|
||||
@@ -1033,7 +1039,8 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#lazy-java.util.function.Function-">lazy(Function<T, IStructureElement<T>>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This will defer the actual instantiation of structure element until the <b>first time</b> structure code is actually called.</div>
|
||||
<div class="block">This will defer the actual instantiation of structure element until the <b>first time</b> structure code is
|
||||
actually called.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a name="I:M">
|
||||
@@ -1069,9 +1076,8 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#next-int-">next(int)</a></span> - Method in class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd>
|
||||
<div class="block">Implementation of George Marsaglia's elegant Xorshift random generator
|
||||
30% faster and better quality than the built-in java.util.random see also
|
||||
see http://www.javamex.com/tutorials/random_numbers/xorshift.shtml</div>
|
||||
<div class="block">Implementation of George Marsaglia's elegant Xorshift random generator 30% faster and better quality than the
|
||||
built-in java.util.random see also see http://www.javamex.com/tutorials/random_numbers/xorshift.shtml</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#nextBoolean--">nextBoolean()</a></span> - Method in class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd> </dd>
|
||||
@@ -1085,9 +1091,8 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#nextInt-int-">nextInt(int)</a></span> - Method in class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd>
|
||||
<div class="block">Returns a pseudorandom, uniformly distributed <code>int</code> value between 0
|
||||
(inclusive) and the specified value (exclusive), drawn from this random
|
||||
number generator's sequence.</div>
|
||||
<div class="block">Returns a pseudorandom, uniformly distributed <code>int</code> value between 0 (inclusive) and the specified value
|
||||
(exclusive), drawn from this random number generator's sequence.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#nextInt--">nextInt()</a></span> - Method in class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd> </dd>
|
||||
@@ -1171,8 +1176,8 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#ofBlocksTiered-com.gtnewhorizon.structurelib.structure.ITierConverter-TIER-java.util.function.BiConsumer-java.util.function.Function-">ofBlocksTiered(ITierConverter<TIER>, TIER, BiConsumer<T, TIER>, Function<T, TIER>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">A more primitive variant of <a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#ofBlocksTiered-com.gtnewhorizon.structurelib.structure.ITierConverter-java.util.List-TIER-java.util.function.BiConsumer-java.util.function.Function-"><code>StructureUtility.ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a>
|
||||
Main difference is this one is check only.</div>
|
||||
<div class="block">A more primitive variant of <a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#ofBlocksTiered-com.gtnewhorizon.structurelib.structure.ITierConverter-java.util.List-TIER-java.util.function.BiConsumer-java.util.function.Function-"><code>StructureUtility.ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a> Main
|
||||
difference is this one is check only.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#ofBlocksTiered-com.gtnewhorizon.structurelib.structure.ITierConverter-java.util.List-TIER-java.util.function.BiConsumer-java.util.function.Function-">ofBlocksTiered(ITierConverter<TIER>, List<Pair<Block, Integer>>, TIER, BiConsumer<T, TIER>, Function<T, TIER>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
@@ -1188,8 +1193,8 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#ofBlockUnlocalizedName-java.lang.String-java.lang.String-int-com.gtnewhorizon.structurelib.structure.IStructureElement-">ofBlockUnlocalizedName(String, String, int, IStructureElement<T>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">Similiar to the other overload, but allows client code to specify a fallback in case said block was not found later
|
||||
when the element got called.</div>
|
||||
<div class="block">Similiar to the other overload, but allows client code to specify a fallback in case said block was not found
|
||||
later when the element got called.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#ofChain-com.gtnewhorizon.structurelib.structure.IStructureElement...-">ofChain(IStructureElement<T>...)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
@@ -1364,8 +1369,8 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/ICustomBlockSetting.html#setBlock-net.minecraft.world.World-int-int-int-int-">setBlock(World, int, int, int, int)</a></span> - Method in interface com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/ICustomBlockSetting.html" title="interface in com.gtnewhorizon.structurelib.structure">ICustomBlockSetting</a></dt>
|
||||
<dd>
|
||||
<div class="block">Default block setting calls <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true#setBlock-int-int-int-net.minecraft.block.Block-int-int-" title="class or interface in net.minecraft.world"><code>World.setBlock(int x, int y, int z, Block block, int meta, int updateType)</code></a> like:
|
||||
<code>world.setBlock(x,y,z,this/block,meta,2)</code> where updateType 2 means to update lighting and stuff</div>
|
||||
<div class="block">Default block setting calls <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html?is-external=true#setBlock-int-int-int-net.minecraft.block.Block-int-int-" title="class or interface in net.minecraft.world"><code>World.setBlock(int x, int y, int z, Block block, int meta, int updateType)</code></a>
|
||||
like: <code>world.setBlock(x,y,z,this/block,meta,2)</code> where updateType 2 means to update lighting and stuff</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/constructable/ChannelDataAccessor.html#setChannelData-net.minecraft.item.ItemStack-java.lang.String-int-">setChannelData(ItemStack, String, int)</a></span> - Static method in class com.gtnewhorizon.structurelib.alignment.constructable.<a href="com/gtnewhorizon/structurelib/alignment/constructable/ChannelDataAccessor.html" title="class in com.gtnewhorizon.structurelib.alignment.constructable">ChannelDataAccessor</a></dt>
|
||||
<dd>
|
||||
@@ -1458,7 +1463,8 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/constructable/IMultiblockInfoContainer.html#survivalConstruct-net.minecraft.item.ItemStack-int-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayerMP-T-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-">survivalConstruct(ItemStack, int, IItemSource, EntityPlayerMP, T, ExtendedFacing)</a></span> - Method in interface com.gtnewhorizon.structurelib.alignment.constructable.<a href="com/gtnewhorizon/structurelib/alignment/constructable/IMultiblockInfoContainer.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable">IMultiblockInfoContainer</a></dt>
|
||||
<dd>
|
||||
<div class="block">Construct the structure using <a href="com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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, java.util.function.Consumer)</code></a></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/constructable/ISurvivalConstructable.html#survivalConstruct-net.minecraft.item.ItemStack-int-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayerMP-">survivalConstruct(ItemStack, int, IItemSource, EntityPlayerMP)</a></span> - Method in interface com.gtnewhorizon.structurelib.alignment.constructable.<a href="com/gtnewhorizon/structurelib/alignment/constructable/ISurvivalConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable">ISurvivalConstructable</a></dt>
|
||||
<dd>
|
||||
@@ -1466,15 +1472,17 @@
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/alignment/constructable/ISurvivalConstructable.html#survivalConstruct-net.minecraft.item.ItemStack-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-">survivalConstruct(ItemStack, int, ISurvivalBuildEnvironment)</a></span> - Method in interface com.gtnewhorizon.structurelib.alignment.constructable.<a href="com/gtnewhorizon/structurelib/alignment/constructable/ISurvivalConstructable.html" title="interface in com.gtnewhorizon.structurelib.alignment.constructable">ISurvivalConstructable</a></dt>
|
||||
<dd>
|
||||
<div class="block">Construct the structure using <a href="com/gtnewhorizon/structurelib/structure/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="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a></div>
|
||||
<div class="block">Construct the structure using
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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="com/gtnewhorizon/structurelib/structure/IStructureDefinition.html#survivalBuild-T-net.minecraft.item.ItemStack-java.lang.String-net.minecraft.world.World-com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing-int-int-int-int-int-int-int-com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment-boolean-"><code>IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)</code></a></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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(T, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer<IChatComponent>)</a></span> - Method in interface com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a></dt>
|
||||
<dd>
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||||
<div class="block"><span class="deprecationComment">caller should call the non deprecated overload. implementor for reusable <a href="com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long as you know
|
||||
the caller will not call this overload.</span></div>
|
||||
should still implement this. implementor for private implementations can freely ignore this as long
|
||||
as you know the caller will not call this overload.</span></div>
|
||||
</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/IStructureElement.html#survivalPlaceBlock-T-net.minecraft.world.World-int-int-int-net.minecraft.item.ItemStack-com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment-">survivalPlaceBlock(T, World, int, int, int, ItemStack, AutoPlaceEnvironment)</a></span> - Method in interface com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a></dt>
|
||||
@@ -1495,35 +1503,43 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#survivalPlaceBlock-net.minecraft.block.Block-int-net.minecraft.world.World-int-int-int-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayerMP-">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayerMP)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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-">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayer)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#survivalPlaceBlock-net.minecraft.block.Block-int-net.minecraft.world.World-int-int-int-com.gtnewhorizon.structurelib.structure.IItemSource-net.minecraft.entity.player.EntityPlayerMP-java.util.function.Consumer-">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayerMP, Consumer<IChatComponent>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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-java.util.function.Consumer-">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayer, Consumer<IChatComponent>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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.EntityPlayerMP-">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayerMP)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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-">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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.EntityPlayerMP-java.util.function.Consumer-">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayerMP, Consumer<IChatComponent>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/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-">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer<IChatComponent>)</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">This is a helper method for implementing <a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
<div class="block">This is a helper method for implementing
|
||||
<a href="com/gtnewhorizon/structurelib/structure/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></div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a name="I:T">
|
||||
@@ -1602,8 +1618,8 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html#transpose-java.lang.String:A:A-">transpose(String[][])</a></span> - Static method in class com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/StructureUtility.html" title="class in com.gtnewhorizon.structurelib.structure">StructureUtility</a></dt>
|
||||
<dd>
|
||||
<div class="block">Transposes shape (swaps B and C axis, can be used to un-transpose transposed shape)
|
||||
WARNING! Do not use on old api...</div>
|
||||
<div class="block">Transposes shape (swaps B and C axis, can be used to un-transpose transposed shape) WARNING! Do not use on old
|
||||
api...</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a name="I:U">
|
||||
@@ -1737,8 +1753,8 @@ the order they are declared.</div>
|
||||
<dd>
|
||||
<div class="block">Return a trigger item that
|
||||
|
||||
Still carry all the subchannel in some unspecified ways
|
||||
Have its master channel data replaced with specified subchannel's data
|
||||
Still carry all the subchannel in some unspecified ways
|
||||
Have its master channel data replaced with specified subchannel's data
|
||||
|
||||
|
||||
If given subchannel does not exist, masterStack may or may not be returned to save performance.</div>
|
||||
@@ -1771,10 +1787,7 @@ the order they are declared.</div>
|
||||
<dl>
|
||||
<dt><a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util"><span class="typeNameLink">XSTR</span></a> - Class in <a href="com/gtnewhorizon/structurelib/util/package-summary.html">com.gtnewhorizon.structurelib.util</a></dt>
|
||||
<dd>
|
||||
<div class="block">XSTR - Xorshift ThermiteRandom
|
||||
Modified by Bogdan-G
|
||||
03.06.2016
|
||||
version 0.0.4</div>
|
||||
<div class="block">XSTR - Xorshift ThermiteRandom Modified by Bogdan-G 03.06.2016 version 0.0.4</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#XSTR--">XSTR()</a></span> - Constructor for class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd>
|
||||
@@ -1782,8 +1795,8 @@ the order they are declared.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#XSTR-long-">XSTR(long)</a></span> - Constructor for class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd>
|
||||
<div class="block">Creates a new pseudo random number generator, starting with the specified
|
||||
seed, using <code>setSeed(seed);</code>.</div>
|
||||
<div class="block">Creates a new pseudo random number generator, starting with the specified seed, using
|
||||
<code>setSeed(seed);</code>.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="com/gtnewhorizon/structurelib/util/XSTR.html#XSTR_INSTANCE">XSTR_INSTANCE</a></span> - Static variable in class com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/XSTR.html" title="class in com.gtnewhorizon.structurelib.util">XSTR</a></dt>
|
||||
<dd> </dd>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>StructureLib 1.7.10-1.1.12-15-g978938d API</title>
|
||||
<title>StructureLib 1.2.1-3-gea38c4e API</title>
|
||||
<script type="text/javascript">
|
||||
tmpTargetPage = "" + window.location.search;
|
||||
if (tmpTargetPage != "" && tmpTargetPage != "undefined")
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Overview List (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Overview List (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Overview (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Overview (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Overview (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Overview (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -68,7 +68,7 @@
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">StructureLib 1.7.10-1.1.12-15-g978938d API</h1>
|
||||
<h1 class="title">StructureLib 1.2.1-3-gea38c4e API</h1>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="subTitle">
|
||||
@@ -329,7 +329,37 @@ whereas all these structure elements are designed without considering channels w
|
||||
import com.gtnewhorizon.structurelib.structure.IStructureElement;
|
||||
|
||||
public class MyHatchElement<T> implements IStructureElement<T> {
|
||||
//...</div>
|
||||
//...
|
||||
@Override
|
||||
public PlaceResult survivalPlaceBlock(
|
||||
Object o,
|
||||
World world,
|
||||
int x,
|
||||
int y,
|
||||
int z,
|
||||
ItemStack trigger,
|
||||
IItemSource s,
|
||||
EntityPlayerMP actor,
|
||||
Consumer chatter) {
|
||||
if (shouldSkip(o, world, x, y, z)) return PlaceResult.SKIP;
|
||||
if (!StructureLibAPI.isBlockTriviallyReplaceable(world, x, y, z, actor)) return PlaceResult.REJECT;
|
||||
ItemStack taken = s.takeOne(filterByID(ChannelDataAccessor.getChannelData(trigger, "id")).andThen(filterByFacing(trigger.stackSize)));
|
||||
if (taken == null) return PlaceResult.REJECT;
|
||||
return StructureUtility.survivalPlaceBlock(taken, ItemStackPredicate.NBTMode.IGNORE, null, true, world, x, y, z, s, actor);
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
The code for placeBlock() and spawnHint() will be left as an exercise for the reader.
|
||||
|
||||
<h2>Instrumenting StructureLib</h2>
|
||||
<p>
|
||||
StructureLib support third party tools to poke into structure's internals via events. This is done by listening to <a href="com/gtnewhorizon/structurelib/StructureEvent.html" title="class in com.gtnewhorizon.structurelib"><code>StructureEvent</code></a>
|
||||
and its subclasses on the <code>forge main event bus</code>.
|
||||
</p>
|
||||
<p>
|
||||
Please refer to <a href="com/gtnewhorizon/structurelib/StructureEvent.html" title="class in com.gtnewhorizon.structurelib"><code>StructureEvent</code></a> to see what events are available.
|
||||
</p></div>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Class Hierarchy (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Class Hierarchy (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@@ -168,12 +168,12 @@
|
||||
<ul>
|
||||
<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a><E> (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
|
||||
<ul>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/Direction.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Direction</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/Flip.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Flip</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">ExtendedFacing</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/Rotation.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Rotation</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/IStructureElement.PlaceResult.html" title="enum in com.gtnewhorizon.structurelib.structure"><span class="typeNameLink">IStructureElement.PlaceResult</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.structure.<a href="com/gtnewhorizon/structurelib/structure/AutoPlaceEnvironment.APILevel.html" title="enum in com.gtnewhorizon.structurelib.structure"><span class="typeNameLink">AutoPlaceEnvironment.APILevel</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/Direction.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Direction</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/ExtendedFacing.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">ExtendedFacing</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/Flip.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Flip</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.alignment.enumerable.<a href="com/gtnewhorizon/structurelib/alignment/enumerable/Rotation.html" title="enum in com.gtnewhorizon.structurelib.alignment.enumerable"><span class="typeNameLink">Rotation</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/InventoryUtility.ItemStackExtractor.APIType.html" title="enum in com.gtnewhorizon.structurelib.util"><span class="typeNameLink">InventoryUtility.ItemStackExtractor.APIType</span></a></li>
|
||||
<li type="circle">com.gtnewhorizon.structurelib.util.<a href="com/gtnewhorizon/structurelib/util/ItemStackPredicate.NBTMode.html" title="enum in com.gtnewhorizon.structurelib.util"><span class="typeNameLink">ItemStackPredicate.NBTMode</span></a> (implements java.util.function.<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/BiPredicate.html?is-external=true" title="class or interface in java.util.function">BiPredicate</a><T,U>)</li>
|
||||
</ul>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Serialized Form (StructureLib 1.7.10-1.1.12-15-g978938d API)</title>
|
||||
<title>Serialized Form (StructureLib 1.2.1-3-gea38c4e API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
@@ -11,7 +11,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Serialized Form (StructureLib 1.7.10-1.1.12-15-g978938d API)";
|
||||
parent.document.title="Serialized Form (StructureLib 1.2.1-3-gea38c4e API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
Reference in new issue
Block a user