mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-28 15:36:05 +00:00
354 lines
29 KiB
HTML
354 lines
29 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (25) -->
|
|
<title>AutoPlaceEnvironment (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: AutoPlaceEnvironment">
|
|
<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="AutoPlaceEnvironment.html" class="current-selection">AutoPlaceEnvironment</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></li>
|
|
<li><a href="#nested-class-summary" tabindex="0">Nested Class Summary</a></li>
|
|
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
|
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
|
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#%3Cinit%3E(com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)" tabindex="0">AutoPlaceEnvironment(AutoPlaceEnvironment)</a></li>
|
|
</ol>
|
|
</li>
|
|
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
|
<ol class="toc-list">
|
|
<li><a href="#fromLegacy(com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer,java.util.function.Consumer)" tabindex="0">fromLegacy(IItemSource, EntityPlayer, Consumer)</a></li>
|
|
<li><a href="#getAPILevel()" tabindex="0">getAPILevel()</a></li>
|
|
<li><a href="#getSource()" tabindex="0">getSource()</a></li>
|
|
<li><a href="#getActor()" tabindex="0">getActor()</a></li>
|
|
<li><a href="#getChatter()" tabindex="0">getChatter()</a></li>
|
|
<li><a href="#isContainedInPiece(int,int,int)" tabindex="0">isContainedInPiece(int, int, int)</a></li>
|
|
<li><a href="#getFacing()" tabindex="0">getFacing()</a></li>
|
|
<li><a href="#withSource(com.gtnewhorizon.structurelib.structure.IItemSource)" tabindex="0">withSource(IItemSource)</a></li>
|
|
<li><a href="#withActor(net.minecraft.entity.player.EntityPlayer)" tabindex="0">withActor(EntityPlayer)</a></li>
|
|
<li><a href="#withChatter(java.util.function.Consumer)" tabindex="0">withChatter(Consumer)</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 AutoPlaceEnvironment" class="title">Class AutoPlaceEnvironment</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.AutoPlaceEnvironment</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">AutoPlaceEnvironment</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">Represent the environment in which autoplace of a single element took place.</div>
|
|
</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<li>
|
|
<section class="nested-class-summary" id="nested-class-summary">
|
|
<h2>Nested Class Summary</h2>
|
|
<div class="caption"><span>Nested Classes</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Class</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color"><code>static enum </code></div>
|
|
<div class="col-second even-row-color"><code><a href="AutoPlaceEnvironment.APILevel.html" class="type-name-link" title="enum class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment.APILevel</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Defines the various API level an <a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure"><code>AutoPlaceEnvironment</code></a> has implemented.</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<li>
|
|
<section class="constructor-summary" id="constructor-summary">
|
|
<h2>Constructor Summary</h2>
|
|
<div class="caption"><span>Constructors</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier</div>
|
|
<div class="table-header col-second">Constructor</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color"><code>protected </code></div>
|
|
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)" class="member-name-link">AutoPlaceEnvironment</a><wbr>(<a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a> parent)</code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<!-- ========== 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-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance 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></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 <a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#fromLegacy(com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer,java.util.function.Consumer)" class="member-name-link">fromLegacy</a><wbr>(<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> source,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/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>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getActor()" class="member-name-link">getActor</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">The initiator of actions.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="AutoPlaceEnvironment.APILevel.html" title="enum class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment.APILevel</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getAPILevel()" class="member-name-link">getAPILevel</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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><wbr><<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>></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getChatter()" class="member-name-link">getChatter</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">send error messages here.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getFacing()" class="member-name-link">getFacing</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getSource()" class="member-name-link">getSource</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">From where survival autoplace will drain resources.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#isContainedInPiece(int,int,int)" class="member-name-link">isContainedInPiece</a><wbr>(int offsetA,
|
|
int offsetB,
|
|
int offsetC)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Test if given location is contained within the current piece.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#withActor(net.minecraft.entity.player.EntityPlayer)" class="member-name-link">withActor</a><wbr>(<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-tab2 method-summary-table-tab4">
|
|
<div class="block">Return a new instance with actor modified to given value.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#withChatter(java.util.function.Consumer)" class="member-name-link">withChatter</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><<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-tab2 method-summary-table-tab4">
|
|
<div class="block">Return a new instance with chatter modified to given value.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#withSource(com.gtnewhorizon.structurelib.structure.IItemSource)" class="member-name-link">withSource</a><wbr>(<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> source)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Return a new instance with source modified to given value.</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">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<li>
|
|
<section class="constructor-details" id="constructor-detail">
|
|
<h2>Constructor Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="<init>(com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment)">
|
|
<h3>AutoPlaceEnvironment</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">protected</span> <span class="element-name">AutoPlaceEnvironment</span><wbr><span class="parameters">(<a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a> parent)</span></div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<li>
|
|
<section class="method-details" id="method-detail">
|
|
<h2>Method Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="fromLegacy(com.gtnewhorizon.structurelib.structure.IItemSource,net.minecraft.entity.player.EntityPlayer,java.util.function.Consumer)">
|
|
<h3>fromLegacy</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></span> <span class="element-name">fromLegacy</span><wbr><span class="parameters">(<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> source,
|
|
<a href="https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/net/minecraft/entity/player/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>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getAPILevel()">
|
|
<h3>getAPILevel</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="AutoPlaceEnvironment.APILevel.html" title="enum class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment.APILevel</a></span> <span class="element-name">getAPILevel</span>()</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getSource()">
|
|
<h3>getSource</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a></span> <span class="element-name">getSource</span>()</div>
|
|
<div class="block">From where survival autoplace will drain resources.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getActor()">
|
|
<h3>getActor</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><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></span> <span class="element-name">getActor</span>()</div>
|
|
<div class="block">The initiator of actions. for very critical errors you can also just send the error messages here, bypassing any
|
|
filter that <a href="#getChatter()"><code>getChatter()</code></a> might have. You might want to use
|
|
<a href="../StructureLibAPI.html#addThrottledChat(java.lang.Object,net.minecraft.entity.player.EntityPlayer,net.minecraft.util.IChatComponent,short)"><code>StructureLibAPI.addThrottledChat(Object, EntityPlayer, IChatComponent, short)</code></a>
|
|
to help reduce spam.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getChatter()">
|
|
<h3>getChatter</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><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>></span> <span class="element-name">getChatter</span>()</div>
|
|
<div class="block">send error messages here. Caller will choose an appropriate way to forward it to player if the other fallbacks
|
|
also fails.</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="isContainedInPiece(int,int,int)">
|
|
<h3>isContainedInPiece</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">isContainedInPiece</span><wbr><span class="parameters">(int offsetA,
|
|
int offsetB,
|
|
int offsetC)</span></div>
|
|
<div class="block">Test if given location is contained within the current piece.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>offsetA</code> - offset in A direction <b>relative to current element</b></dd>
|
|
<dd><code>offsetB</code> - offset in B direction <b>relative to current element</b></dd>
|
|
<dd><code>offsetC</code> - offset in C direction <b>relative to current element</b></dd>
|
|
<dt>Returns:</dt>
|
|
<dd>true if contained, false otherwise.</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getFacing()">
|
|
<h3>getFacing</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../alignment/enumerable/ExtendedFacing.html" title="enum class in com.gtnewhorizon.structurelib.alignment.enumerable">ExtendedFacing</a></span> <span class="element-name">getFacing</span>()</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="withSource(com.gtnewhorizon.structurelib.structure.IItemSource)">
|
|
<h3>withSource</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></span> <span class="element-name">withSource</span><wbr><span class="parameters">(<a href="IItemSource.html" title="interface in com.gtnewhorizon.structurelib.structure">IItemSource</a> source)</span></div>
|
|
<div class="block">Return a new instance with source modified to given value.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>source</code> - new source</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>new instance</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="withActor(net.minecraft.entity.player.EntityPlayer)">
|
|
<h3>withActor</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></span> <span class="element-name">withActor</span><wbr><span class="parameters">(<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">Return a new instance with actor modified to given value.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>actor</code> - new actor</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>new instance</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="withChatter(java.util.function.Consumer)">
|
|
<h3>withChatter</h3>
|
|
<div class="horizontal-scroll">
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="AutoPlaceEnvironment.html" title="class in com.gtnewhorizon.structurelib.structure">AutoPlaceEnvironment</a></span> <span class="element-name">withChatter</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><<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">Return a new instance with chatter modified to given value.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>chatter</code> - new chatter</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>new instance</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|