mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-26 14:53:03 +00:00
2639 lines
299 KiB
HTML
2639 lines
299 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (25) -->
|
|
<title>StructureUtility (StructureLib 1.4.42-master.1+137f651486 API)</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="description" content="declaration: package: com.gtnewhorizon.structurelib.structure, class: StructureUtility">
|
|
<meta name="generator" content="javadoc/ClassWriter">
|
|
<link rel="stylesheet" type="text/css" href="../../../../resource-files/jquery-ui.min.css">
|
|
<link rel="stylesheet" type="text/css" href="../../../../resource-files/stylesheet.css">
|
|
<script type="text/javascript" src="../../../../script-files/script.js"></script>
|
|
<script type="text/javascript" src="../../../../script-files/jquery-3.7.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../../script-files/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body class="class-declaration-page">
|
|
<script type="text/javascript">const pathtoroot = "../../../../";
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="top-nav" id="navbar-top">
|
|
<div class="nav-content">
|
|
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
|
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
|
<li><a href="../../../../index.html">Overview</a></li>
|
|
<li class="nav-bar-cell1-rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../search.html">Search</a></li>
|
|
<li><a href="../../../../help-doc.html#class">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="sub-nav">
|
|
<div class="nav-content">
|
|
<ol class="sub-nav-list">
|
|
<li><a href="package-summary.html">com.gtnewhorizon.structurelib.structure</a></li>
|
|
<li><a href="StructureUtility.html" class="current-selection">StructureUtility</a></li>
|
|
</ol>
|
|
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
|
</header>
|
|
<div class="main-grid">
|
|
<nav role="navigation" class="toc" aria-label="Table of contents">
|
|
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
|
<ol class="toc-list" tabindex="-1">
|
|
<li><a href="#" tabindex="0">Description</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#control-blocks-heading" tabindex="0">Control blocks</a></li>
|
|
<li><a href="#if-block-heading" tabindex="0">If block</a></li>
|
|
<li><a href="#switch-block-heading" tabindex="0">Switch block</a></li>
|
|
<li><a href="#or-chain-heading" tabindex="0">Or Chain</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#side-effect-heading" tabindex="0">Side effect</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#other-primitives-heading" tabindex="0">Other Primitives</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#error-statement-heading" tabindex="0">Error statement</a></li>
|
|
<li><a href="#context-object-change-heading" tabindex="0">Context Object Change</a></li>
|
|
<li><a href="#channel-change-heading" tabindex="0">Channel Change</a></li>
|
|
<li><a href="#spawn-hint-particle-heading" tabindex="0">Spawn hint particle</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#actual-element-heading" tabindex="0">Actual Element</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#simple-block-element-heading" tabindex="0">Simple Block Element</a></li>
|
|
<li><a href="#complex-block-element-heading" tabindex="0">Complex Block Element</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#helper-methods-heading" tabindex="0">Helper Methods</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
|
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP)" tabindex="0">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayerMP)</a></li>
|
|
<li><a href="#survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer)" tabindex="0">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayer)</a></li>
|
|
<li><a href="#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)" tabindex="0">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayerMP, Consumer)</a></li>
|
|
<li><a href="#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)" tabindex="0">survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayer, Consumer)</a></li>
|
|
<li><a href="#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)" tabindex="0">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayerMP)</a></li>
|
|
<li><a href="#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)" tabindex="0">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer)</a></li>
|
|
<li><a href="#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)" tabindex="0">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayerMP, Consumer)</a></li>
|
|
<li><a href="#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)" tabindex="0">survivalPlaceBlock(ItemStack, ItemStackPredicate.NBTMode, NBTTagCompound, boolean, World, int, int, int, IItemSource, EntityPlayer, Consumer)</a></li>
|
|
<li><a href="#isAir()" tabindex="0">isAir()</a></li>
|
|
<li><a href="#notAir()" tabindex="0">notAir()</a></li>
|
|
<li><a href="#error()" tabindex="0">error()</a></li>
|
|
<li><a href="#ofHint(int)" tabindex="0">ofHint(int)</a></li>
|
|
<li><a href="#ofHintDeferred(java.util.function.Supplier)" tabindex="0">ofHintDeferred(Supplier)</a></li>
|
|
<li><a href="#ofHintDeferred(java.util.function.Supplier,short%5B%5D)" tabindex="0">ofHintDeferred(Supplier, short[])</a></li>
|
|
<li><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,TIER,java.util.function.BiConsumer,java.util.function.Function)" tabindex="0">ofBlocksTiered(ITierConverter, TIER, BiConsumer, Function)</a></li>
|
|
<li><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)" tabindex="0">ofBlocksTiered(ITierConverter, List, TIER, BiConsumer, Function)</a></li>
|
|
<li><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function,java.util.List)" tabindex="0">ofBlocksTiered(ITierConverter, List, TIER, BiConsumer, Function, List)</a></li>
|
|
<li><a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int)" tabindex="0">ofBlockUnlocalizedName(String, String, int)</a></li>
|
|
<li><a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,boolean)" tabindex="0">ofBlockUnlocalizedName(String, String, int, boolean)</a></li>
|
|
<li><a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">ofBlockUnlocalizedName(String, String, int, IStructureElement)</a></li>
|
|
<li><a href="#ofBlocksFlatHint(java.util.Map,net.minecraft.block.Block,int)" tabindex="0">ofBlocksFlatHint(Map, Block, int)</a></li>
|
|
<li><a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)" tabindex="0">ofBlocksMapHint(Map, Block, int)</a></li>
|
|
<li><a href="#ofBlockHint(net.minecraft.block.Block,int,net.minecraft.block.Block,int)" tabindex="0">ofBlockHint(Block, int, Block, int)</a></li>
|
|
<li><a href="#ofBlockHint(net.minecraft.block.Block,int)" tabindex="0">ofBlockHint(Block, int)</a></li>
|
|
<li><a href="#ofBlockAdderHint(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)" tabindex="0">ofBlockAdderHint(IBlockAdder, Block, int)</a></li>
|
|
<li><a href="#ofBlocksFlat(java.util.Map,net.minecraft.block.Block,int)" tabindex="0">ofBlocksFlat(Map, Block, int)</a></li>
|
|
<li><a href="#ofBlocksMap(java.util.Map,net.minecraft.block.Block,int)" tabindex="0">ofBlocksMap(Map, Block, int)</a></li>
|
|
<li><a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)" tabindex="0">ofBlock(Block, int, Block, int)</a></li>
|
|
<li><a href="#ofBlockAnyMeta(net.minecraft.block.Block,net.minecraft.block.Block,int)" tabindex="0">ofBlockAnyMeta(Block, Block, int)</a></li>
|
|
<li><a href="#ofBlock(net.minecraft.block.Block,int)" tabindex="0">ofBlock(Block, int)</a></li>
|
|
<li><a href="#ofBlockAnyMeta(net.minecraft.block.Block)" tabindex="0">ofBlockAnyMeta(Block)</a></li>
|
|
<li><a href="#ofBlockAnyMeta(net.minecraft.block.Block,int)" tabindex="0">ofBlockAnyMeta(Block, int)</a></li>
|
|
<li><a href="#ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)" tabindex="0">ofBlockAdder(IBlockAdder, Block, int)</a></li>
|
|
<li><a href="#ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,int)" tabindex="0">ofBlockAdder(IBlockAdder, int)</a></li>
|
|
<li><a href="#ofTileAdder(com.gtnewhorizon.structurelib.structure.adders.ITileAdder,net.minecraft.block.Block,int)" tabindex="0">ofTileAdder(ITileAdder, Block, int)</a></li>
|
|
<li><a href="#ofSpecificTileAdder(java.util.function.BiPredicate,java.lang.Class,net.minecraft.block.Block,int)" tabindex="0">ofSpecificTileAdder(BiPredicate, Class, Block, int)</a></li>
|
|
<li><a href="#onElementPass(java.util.function.Consumer,B)" tabindex="0">onElementPass(Consumer, B)</a></li>
|
|
<li><a href="#withDescription(java.util.List,B)" tabindex="0">withDescription(List, B)</a></li>
|
|
<li><a href="#onElementFail(java.util.function.Consumer,B)" tabindex="0">onElementFail(Consumer, B)</a></li>
|
|
<li><a href="#onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">onlyIf(Predicate, IStructureElement)</a></li>
|
|
<li><a href="#onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement,com.gtnewhorizon.structurelib.structure.IStructureElement.PlaceResult)" tabindex="0">onlyIf(Predicate, IStructureElement, IStructureElement.PlaceResult)</a></li>
|
|
<li><a href="#ofChain(com.gtnewhorizon.structurelib.structure.IStructureElement...)" tabindex="0">ofChain(IStructureElement...)</a></li>
|
|
<li><a href="#ofChain(java.util.List)" tabindex="0">ofChain(List)</a></li>
|
|
<li><a href="#withContext(com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">withContext(IStructureElement)</a></li>
|
|
<li><a href="#lazy(java.util.function.Supplier)" tabindex="0">lazy(Supplier)</a></li>
|
|
<li><a href="#lazy(java.util.function.Function)" tabindex="0">lazy(Function)</a></li>
|
|
<li><a href="#defer(java.util.function.Supplier)" tabindex="0">defer(Supplier)</a></li>
|
|
<li><a href="#defer(java.util.function.Function)" tabindex="0">defer(Function)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.Map)" tabindex="0">defer(Function, Map)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.Map)" tabindex="0">partitionBy(Function, Map)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">defer(Function, Map, IStructureElement)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">partitionBy(Function, Map, IStructureElement)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)" tabindex="0">defer(Function, IStructureElement...)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)" tabindex="0">partitionBy(Function, IStructureElement...)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.List)" tabindex="0">defer(Function, List)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.List)" tabindex="0">partitionBy(Function, List)</a></li>
|
|
<li><a href="#defer(java.util.function.BiFunction)" tabindex="0">defer(BiFunction)</a></li>
|
|
<li><a href="#defer(java.util.function.BiFunction,java.util.Map)" tabindex="0">defer(BiFunction, Map)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.BiFunction,java.util.Map)" tabindex="0">partitionBy(BiFunction, Map)</a></li>
|
|
<li><a href="#defer(java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">defer(BiFunction, Map, IStructureElement)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">partitionBy(BiFunction, Map, IStructureElement)</a></li>
|
|
<li><a href="#defer(java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)" tabindex="0">defer(BiFunction, IStructureElement...)</a></li>
|
|
<li><a href="#defer(java.util.function.BiFunction,java.util.List)" tabindex="0">defer(BiFunction, List)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.function.BiFunction)" tabindex="0">defer(Function, BiFunction)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.function.BiFunction,java.util.Map)" tabindex="0">defer(Function, BiFunction, Map)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.Map)" tabindex="0">partitionBy(Function, BiFunction, Map)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">defer(Function, BiFunction, Map, IStructureElement)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">partitionBy(Function, BiFunction, Map, IStructureElement)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)" tabindex="0">defer(Function, BiFunction, IStructureElement...)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)" tabindex="0">partitionBy(Function, BiFunction, IStructureElement...)</a></li>
|
|
<li><a href="#defer(java.util.function.Function,java.util.function.BiFunction,java.util.List)" tabindex="0">defer(Function, BiFunction, List)</a></li>
|
|
<li><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.List)" tabindex="0">partitionBy(Function, BiFunction, List)</a></li>
|
|
<li><a href="#withChannel(java.lang.String,com.gtnewhorizon.structurelib.structure.IStructureElement)" tabindex="0">withChannel(String, IStructureElement)</a></li>
|
|
<li><a href="#step(int,int,int)" tabindex="0">step(int, int, int)</a></li>
|
|
<li><a href="#step(com.gtnewhorizon.structurelib.util.Vec3Impl)" tabindex="0">step(Vec3Impl)</a></li>
|
|
<li><a href="#getPseudoJavaCode(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,java.util.function.Function,int,int,int,boolean)" tabindex="0">getPseudoJavaCode(World, ExtendedFacing, int, int, int, int, int, int, Function, int, int, int, boolean)</a></li>
|
|
<li><a href="#iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer)" tabindex="0">iterate(World, ExtendedFacing, int, int, int, int, int, int, int, int, int, IBlockPosConsumer)</a></li>
|
|
<li><a href="#iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,boolean,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer,java.lang.Runnable,java.lang.Runnable)" tabindex="0">iterate(World, ExtendedFacing, int, int, int, int, int, int, boolean, int, int, int, IBlockPosConsumer, Runnable, Runnable)</a></li>
|
|
<li><a href="#transpose(java.lang.String%5B%5D%5B%5D)" tabindex="0">transpose(String[][])</a></li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
|
<main role="main">
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<h1 title="Class StructureUtility" class="title">Class StructureUtility</h1>
|
|
</div>
|
|
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
|
<div class="inheritance">com.gtnewhorizon.structurelib.structure.StructureUtility</div>
|
|
</div>
|
|
<section class="class-description" id="class-description">
|
|
<hr>
|
|
<div class="horizontal-scroll">
|
|
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">StructureUtility</span>
|
|
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
|
|
<div class="block">A brief index of everything contained
|
|
<h2 id="control-blocks-heading">Control blocks</h2> A lot of these might seem to make more sense as a default function on
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>. However, in that case javac generic will often fail to infer the type for you, so we have
|
|
to define them as static methods
|
|
<h2 id="if-block-heading">If block</h2> Provide if block, allowing downstream call only if user specified conditions are meet (i.e.
|
|
predicate returns true)
|
|
<ul>
|
|
<li><a href="#onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement)"><code>onlyIf(Predicate, IStructureElement)</code></a> and its overloads</li>
|
|
</ul>
|
|
<h2 id="switch-block-heading">Switch block</h2> Provide switch block, allowing to select a downstream element by using a key or index computed
|
|
from trigger item and/or context object.
|
|
<ul>
|
|
<li><a href="#partitionBy(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)"><code>partitionBy(Function, IStructureElement[])</code></a> and its overloads</li>
|
|
</ul>
|
|
<h2 id="or-chain-heading">Or Chain</h2> Provide a short-circuiting OR chain.
|
|
<ul>
|
|
<li><a href="#ofChain(com.gtnewhorizon.structurelib.structure.IStructureElement...)"><code>ofChain(IStructureElement[])</code></a> and its overloads</li>
|
|
</ul>
|
|
<h3 id="side-effect-heading">Side effect</h3> Provide callbacks on various occasion
|
|
<ul>
|
|
<li><a href="#onElementPass(java.util.function.Consumer,B)"><code>onElementPass(Consumer, IStructureElement)</code></a>: Call an callback upon element check success</li>
|
|
<li><a href="#onElementFail(java.util.function.Consumer,B)"><code>onElementFail(Consumer, IStructureElement)</code></a>: Call an callback upon element check failure</li>
|
|
</ul>
|
|
|
|
<h2 id="other-primitives-heading">Other Primitives</h2>
|
|
<h3 id="error-statement-heading">Error statement</h3> Unconditionally return false.
|
|
<ul>
|
|
<li><a href="#error()"><code>error()</code></a></li>
|
|
</ul>
|
|
<h3 id="context-object-change-heading">Context Object Change</h3> Switch the context object.
|
|
<ul>
|
|
<li><a href="#withContext(com.gtnewhorizon.structurelib.structure.IStructureElement)"><code>withContext(IStructureElement)</code></a>: switch context to the extended context</li>
|
|
</ul>
|
|
<h3 id="channel-change-heading">Channel Change</h3> Change the channel. See <a href="../../../../overview-summary.html#channels">Channels section
|
|
on overview</a> for more information.
|
|
<ul>
|
|
<li><a href="#withChannel(java.lang.String,com.gtnewhorizon.structurelib.structure.IStructureElement)"><code>withChannel(String, IStructureElement)</code></a>: switch channel using
|
|
<a href="../alignment/constructable/ChannelDataAccessor.html#withChannel(net.minecraft.item.ItemStack,java.lang.String)"><code>ChannelDataAccessor.withChannel(ItemStack, String)</code></a> when a trigger item is present.</li>
|
|
</ul>
|
|
<h3 id="spawn-hint-particle-heading">Spawn hint particle</h3> Just spawn a hint. Do nothing otherwise. Useful when you want to override the hint
|
|
provided by another structure element, or as a fallback to a structure element that is check only.
|
|
<ul>
|
|
<li><a href="#ofHint(int)"><code>ofHint(int)</code></a>, <a href="#ofHintDeferred(java.util.function.Supplier)"><code>ofHintDeferred(Supplier)</code></a> and its overloads</li>
|
|
</ul>
|
|
|
|
<h2 id="actual-element-heading">Actual Element</h2> These elements are elements that can actually do structure check, spawn hint and do auto
|
|
place. Elements listed in above 2 sections are not going to be helpful without elements like these. They also serve
|
|
as a reference implementation for your own custom <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> implementations.
|
|
<h3 id="simple-block-element-heading">Simple Block Element</h3> These accept one or more different block types in one location.
|
|
<ul>
|
|
<li><a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)"><code>ofBlock(Block, int, Block, int)</code></a>, <a href="#ofBlocksFlat(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksFlat(Map, Block, int)</code></a>,
|
|
<a href="#ofBlocksMap(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMap(Map, Block, int)</code></a> and their overloads: the most basic form</li>
|
|
<li><a href="#ofBlockHint(net.minecraft.block.Block,int,net.minecraft.block.Block,int)"><code>ofBlockHint(Block, int, Block, int)</code></a>, <a href="#ofBlocksFlatHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksFlatHint(Map, Block, int)</code></a>,
|
|
<a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMapHint(Map, Block, int)</code></a>: these are the same as above, but will not do autoplace</li>
|
|
<li><a href="#isAir()"><code>isAir()</code></a>, <a href="#notAir()"><code>notAir()</code></a>: They are supplied by default under the identifier <code>'-'</code> and
|
|
<code>'+'</code> respectively, but are provided here regardless in case you want to use them as a fallback.</li>
|
|
</ul>
|
|
<h3 id="complex-block-element-heading">Complex Block Element</h3> In case your logic on determining which block is accepted is complex, use these.
|
|
<ul>
|
|
<li><a href="#ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)"><code>ofBlockAdder(IBlockAdder, Block, int)</code></a>, <a href="#ofBlockAdderHint(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)"><code>ofBlockAdderHint(IBlockAdder, Block, int)</code></a> and their
|
|
overloads: hands off actual adder logic to an <a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders"><code>IBlockAdder</code></a> you supplied. Save you the boilerplate of querying
|
|
block type and block meta from <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link"><code>World</code></a></li>
|
|
<li><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, Object, BiConsumer, Function)</code></a> and its overloads: accept a series of
|
|
blocks that each may have different tier, but only allow one single tier for anywhere this element is used (e.g.
|
|
coils).</li>
|
|
<li><a href="#ofTileAdder(com.gtnewhorizon.structurelib.structure.adders.ITileAdder,net.minecraft.block.Block,int)"><code>ofTileAdder(ITileAdder, Block, int)</code></a>, <a href="#ofSpecificTileAdder(java.util.function.BiPredicate,java.lang.Class,net.minecraft.block.Block,int)"><code>ofSpecificTileAdder(BiPredicate, Class, Block, int)</code></a>:
|
|
Similar to block adder, but for tile entities.</li>
|
|
</ul>
|
|
|
|
<h2 id="helper-methods-heading">Helper Methods</h2> These don't construct a <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a>, but is helpful to the instantiation or
|
|
implementation of these.
|
|
<ul>
|
|
<li><a href="#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)"><code>survivalPlaceBlock(Block, int, World, int, int, int, IItemSource, EntityPlayer, Consumer)</code></a> and its
|
|
overloads: Helper method to cut common boilerplate for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></li>
|
|
<li><a href="#getPseudoJavaCode(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,java.util.function.Function,int,int,int,boolean)"><code>getPseudoJavaCode(World, ExtendedFacing, int, int, int, int, int, int, Function, int, int, int, boolean)</code></a>:
|
|
Generate a structure code template from existing structure.</li>
|
|
<li><a href="#iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,boolean,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer,java.lang.Runnable,java.lang.Runnable)"><code>iterate(World, ExtendedFacing, int, int, int, int, int, int, boolean, int, int, int, IBlockPosConsumer, Runnable, Runnable)</code></a>
|
|
and its overloads: help iterate over a coordinate space.</li>
|
|
</ul></div>
|
|
</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<li>
|
|
<section class="method-summary" id="method-summary">
|
|
<h2>Method Summary</h2>
|
|
<div id="method-summary-table">
|
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated Methods</button></div>
|
|
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Method</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#defer(java.util.function.BiFunction)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This will defer the actual instantiation of structure element until the structure code is actually called.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#defer(java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#defer(java.util.function.BiFunction,java.util.List)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.BiFunction,java.util.Map)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#defer(java.util.function.Function)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This will defer the actual instantiation of structure element until the structure code is actually called.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#defer(java.util.function.Function,java.util.function.BiFunction)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> toCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<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>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.function.BiFunction,java.util.List)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.List)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.function.BiFunction,java.util.Map)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.Map)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#defer(java.util.function.Function,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#defer(java.util.function.Supplier)" class="member-name-link">defer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This will defer the actual instantiation of structure element until the structure code is actually called.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#error()" class="member-name-link">error</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Check returns false.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPseudoJavaCode(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,java.util.function.Function,int,int,int,boolean)" class="member-name-link">getPseudoJavaCode</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
<a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> extendedFacing,
|
|
int basePositionX,
|
|
int basePositionY,
|
|
int basePositionZ,
|
|
int basePositionA,
|
|
int basePositionB,
|
|
int basePositionC,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><? super <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/tileentity/TileEntity.html" title="class or interface in net.minecraft.tileentity" class="external-link">TileEntity</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> tileEntityClassifier,
|
|
int sizeA,
|
|
int sizeB,
|
|
int sizeC,
|
|
boolean transpose)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Used only to get pseudo code in structure writer...</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isAir()" class="member-name-link">isAir</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Return a structure element that only allow air (or air equivalents, like Railcraft hidden blocks).</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,boolean,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer,java.lang.Runnable,java.lang.Runnable)" class="member-name-link">iterate</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
<a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> extendedFacing,
|
|
int basePositionX,
|
|
int basePositionY,
|
|
int basePositionZ,
|
|
int basePositionA,
|
|
int basePositionB,
|
|
int basePositionC,
|
|
boolean transpose,
|
|
int sizeA,
|
|
int sizeB,
|
|
int sizeC,
|
|
<a href="IBlockPosConsumer.html" title="interface in com.gtnewhorizon.structurelib.structure">IBlockPosConsumer</a> iBlockPosConsumer,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html" title="class or interface in java.lang" class="external-link">Runnable</a> nextB,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html" title="class or interface in java.lang" class="external-link">Runnable</a> nextC)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer)" class="member-name-link">iterate</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
<a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> extendedFacing,
|
|
int basePositionX,
|
|
int basePositionY,
|
|
int basePositionZ,
|
|
int basePositionA,
|
|
int basePositionB,
|
|
int basePositionC,
|
|
int sizeA,
|
|
int sizeB,
|
|
int sizeC,
|
|
<a href="IBlockPosConsumer.html" title="interface in com.gtnewhorizon.structurelib.structure">IBlockPosConsumer</a> iBlockPosConsumer)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#lazy(java.util.function.Function)" class="member-name-link">lazy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<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>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#lazy(java.util.function.Supplier)" class="member-name-link">lazy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Similar to defer, but caches the first returned element returned and won't call it again.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#notAir()" class="member-name-link">notAir</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Return a structure element that allow anything but air (or air equivalents, like Railcraft hidden blocks).</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlock(net.minecraft.block.Block,int)" class="member-name-link">ofBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a single block with a fixed meta.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)" class="member-name-link">ofBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a block.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,int)" class="member-name-link">ofBlockAdder</a><wbr>(<a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">IBlockAdder</a><T> iBlockAdder,
|
|
int dots)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)" class="member-name-link">ofBlockAdder</a><wbr>(<a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">IBlockAdder</a><T> iBlockAdder,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Add a block using block adder.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockAdderHint(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)" class="member-name-link">ofBlockAdderHint</a><wbr>(<a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">IBlockAdder</a><T> iBlockAdder,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Add a block using block adder.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockAnyMeta(net.minecraft.block.Block)" class="member-name-link">ofBlockAnyMeta</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a single block, but accept any meta.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockAnyMeta(net.minecraft.block.Block,int)" class="member-name-link">ofBlockAnyMeta</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int defaultMeta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a single block, but accept any meta.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockAnyMeta(net.minecraft.block.Block,net.minecraft.block.Block,int)" class="member-name-link">ofBlockAnyMeta</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Same as <a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)"><code>ofBlock(Block, int, Block, int)</code></a> but ignores target meta id</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockHint(net.minecraft.block.Block,int)" class="member-name-link">ofBlockHint</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept one (block, meta).</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockHint(net.minecraft.block.Block,int,net.minecraft.block.Block,int)" class="member-name-link">ofBlockHint</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept one (block, meta).</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksFlat(java.util.Map,net.minecraft.block.Block,int)" class="member-name-link">ofBlocksFlat</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a set of blocks.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksFlatHint(java.util.Map,net.minecraft.block.Block,int)" class="member-name-link">ofBlocksFlatHint</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a set of blocks.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksMap(java.util.Map,net.minecraft.block.Block,int)" class="member-name-link">ofBlocksMap</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a set of blocks.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)" class="member-name-link">ofBlocksMapHint</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Accept a set of blocks.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>TIER> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)" class="member-name-link">ofBlocksTiered</a><wbr>(<a href="ITierConverter.html" title="interface in com.gtnewhorizon.structurelib.structure">ITierConverter</a><TIER> tierExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><org.apache.commons.lang3.tuple.Pair<<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> allKnownTiers,
|
|
TIER notSet,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiConsumer.html" title="class or interface in java.util.function" class="external-link">BiConsumer</a><T,<wbr>TIER> setter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>TIER> getter)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Element representing a component with different tiers.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>TIER> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function,java.util.List)" class="member-name-link">ofBlocksTiered</a><wbr>(<a href="ITierConverter.html" title="interface in com.gtnewhorizon.structurelib.structure">ITierConverter</a><TIER> tierExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><org.apache.commons.lang3.tuple.Pair<<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> allKnownTiers,
|
|
TIER notSet,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiConsumer.html" title="class or interface in java.util.function" class="external-link">BiConsumer</a><T,<wbr>TIER> setter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>TIER> getter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> description)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Like <a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a>, but with an explicit
|
|
description that will be returned by <a href="IStructureElement.html#getDescription(T)"><code>IStructureElement.getDescription(Object)</code></a>.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>TIER> <a href="IStructureElementCheckOnly.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementCheckOnly</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,TIER,java.util.function.BiConsumer,java.util.function.Function)" class="member-name-link">ofBlocksTiered</a><wbr>(<a href="ITierConverter.html" title="interface in com.gtnewhorizon.structurelib.structure">ITierConverter</a><TIER> tierExtractor,
|
|
TIER notSet,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiConsumer.html" title="class or interface in java.util.function" class="external-link">BiConsumer</a><T,<wbr>TIER> setter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>TIER> getter)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">A more primitive variant of <a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a> Main
|
|
difference is this one is check only.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int)" class="member-name-link">ofBlockUnlocalizedName</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> modid,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> unlocalizedName,
|
|
int meta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Denote a block using unlocalized names.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,boolean)" class="member-name-link">ofBlockUnlocalizedName</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> modid,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> registryName,
|
|
int meta,
|
|
boolean wildcard)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Denote a block using unlocalized names.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">ofBlockUnlocalizedName</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> modid,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> unlocalizedName,
|
|
int meta,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> fallback)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<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>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementChain.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementChain</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofChain(com.gtnewhorizon.structurelib.structure.IStructureElement...)" class="member-name-link">ofChain</a><wbr>(<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... elementChain)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This allows you to compose different <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> to form a <b>OR</b> chain.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementChain.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementChain</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofChain(java.util.List)" class="member-name-link">ofChain</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> elementChain)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This allows you to compose different <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> to form a <b>OR</b> chain.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofHint(int)" class="member-name-link">ofHint</a><wbr>(int dots)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Spawn a hint with given amount of dots.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofHintDeferred(java.util.function.Supplier)" class="member-name-link">ofHintDeferred</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IIcon.html" title="class or interface in net.minecraft.util" class="external-link">IIcon</a>[]> icons)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Spawn a hint with given textures.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofHintDeferred(java.util.function.Supplier,short%5B%5D)" class="member-name-link">ofHintDeferred</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IIcon.html" title="class or interface in net.minecraft.util" class="external-link">IIcon</a>[]> icons,
|
|
short[] RGBa)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Spawn a hint with given amount of textures and tint.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>E> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofSpecificTileAdder(java.util.function.BiPredicate,java.lang.Class,net.minecraft.block.Block,int)" class="member-name-link">ofSpecificTileAdder</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiPredicate.html" title="class or interface in java.util.function" class="external-link">BiPredicate</a><T,<wbr>E> iTileAdder,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><E> tileClass,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Try to add a structure element with a particular type of tile entity.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#ofTileAdder(com.gtnewhorizon.structurelib.structure.adders.ITileAdder,net.minecraft.block.Block,int)" class="member-name-link">ofTileAdder</a><wbr>(<a href="adders/ITileAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">ITileAdder</a><T> iTileAdder,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Try to add a structure element with a tile entity.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <B extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>, T><br><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#onElementFail(java.util.function.Consumer,B)" class="member-name-link">onElementFail</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><T> onFail,
|
|
B element)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Call a callback if downstream element returned false in check.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <B extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>, T><br><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#onElementPass(java.util.function.Consumer,B)" class="member-name-link">onElementPass</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><T> onCheckPass,
|
|
B element)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Call a callback if downstream element returned true in check.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">onlyIf</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html" title="class or interface in java.util.function" class="external-link">Predicate</a><? super T> predicate,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><? super T> downstream)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Enable this structure element only if given predicate returns true.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement,com.gtnewhorizon.structurelib.structure.IStructureElement.PlaceResult)" class="member-name-link">onlyIf</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html" title="class or interface in java.util.function" class="external-link">Predicate</a><? super T> predicate,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><? super T> downstream,
|
|
<a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a> placeResultWhenDisabled)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Enable this structure element only if given predicate returns true.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.BiFunction,java.util.Map)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code, with default case support.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code, with default case.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.List)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code, with default case.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.List)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.Map)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code, with default case.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.Map)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T,<wbr>K> <a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionBy(java.util.function.Function,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">partitionBy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is the switch block for structure code, with default case support.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> com.gtnewhorizon.structurelib.structure.IStructureNavigate<wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#step(int,int,int)" class="member-name-link">step</a><wbr>(int a,
|
|
int b,
|
|
int c)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Used internally, to generate skips for structure definitions</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> com.gtnewhorizon.structurelib.structure.IStructureNavigate<wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#step(com.gtnewhorizon.structurelib.util.Vec3Impl)" class="member-name-link">step</a><wbr>(<a href="../util/Vec3Impl.html" title="class in com.gtnewhorizon.structurelib.util">Vec3Impl</a> step)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Used internally, to generate skips for structure definitions</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#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)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#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)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#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)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#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)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#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)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#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)" class="member-name-link">survivalPlaceBlock</a><wbr>(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[][]</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#transpose(java.lang.String%5B%5D%5B%5D)" class="member-name-link">transpose</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[][] structurePiece)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<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>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T> <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#withChannel(java.lang.String,com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">withChannel</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> channel,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> backing)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">See channels.md in docs folder</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <CTX, T extends <a href="IWithExtendedContext.html" title="interface in com.gtnewhorizon.structurelib.structure">IWithExtendedContext</a><CTX>><br><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#withContext(com.gtnewhorizon.structurelib.structure.IStructureElement)" class="member-name-link">withContext</a><wbr>(<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><CTX> elem)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Switch to the extended context object in the downstream element</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <B extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>, T><br><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><wbr><T></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#withDescription(java.util.List,B)" class="member-name-link">withDescription</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> description,
|
|
B element)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
|
<div class="block">Wraps an element and overrides its description.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
|
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="details">
|
|
<ul class="details-list">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<li>
|
|
<section class="method-details" id="method-detail">
|
|
<h2>Method Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="survivalPlaceBlock(net.minecraft.block.Block,int,net.minecraft.world.World,int,int,int,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="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)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit. This method might yield error messages to the chatter.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
<dd><code>chatter</code> - normal error destination. can be null to suppress them.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="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)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit. This method might yield error messages to the chatter.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
<dd><code>chatter</code> - normal error destination. can be null to suppress them.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="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)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>stack</code> - a valid stack with stack size of exactly 1. Must be of an ItemBlock!</dd>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="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)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>stack</code> - a valid stack with stack size of exactly 1. Must be of an ItemBlock!</dd>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="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)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayerMP.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayerMP</a> actor,
|
|
@Nullable
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit. This method might yield error messages to the chatter.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>stack</code> - a valid stack with stack size of exactly 1. Must be of an ItemBlock!</dd>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
<dd><code>chatter</code> - normal error destination. can be null to suppress them.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="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)">
|
|
<h3>survivalPlaceBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a></span> <span class="element-name">survivalPlaceBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a> stack,
|
|
<a href="../util/ItemStackPredicate.NBTMode.html" title="enum class in com.gtnewhorizon.structurelib.util">ItemStackPredicate.NBTMode</a> nbtMode,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/nbt/NBTTagCompound.html" title="class or interface in net.minecraft.nbt" class="external-link">NBTTagCompound</a> tag,
|
|
boolean assumeStackPresent,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
int x,
|
|
int y,
|
|
int z,
|
|
<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> s,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/EntityPlayer.html" title="class or interface in net.minecraft.entity.player" class="external-link">EntityPlayer</a> actor,
|
|
@Nullable
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IChatComponent.html" title="class or interface in net.minecraft.util" class="external-link">IChatComponent</a>> chatter)</span></div>
|
|
<div class="block">This is a helper method for implementing
|
|
<a href="IStructureElement.html#survivalPlaceBlock(T,net.minecraft.world.World,int,int,int,net.minecraft.item.ItemStack,com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayerMP,java.util.function.Consumer)"><code>IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, Consumer)</code></a>
|
|
<p>
|
|
This method will try to look up an <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemBlock.html" title="class or interface in net.minecraft.item" class="external-link"><code>ItemBlock</code></a> for given block and meta from <code>s</code> and place it at
|
|
given location. This method assume block at given coord is NOT acceptable, but may or may not be trivially
|
|
replaceable This method might yield error messages to the player only if there is likely a programming error or
|
|
exploit. This method might yield error messages to the chatter.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>stack</code> - a valid stack with stack size of exactly 1. Must be of an ItemBlock!</dd>
|
|
<dd><code>s</code> - drain resources from this place</dd>
|
|
<dd><code>actor</code> - source of action. cannot be null.</dd>
|
|
<dd><code>chatter</code> - normal error destination. can be null to suppress them.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="isAir()">
|
|
<h3>isAir</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">isAir</span>()</div>
|
|
<div class="block">Return a structure element that only allow air (or air equivalents, like Railcraft hidden blocks). You usually
|
|
don't need to call this yourselves. Use <code>-</code> in shape to automatically use this. Provided nontheless in case
|
|
you want this as a fallback to something else.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="notAir()">
|
|
<h3>notAir</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">notAir</span>()</div>
|
|
<div class="block">Return a structure element that allow anything but air (or air equivalents, like Railcraft hidden blocks). You
|
|
usually don't need to call this yourselves. Use <code>+</code> in shape to automatically use this. Provided nontheless
|
|
in case you want this as a fallback to something else.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="error()">
|
|
<h3>error</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">error</span>()</div>
|
|
<div class="block">Check returns false. Placement is always handled by this and does nothing. Makes little to no use it in fallback
|
|
chain.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofHint(int)">
|
|
<h3>ofHint</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofHint</span><wbr><span class="parameters">(int dots)</span></div>
|
|
<div class="block">Spawn a hint with given amount of dots. Check always returns: true. Only useful as a fallback, e.g.
|
|
<a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,com.gtnewhorizon.structurelib.structure.IStructureElement)"><code>ofBlockUnlocalizedName(String, String, int, IStructureElement)</code></a></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofHintDeferred(java.util.function.Supplier)">
|
|
<h3>ofHintDeferred</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofHintDeferred</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IIcon.html" title="class or interface in net.minecraft.util" class="external-link">IIcon</a>[]> icons)</span></div>
|
|
<div class="block">Spawn a hint with given textures. Check always returns: true. Only useful as a fallback, e.g.
|
|
<a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,com.gtnewhorizon.structurelib.structure.IStructureElement)"><code>ofBlockUnlocalizedName(String, String, int, IStructureElement)</code></a></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofHintDeferred(java.util.function.Supplier,short[])">
|
|
<h3>ofHintDeferred</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofHintDeferred</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/IIcon.html" title="class or interface in net.minecraft.util" class="external-link">IIcon</a>[]> icons,
|
|
short[] RGBa)</span></div>
|
|
<div class="block">Spawn a hint with given amount of textures and tint. Check always returns: true. Only useful as a fallback, e.g.
|
|
<a href="#ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,com.gtnewhorizon.structurelib.structure.IStructureElement)"><code>ofBlockUnlocalizedName(String, String, int, IStructureElement)</code></a></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,TIER,java.util.function.BiConsumer,java.util.function.Function)">
|
|
<h3 id="ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.lang.Object,java.util.function.BiConsumer,java.util.function.Function)">ofBlocksTiered</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>TIER></span>
|
|
<span class="return-type"><a href="IStructureElementCheckOnly.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementCheckOnly</a><T></span> <span class="element-name">ofBlocksTiered</span><wbr><span class="parameters">(<a href="ITierConverter.html" title="interface in com.gtnewhorizon.structurelib.structure">ITierConverter</a><TIER> tierExtractor,
|
|
@Nullable
|
|
TIER notSet,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiConsumer.html" title="class or interface in java.util.function" class="external-link">BiConsumer</a><T,<wbr>TIER> setter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>TIER> getter)</span></div>
|
|
<div class="block">A more primitive variant of <a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a> Main
|
|
difference is this one is check only.
|
|
<p>
|
|
Note that if tierExtractor returns a null, this block will be rejected immediately. This makes null a potent
|
|
candidate for notSet.
|
|
<p>
|
|
See documentation on the other overload for more information.</div>
|
|
<dl class="notes">
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list-long">
|
|
<li><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, Object, BiConsumer, Function)</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)">
|
|
<h3 id="ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,java.lang.Object,java.util.function.BiConsumer,java.util.function.Function)">ofBlocksTiered</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>TIER></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlocksTiered</span><wbr><span class="parameters">(<a href="ITierConverter.html" title="interface in com.gtnewhorizon.structurelib.structure">ITierConverter</a><TIER> tierExtractor,
|
|
@Nullable
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><org.apache.commons.lang3.tuple.Pair<<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> allKnownTiers,
|
|
@Nullable
|
|
TIER notSet,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiConsumer.html" title="class or interface in java.util.function" class="external-link">BiConsumer</a><T,<wbr>TIER> setter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>TIER> getter)</span></div>
|
|
<div class="block">Element representing a component with different tiers. Your multi will accept any of them (as long as player does
|
|
not mix tier (*)), but would like to know which is used. Player can use more blueprint to get hints denoting more
|
|
advanced components.
|
|
<p>
|
|
Above all else, you need to decide what type of tier you are going to use. For simpler cases, Integer is a good
|
|
choice. You can also use an existing Enum. It can also be a String or a
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/util/ResourceLocation.html" title="class or interface in net.minecraft.util" class="external-link"><code>ResourceLocation</code></a>, or basically anything. It doesn't even have to implement
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link"><code>Comparable</code></a>.
|
|
<p>
|
|
If your tier extractor function returns null on any (Block, meta) pair, then it means this block is rejected.
|
|
This also implies null can never be a valid tier.
|
|
<p>
|
|
This structure element require you will reset the backing storage of getter in your own code, such that in every
|
|
round of structure checking, the first call to getter would always return notSet. You can also make getter to
|
|
return other value on that occasion to forcefully select a certain tier, but then you'd probably be better off
|
|
using block adders or <a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)"><code>ofBlock(Block, int, Block, int)</code></a> and its overloads
|
|
<p>
|
|
There is yet no TileEntity counterpart of this utility. Feel free to submit a PR to add it.
|
|
<p>
|
|
(*): Implementation wise, this structure element will only accept a block if its tier is the same as existing
|
|
tier or if existing tier is unset (i.e. value of third argument). If there are multiple (block, tier) tuple for a
|
|
given tier, then player will be allowed to use multiple kinds of blocks, but their tier is guaranteed to be the
|
|
same.
|
|
<p>
|
|
<h4 id="warning-heading">WARNING</h4> <b>You SHOULD NOT return notSet from your tierExtractor.</b> If you do so, we will have this
|
|
chain of events:
|
|
<ul>
|
|
<li>at check start, tier is reset to notSet
|
|
<li>the tier extractor returns notSet for first block, so since ofBlocksTiered finds your current tier is notSet,
|
|
and the new block's tier is the same as that, so it's accepted
|
|
<li>at 2nd, 3rd..., same thing in 2 happens
|
|
<li>at last occurrence, player placed a valid block with a tier not notSet. ofBlocksTiered now sets your current
|
|
tier to this tier, and accept the block
|
|
<li>check got notified structure is sound, and tier is not notSet. it marks the structure as complete and start
|
|
doing its business
|
|
<li>Player enjoy a (probably) hilariously shaped multi and (probably) reduced build cost.
|
|
</ul>
|
|
<h4 id="example-implementation-heading">Example Implementation</h4>
|
|
<p>
|
|
Assume you have 16 tier, each map to one particular block's 16 different meta. You will usually want something
|
|
like this
|
|
|
|
<pre>
|
|
public class Tile extends TileEntity {
|
|
private static final Block B = getTargetBlock();
|
|
private static final IStructureDefinition<Tile> S = IStructureDefinition.<Tile>builder()
|
|
// ... addShape, and other elements
|
|
.addElement('c', ofBlocksTiered((b, m) -> b == B ? m : null,
|
|
IntStream.range(0, 16).mapToObj(i -> Pair.of(B, i)).collect(Collectors.toList()),
|
|
-1,
|
|
(t, m) -> t.tier = m,
|
|
t -> t.tier))
|
|
.build();
|
|
private int tier;
|
|
|
|
public boolean check() {
|
|
tier = -1;
|
|
if (!S.check(...))
|
|
return false;
|
|
return isTierAcceptable(tier);
|
|
}
|
|
}
|
|
</pre>
|
|
|
|
Important bits of this example implementation:
|
|
<ul>
|
|
<li>The supplied ITierConverter returns null for an invalid block</li>
|
|
<li>Possible tier returned by ITierConverter is Integer object 0 to 15.</li>
|
|
<li>notSet is set to -1. tier got reset to this value by caller before calling into
|
|
<a href="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>IStructureDefinition.check(Object, String, World, ExtendedFacing, int, int, int, int, int, int, boolean)</code></a></li>
|
|
<li>notSet is never a tier returned by ITierConverter.</li>
|
|
</ul>
|
|
<p>
|
|
As a friendly reminder, the above characteristics are only for this simply demo, not as a general restriction
|
|
imposed by ofBlocksTiered.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>tierExtractor</code> - a function to extract tier info from a block. This function can return null and will never
|
|
be passed a null block or an invalid block meta. If this function returns null, then the
|
|
block would be considered invalid.</dd>
|
|
<dd><code>allKnownTiers</code> - A list of all known tiers as of calling. Can be empty or null. No hint will be spawned if
|
|
empty or null. Cannot have null elements. First element denotes the most primitive tier.
|
|
Last element denotes the most advanced tier. If not all tiers are available at definition
|
|
construction time, use <a href="#lazy(java.util.function.Supplier)"><code>lazy(Supplier)</code></a> or its overloads to delay a bit. This list is
|
|
only for hint particle spawning and survival build. The hint/autoplace code will choose 1st
|
|
pair to spawn/place if trigger item has master channel data of 1, 2nd pair if 2, and so on.</dd>
|
|
<dd><code>notSet</code> - The value returned from <code>getter</code> when there were no tier info found in T yet. Cannot
|
|
be null.</dd>
|
|
<dd><code>setter</code> - a function to set the current tier into context object</dd>
|
|
<dd><code>getter</code> - a function to retrieve the current tier from context object</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function,java.util.List)">
|
|
<h3 id="ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,java.lang.Object,java.util.function.BiConsumer,java.util.function.Function,java.util.List)">ofBlocksTiered</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>TIER></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlocksTiered</span><wbr><span class="parameters">(<a href="ITierConverter.html" title="interface in com.gtnewhorizon.structurelib.structure">ITierConverter</a><TIER> tierExtractor,
|
|
@Nullable
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><org.apache.commons.lang3.tuple.Pair<<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> allKnownTiers,
|
|
@Nullable
|
|
TIER notSet,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiConsumer.html" title="class or interface in java.util.function" class="external-link">BiConsumer</a><T,<wbr>TIER> setter,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>TIER> getter,
|
|
@Nullable
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> description)</span></div>
|
|
<div class="block">Like <a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a>, but with an explicit
|
|
description that will be returned by <a href="IStructureElement.html#getDescription(T)"><code>IStructureElement.getDescription(Object)</code></a>.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>description</code> - the description lang keys to attach to this element, or null for no description</dd>
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list-long">
|
|
<li><a href="#ofBlocksTiered(com.gtnewhorizon.structurelib.structure.ITierConverter,java.util.List,TIER,java.util.function.BiConsumer,java.util.function.Function)"><code>ofBlocksTiered(ITierConverter, List, Object, BiConsumer, Function)</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockUnlocalizedName(java.lang.String,java.lang.String,int)">
|
|
<h3>ofBlockUnlocalizedName</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockUnlocalizedName</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> modid,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> unlocalizedName,
|
|
int meta)</span></div>
|
|
<div class="block">Denote a block using unlocalized names. This can be useful to get around mod loading order issues.
|
|
<p>
|
|
<b>DUE TO HISTORICAL REASONS, THIS WAS CALLED ofBlockUnlocalizedName, BUT IT ACTUALLY USES REGISTRY NAME
|
|
INSTEAD.</b>
|
|
<p>
|
|
While no immediate error will be thrown, client code should ensure said mod is loaded and said mod is present,
|
|
otherwise bad things will happen later!</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,boolean)">
|
|
<h3>ofBlockUnlocalizedName</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockUnlocalizedName</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> modid,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> registryName,
|
|
int meta,
|
|
boolean wildcard)</span></div>
|
|
<div class="block">Denote a block using unlocalized names. This can be useful to get around mod loading order issues.
|
|
<p>
|
|
<b>DUE TO HISTORICAL REASONS, THIS WAS CALLED ofBlockUnlocalizedName, BUT IT ACTUALLY USES REGISTRY NAME
|
|
INSTEAD.</b>
|
|
<p>
|
|
While no immediate error will be thrown, client code should ensure said mod is loaded and said mod is present,
|
|
otherwise the element will effectively become an <a href="#error()"><code>error()</code></a>.
|
|
<p>
|
|
Will place block or hint using the given meta if wildcard is true.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockUnlocalizedName(java.lang.String,java.lang.String,int,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>ofBlockUnlocalizedName</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockUnlocalizedName</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> modid,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> unlocalizedName,
|
|
int meta,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> fallback)</span></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.
|
|
<p>
|
|
<b>DUE TO HISTORICAL REASONS, THIS WAS CALLED ofBlockUnlocalizedName, BUT IT ACTUALLY USES REGISTRY NAME
|
|
INSTEAD.</b>
|
|
<p>
|
|
This is slightly different to using the other overload and another element in a
|
|
<a href="#ofChain(com.gtnewhorizon.structurelib.structure.IStructureElement...)"><code>ofChain(IStructureElement[])</code></a>. Here fallback will only ever be used if this fails, where ofChain would
|
|
form an OR relationship even if the mod is loaded and the block exists in registry.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksFlatHint(java.util.Map,net.minecraft.block.Block,int)">
|
|
<h3>ofBlocksFlatHint</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofBlocksFlatHint</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</span></div>
|
|
<div class="block">Accept a set of blocks. Less cumbersome to use than <a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMapHint(Map, Block, int)</code></a> when for any
|
|
accepted block type we accept only one meta for each.
|
|
<p>
|
|
Does not have autoplace.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>blocsMap</code> - Accepted (block, meta) pairs.</dd>
|
|
<dd><code>hintBlock</code> - hint block to use</dd>
|
|
<dd><code>hintMeta</code> - hint meta to use</dd>
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list-long">
|
|
<li><a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMapHint(Map, Block, int)</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)">
|
|
<h3>ofBlocksMapHint</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofBlocksMapHint</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</span></div>
|
|
<div class="block">Accept a set of blocks.
|
|
<p>
|
|
Does not have autoplace.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>blocsMap</code> - Accepted (block, meta) pairs.</dd>
|
|
<dd><code>hintBlock</code> - hint block to use</dd>
|
|
<dd><code>hintMeta</code> - hint meta to use</dd>
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list-long">
|
|
<li><a href="#ofBlocksFlatHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksFlatHint(Map, Block, int)</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockHint(net.minecraft.block.Block,int,net.minecraft.block.Block,int)">
|
|
<h3>ofBlockHint</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofBlockHint</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</span></div>
|
|
<div class="block">Accept one (block, meta). Spawn hint particles using an alternative block and meta. Not very useful...</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockHint(net.minecraft.block.Block,int)">
|
|
<h3>ofBlockHint</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofBlockHint</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta)</span></div>
|
|
<div class="block">Accept one (block, meta). Same as <a href="#ofBlock(net.minecraft.block.Block,int)"><code>ofBlock(Block, int)</code></a>, except it explicitly turns off creative/survival
|
|
build.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockAdderHint(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)">
|
|
<h3>ofBlockAdderHint</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofBlockAdderHint</span><wbr><span class="parameters">(<a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">IBlockAdder</a><T> iBlockAdder,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</span></div>
|
|
<div class="block">Add a block using block adder. Spawn hints using given hint block and meta.
|
|
<p>
|
|
Useful when your logic is very complex. Does not support autoplace.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksFlat(java.util.Map,net.minecraft.block.Block,int)">
|
|
<h3>ofBlocksFlat</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlocksFlat</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</span></div>
|
|
<div class="block">Accept a set of blocks. Less cumbersome to use than <a href="#ofBlocksMap(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMap(Map, Block, int)</code></a> when for any accepted
|
|
block type we accept only one meta for each.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>blocsMap</code> - Accepted (block, meta) pairs.</dd>
|
|
<dd><code>defaultBlock</code> - default block to place/spawn hint</dd>
|
|
<dd><code>defaultMeta</code> - default meta to place/spawn hint</dd>
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list-long">
|
|
<li><a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMapHint(Map, Block, int)</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlocksMap(java.util.Map,net.minecraft.block.Block,int)">
|
|
<h3>ofBlocksMap</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlocksMap</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>>> blocsMap,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</span></div>
|
|
<div class="block">Accept a set of blocks.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>blocsMap</code> - Accepted (block, meta) pairs.</dd>
|
|
<dd><code>defaultBlock</code> - default block to place/spawn hint</dd>
|
|
<dd><code>defaultMeta</code> - default meta to place/spawn hint</dd>
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list-long">
|
|
<li><a href="#ofBlocksMapHint(java.util.Map,net.minecraft.block.Block,int)"><code>ofBlocksMapHint(Map, Block, int)</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)">
|
|
<h3>ofBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</span></div>
|
|
<div class="block">Accept a block. Spawn hint/autoplace using another.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>block</code> - accepted block</dd>
|
|
<dd><code>meta</code> - accepted meta</dd>
|
|
<dd><code>defaultBlock</code> - hint block</dd>
|
|
<dd><code>defaultMeta</code> - hint meta</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockAnyMeta(net.minecraft.block.Block,net.minecraft.block.Block,int)">
|
|
<h3>ofBlockAnyMeta</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockAnyMeta</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</span></div>
|
|
<div class="block">Same as <a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)"><code>ofBlock(Block, int, Block, int)</code></a> but ignores target meta id</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlock(net.minecraft.block.Block,int)">
|
|
<h3>ofBlock</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlock</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int meta)</span></div>
|
|
<div class="block">Accept a single block with a fixed meta. Most primitive form of structure.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockAnyMeta(net.minecraft.block.Block)">
|
|
<h3>ofBlockAnyMeta</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockAnyMeta</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block)</span></div>
|
|
<div class="block">Accept a single block, but accept any meta.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockAnyMeta(net.minecraft.block.Block,int)">
|
|
<h3>ofBlockAnyMeta</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockAnyMeta</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> block,
|
|
int defaultMeta)</span></div>
|
|
<div class="block">Accept a single block, but accept any meta. Spawn hint/autoplace using given meta.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,net.minecraft.block.Block,int)">
|
|
<h3>ofBlockAdder</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockAdder</span><wbr><span class="parameters">(<a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">IBlockAdder</a><T> iBlockAdder,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> defaultBlock,
|
|
int defaultMeta)</span></div>
|
|
<div class="block">Add a block using block adder. Spawn hints/autoplace using given hint block and meta.
|
|
<p>
|
|
Useful when your logic is very complex.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofBlockAdder(com.gtnewhorizon.structurelib.structure.adders.IBlockAdder,int)">
|
|
<h3>ofBlockAdder</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">ofBlockAdder</span><wbr><span class="parameters">(<a href="adders/IBlockAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">IBlockAdder</a><T> iBlockAdder,
|
|
int dots)</span></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofTileAdder(com.gtnewhorizon.structurelib.structure.adders.ITileAdder,net.minecraft.block.Block,int)">
|
|
<h3>ofTileAdder</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofTileAdder</span><wbr><span class="parameters">(<a href="adders/ITileAdder.html" title="interface in com.gtnewhorizon.structurelib.structure.adders">ITileAdder</a><T> iTileAdder,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</span></div>
|
|
<div class="block">Try to add a structure element with a tile entity. Note that tile adder will be called with a null argument at
|
|
locations without tile entity.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofSpecificTileAdder(java.util.function.BiPredicate,java.lang.Class,net.minecraft.block.Block,int)">
|
|
<h3>ofSpecificTileAdder</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>E></span> <span class="return-type"><a href="IStructureElementNoPlacement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementNoPlacement</a><T></span> <span class="element-name">ofSpecificTileAdder</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiPredicate.html" title="class or interface in java.util.function" class="external-link">BiPredicate</a><T,<wbr>E> iTileAdder,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><E> tileClass,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/block/Block.html" title="class or interface in net.minecraft.block" class="external-link">Block</a> hintBlock,
|
|
int hintMeta)</span></div>
|
|
<div class="block">Try to add a structure element with a particular type of tile entity. Note that tile adder will not be called at
|
|
locations without a tile entity.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="onElementPass(java.util.function.Consumer,B)">
|
|
<h3 id="onElementPass(java.util.function.Consumer,com.gtnewhorizon.structurelib.structure.IStructureElement)">onElementPass</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><B extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>, T></span>
|
|
<span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">onElementPass</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><T> onCheckPass,
|
|
B element)</span></div>
|
|
<div class="block">Call a callback if downstream element returned true in check.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>onCheckPass</code> - side effect</dd>
|
|
<dd><code>element</code> - downstream</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="withDescription(java.util.List,B)">
|
|
<h3 id="withDescription(java.util.List,com.gtnewhorizon.structurelib.structure.IStructureElement)">withDescription</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><B extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>, T></span>
|
|
<span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">withDescription</span><wbr><span class="parameters">(@Nullable
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> description,
|
|
B element)</span></div>
|
|
<div class="block">Wraps an element and overrides its description. Useful for providing human-readable names to elements whose
|
|
underlying implementation doesn't provide a description (e.g. tiered block elements).</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>description</code> - the description to use, or null to clear any existing description</dd>
|
|
<dd><code>element</code> - the element to wrap</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="onElementFail(java.util.function.Consumer,B)">
|
|
<h3 id="onElementFail(java.util.function.Consumer,com.gtnewhorizon.structurelib.structure.IStructureElement)">onElementFail</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><B extends <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>, T></span>
|
|
<span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">onElementFail</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><T> onFail,
|
|
B element)</span></div>
|
|
<div class="block">Call a callback if downstream element returned false in check.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>onFail</code> - side effect</dd>
|
|
<dd><code>element</code> - downstream</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>onlyIf</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">onlyIf</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html" title="class or interface in java.util.function" class="external-link">Predicate</a><? super T> predicate,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><? super T> downstream)</span></div>
|
|
<div class="block">Enable this structure element only if given predicate returns true.
|
|
<p>
|
|
Return REJECT_CONTINUE when survival auto place if given predicate returns false.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="onlyIf(java.util.function.Predicate,com.gtnewhorizon.structurelib.structure.IStructureElement,com.gtnewhorizon.structurelib.structure.IStructureElement.PlaceResult)">
|
|
<h3>onlyIf</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">onlyIf</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html" title="class or interface in java.util.function" class="external-link">Predicate</a><? super T> predicate,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><? super T> downstream,
|
|
<a href="IStructureElement.PlaceResult.html" title="enum class in com.gtnewhorizon.structurelib.structure">IStructureElement.PlaceResult</a> placeResultWhenDisabled)</span></div>
|
|
<div class="block">Enable this structure element only if given predicate returns true.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>placeResultWhenDisabled</code> - value to return for survival auto place when predicate returns false</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofChain(com.gtnewhorizon.structurelib.structure.IStructureElement...)">
|
|
<h3>ofChain</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SafeVarargs.html" title="class or interface in java.lang" class="external-link">@SafeVarargs</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementChain.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementChain</a><T></span> <span class="element-name">ofChain</span><wbr><span class="parameters">(<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... elementChain)</span></div>
|
|
<div class="block">This allows you to compose different <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> to form a <b>OR</b> chain. As with any other OR
|
|
operator, this one exhibits short-circuiting behavior, i.e. it will not call next structure element if previous
|
|
one succeeded. (*)
|
|
<p>
|
|
This allows you e.g. accept both a glass block using <a href="#ofBlock(net.minecraft.block.Block,int,net.minecraft.block.Block,int)"><code>ofBlock(Block, int, Block, int)</code></a> and a piece of air
|
|
using <a href="#isAir()"><code>isAir()</code></a>. It will not attempt to capture any errors though, so next one will not be tried if
|
|
previous one would crash.
|
|
<p>
|
|
(*): For survival auto place, it will: REJECT, if any structure element returns REJECT (and none returned ACCEPT,
|
|
STOP, ACCEPT_STOP, or SKIP); REJECT_CONTINUE, if all structure elements return REJECT_CONTINUE (none returned
|
|
REJECT); SKIP, as soon as any structure element returns SKIP; any other result, immediately upon any structure
|
|
element returning those.
|
|
<p>
|
|
Take care while chaining, as it will try to call every structure element until it returns true. If none does it
|
|
will finally return false.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ofChain(java.util.List)">
|
|
<h3>ofChain</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementChain.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementChain</a><T></span> <span class="element-name">ofChain</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> elementChain)</span></div>
|
|
<div class="block">This allows you to compose different <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure"><code>IStructureElement</code></a> to form a <b>OR</b> chain.
|
|
<p>
|
|
Practically no difference with the other overload.</div>
|
|
<dl class="notes">
|
|
<dt>See Also:</dt>
|
|
<dd>
|
|
<ul class="tag-list">
|
|
<li><a href="#ofChain(com.gtnewhorizon.structurelib.structure.IStructureElement...)"><code>ofChain(IStructureElement[])</code></a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="withContext(com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>withContext</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><CTX, T extends <a href="IWithExtendedContext.html" title="interface in com.gtnewhorizon.structurelib.structure">IWithExtendedContext</a><CTX>></span>
|
|
<span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">withContext</span><wbr><span class="parameters">(<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><CTX> elem)</span></div>
|
|
<div class="block">Switch to the extended context object in the downstream element</div>
|
|
<dl class="notes">
|
|
<dt>Type Parameters:</dt>
|
|
<dd><span id="withContext(com.gtnewhorizon.structurelib.structure.IStructureElement)-type-param-CTX"><code>CTX</code> - extended context type</span></dd>
|
|
<dd><span id="withContext(com.gtnewhorizon.structurelib.structure.IStructureElement)-type-param-T"><code>T</code> - existing context object type</span></dd>
|
|
<dt>Parameters:</dt>
|
|
<dd><code>elem</code> - downstream element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="lazy(java.util.function.Supplier)">
|
|
<h3>lazy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">lazy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</span></div>
|
|
<div class="block">Similar to defer, but caches the first returned element returned and won't call it again. Initialization is not
|
|
thread safe. These both allow the structure element **constructor** to access properties only present on the
|
|
context object (e.g. GT5 multiblock controller), e.g. hatch texture index to use. Use `lazy` if the data you
|
|
access will remain constant across different context object.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="lazy(java.util.function.Function)">
|
|
<h3>lazy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">lazy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</span></div>
|
|
<div class="block">This will defer the actual instantiation of structure element until the <b>first time</b> structure code is
|
|
actually called.
|
|
<p>
|
|
Similar to defer, but caches the first returned element returned and won't call it again. Initialization is not
|
|
thread safe. This will allow the structure element <b>constructor</b> to access properties only present on the
|
|
context object (e.g. GT5 multiblock controller), e.g. hatch texture index to use. Use this if the data you access
|
|
will remain constant.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>to</code> - create structure element from the first context object passed in</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Supplier)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html" title="class or interface in java.util.function" class="external-link">Supplier</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</span></div>
|
|
<div class="block">This will defer the actual instantiation of structure element until the structure code is actually called. This
|
|
will allow the structure element <b>constructor</b> to access properties only present on the context object (e.g.
|
|
GT5 multiblock controller), e.g. hatch texture index to use. Use this if it might change for the same structure
|
|
definition, e.g. if your structure might switch mode and change some parameter, while basically remain the same
|
|
shape. Using this while <a href="#lazy(java.util.function.Supplier)"><code>lazy(Supplier)</code></a> is enough will not break anything, but would incur unnecessary
|
|
performance overhead.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>to</code> - downstream element supplier</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</span></div>
|
|
<div class="block">This will defer the actual instantiation of structure element until the structure code is actually called. This
|
|
will allow the structure element <b>constructor</b> to access properties only present on the context object (e.g.
|
|
GT5 multiblock controller), e.g. hatch texture index to use. Use this if it might change for the same structure
|
|
definition, e.g. if your structure might switch mode and change some parameter, while basically remain the same
|
|
shape. Using this while <a href="#lazy(java.util.function.Supplier)"><code>lazy(Supplier)</code></a> is enough will not break anything, but would incur unnecessary
|
|
performance overhead.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>to</code> - downstream element supplier</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.Map)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.Map)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns a key not
|
|
found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code, with default case support.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. The fallback will only be used when keyExtractor returns a value not found in given map. This will play
|
|
nicely in combination with <a href="#error()"><code>error()</code></a>
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
<dd><code>defaultElem</code> - element to use when keyExtractor returns a value not found in given map</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</span></div>
|
|
<div class="block">This is the switch block for structure code, with default case support.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. The fallback will only be used when keyExtractor returns a value not found in given map. This will play
|
|
nicely in combination with <a href="#error()"><code>error()</code></a>
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
<dd><code>defaultElem</code> - element to use when keyExtractor returns a value not found in given map</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SafeVarargs.html" title="class or interface in java.lang" class="external-link">@SafeVarargs</a>
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract an index from the context object</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,com.gtnewhorizon.structurelib.structure.IStructureElement...)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SafeVarargs.html" title="class or interface in java.lang" class="external-link">@SafeVarargs</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract an index from the context object</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.List)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract an index from the context object</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.List)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract an index from the context object</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.BiFunction)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</span></div>
|
|
<div class="block">This will defer the actual instantiation of structure element until the structure code is actually called. This
|
|
will allow the structure element <b>constructor</b> to access properties only present on the context object (e.g.
|
|
GT5 multiblock controller), e.g. hatch texture index to use. Use this if it might change for the same structure
|
|
definition, e.g. if your structure might switch mode and change some parameter, while basically remain the same
|
|
shape. Using this while <a href="#lazy(java.util.function.Supplier)"><code>lazy(Supplier)</code></a> is enough will not break anything, but would incur unnecessary
|
|
performance overhead.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>to</code> - downstream element supplier</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.BiFunction,java.util.Map)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns a key not
|
|
found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.BiFunction,java.util.Map)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns a key not
|
|
found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code, with default case support.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. The fallback will only be used when keyExtractor returns a value not found in given map. This will play
|
|
nicely in combination with <a href="#error()"><code>error()</code></a>
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
<dd><code>defaultElem</code> - element to use when keyExtractor returns a value not found in given map</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</span></div>
|
|
<div class="block">This is the switch block for structure code, with default case support.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. The fallback will only be used when keyExtractor returns a value not found in given map. This will play
|
|
nicely in combination with <a href="#error()"><code>error()</code></a>
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
<dd><code>defaultElem</code> - element to use when keyExtractor returns a value not found in given map</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SafeVarargs.html" title="class or interface in java.lang" class="external-link">@SafeVarargs</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.BiFunction,java.util.List)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.function.BiFunction)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> toCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> to)</span></div>
|
|
<div class="block">This will defer the actual instantiation of structure element until the <b>first time</b> structure code is
|
|
actually called.
|
|
<p>
|
|
Similar to defer, but caches the first returned element returned and won't call it again. Initialization is not
|
|
thread safe. This will allow the structure element <b>constructor</b> to access properties only present on the
|
|
context object (e.g. GT5 multiblock controller), e.g. hatch texture index to use. Use this if the data you access
|
|
will remain constant.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>toCheck</code> - override the check function with the returned element</dd>
|
|
<dd><code>to</code> - create structure element from the context object passed in</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.function.BiFunction,java.util.Map)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns a key not
|
|
found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.Map)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map)</span></div>
|
|
<div class="block">This is the switch block for structure code.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns a key not
|
|
found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code, with default case.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. defaultElem will be used if either extractor returned a key not found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.Map,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T,<wbr>K></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr>K> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, K> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><K, <a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> map,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> defaultElem)</span></div>
|
|
<div class="block">This is the switch block for structure code, with default case.
|
|
<p>
|
|
This allows you to extract or compute a key from context object, and lookup a map for actual structure element to
|
|
use. defaultElem will be used if either extractor returned a key not found in map.
|
|
<p>
|
|
Do pay attention to what properties your map has though. You need to pay attention to how they consider equality
|
|
and how they consider null key/values. Guava ImmutableMap is usually a good enough choice.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>map</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SafeVarargs.html" title="class or interface in java.lang" class="external-link">@SafeVarargs</a>
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code, with default case.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.function.BiFunction,com.gtnewhorizon.structurelib.structure.IStructureElement...)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SafeVarargs.html" title="class or interface in java.lang" class="external-link">@SafeVarargs</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>... array)</span></div>
|
|
<div class="block">This is the switch block for structure code, with default case.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
Do pay place null values in the array.
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="defer(java.util.function.Function,java.util.function.BiFunction,java.util.List)">
|
|
<h3>defer</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">defer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">renamed to partitionBy</div>
|
|
</div>
|
|
<div class="block">This is the switch block for structure code, with default case.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="partitionBy(java.util.function.Function,java.util.function.BiFunction,java.util.List)">
|
|
<h3>partitionBy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElementDeferred.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElementDeferred</a><T></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><T,<wbr><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractorCheck,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/BiFunction.html" title="class or interface in java.util.function" class="external-link">BiFunction</a><T, <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/item/ItemStack.html" title="class or interface in net.minecraft.item" class="external-link">ItemStack</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>> keyExtractor,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T>> array)</span></div>
|
|
<div class="block">This is the switch block for structure code, with default case.
|
|
<p>
|
|
This allows you to extract or compute an index from context object, and lookup an array for actual structure
|
|
element to use. This will usually, but not guaranteed, to throw an exception at runtime if keyExtractor returns
|
|
an index not within the array bound
|
|
<p>
|
|
This variant also passes the trigger item to the function, allowing it to get more info.
|
|
<p>
|
|
This variant will override the check function of the structure element from second function with the one returned
|
|
from the structure element from first function.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>keyExtractorCheck</code> - key extractor of the structure element that will be used for check.</dd>
|
|
<dd><code>keyExtractor</code> - extract a key from the context object and trigger item</dd>
|
|
<dd><code>array</code> - all possible structure element</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="withChannel(java.lang.String,com.gtnewhorizon.structurelib.structure.IStructureElement)">
|
|
<h3>withChannel</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span> <span class="return-type"><a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T></span> <span class="element-name">withChannel</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> channel,
|
|
<a href="IStructureElement.html" title="interface in com.gtnewhorizon.structurelib.structure">IStructureElement</a><T> backing)</span></div>
|
|
<div class="block">See channels.md in docs folder</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="step(int,int,int)">
|
|
<h3>step</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span>
|
|
<span class="return-type">com.gtnewhorizon.structurelib.structure.IStructureNavigate<T></span> <span class="element-name">step</span><wbr><span class="parameters">(int a,
|
|
int b,
|
|
int c)</span></div>
|
|
<div class="block">Used internally, to generate skips for structure definitions</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="step(com.gtnewhorizon.structurelib.util.Vec3Impl)">
|
|
<h3>step</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="type-parameters"><T></span>
|
|
<span class="return-type">com.gtnewhorizon.structurelib.structure.IStructureNavigate<T></span> <span class="element-name">step</span><wbr><span class="parameters">(<a href="../util/Vec3Impl.html" title="class in com.gtnewhorizon.structurelib.util">Vec3Impl</a> step)</span></div>
|
|
<div class="block">Used internally, to generate skips for structure definitions</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getPseudoJavaCode(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,java.util.function.Function,int,int,int,boolean)">
|
|
<h3>getPseudoJavaCode</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getPseudoJavaCode</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
<a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> extendedFacing,
|
|
int basePositionX,
|
|
int basePositionY,
|
|
int basePositionZ,
|
|
int basePositionA,
|
|
int basePositionB,
|
|
int basePositionC,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html" title="class or interface in java.util.function" class="external-link">Function</a><? super <a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/tileentity/TileEntity.html" title="class or interface in net.minecraft.tileentity" class="external-link">TileEntity</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> tileEntityClassifier,
|
|
int sizeA,
|
|
int sizeB,
|
|
int sizeC,
|
|
boolean transpose)</span></div>
|
|
<div class="block">Used only to get pseudo code in structure writer...
|
|
<p>
|
|
NOTE: GT specific code got removed. TODO add a mean</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>tileEntityClassifier</code> - return a string that denote the type of a tile entity, or null if it's nothing
|
|
special. useful if the tile entity cannot be simply distinguished via getClass.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer)">
|
|
<h3>iterate</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">iterate</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
<a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> extendedFacing,
|
|
int basePositionX,
|
|
int basePositionY,
|
|
int basePositionZ,
|
|
int basePositionA,
|
|
int basePositionB,
|
|
int basePositionC,
|
|
int sizeA,
|
|
int sizeB,
|
|
int sizeC,
|
|
<a href="IBlockPosConsumer.html" title="interface in com.gtnewhorizon.structurelib.structure">IBlockPosConsumer</a> iBlockPosConsumer)</span></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="iterate(net.minecraft.world.World,com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing,int,int,int,int,int,int,boolean,int,int,int,com.gtnewhorizon.structurelib.structure.IBlockPosConsumer,java.lang.Runnable,java.lang.Runnable)">
|
|
<h3>iterate</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">iterate</span><wbr><span class="parameters">(<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/world/World.html" title="class or interface in net.minecraft.world" class="external-link">World</a> world,
|
|
<a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a> extendedFacing,
|
|
int basePositionX,
|
|
int basePositionY,
|
|
int basePositionZ,
|
|
int basePositionA,
|
|
int basePositionB,
|
|
int basePositionC,
|
|
boolean transpose,
|
|
int sizeA,
|
|
int sizeB,
|
|
int sizeC,
|
|
<a href="IBlockPosConsumer.html" title="interface in com.gtnewhorizon.structurelib.structure">IBlockPosConsumer</a> iBlockPosConsumer,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html" title="class or interface in java.lang" class="external-link">Runnable</a> nextB,
|
|
<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html" title="class or interface in java.lang" class="external-link">Runnable</a> nextC)</span></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="transpose(java.lang.String[][])">
|
|
<h3>transpose</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[][]</span> <span class="element-name">transpose</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[][] structurePiece)</span></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>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>structurePiece</code> - shape (transposed shape)</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>transposed shape (untransposed shape)</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|