mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-10 19:03:44 +00:00
847 lines
31 KiB
HTML
847 lines
31 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (11.0.27) on Tue Oct 28 02:00:43 EDT 2025 -->
|
|
<title>IPos</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2025-10-28">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.min.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
|
|
<!--[if IE]>
|
|
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript" src="../../../jquery/jquery-3.7.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="IPos";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
var pathtoroot = "../../../";
|
|
var useModuleDirectories = true;
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<div class="fixedNav">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a id="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<ul class="navListSearch">
|
|
<li><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">noppes.npcs.api</a></div>
|
|
<h2 title="Interface IPos" class="title">Interface IPos</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">IPos</span></pre>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Method</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(double,double,double)">add</a></span>​(double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Adds the IPos' coordinates by each of the parameters given.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(noppes.npcs.api.IPos)">add</a></span>​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Directly adds the coordinates of two IPos objects and returns the resulting IPos sum.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#crossProduct(double,double,double)">crossProduct</a></span>​(double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#crossProduct(noppes.npcs.api.IPos)">crossProduct</a></span>​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#distanceTo(double,double,double)">distanceTo</a></span>​(double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#distanceTo(noppes.npcs.api.IPos)">distanceTo</a></span>​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#divide(double)">divide</a></span>​(double scalar)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#down()">down</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shifts the IPos down by 1 block and returns the new object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#down(double)">down</a></span>​(double n)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#east()">east</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shifts the IPos east by 1 block and returns the new object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#east(double)">east</a></span>​(double n)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromLong(long)">fromLong</a></span>​(long serialized)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMCPos()">getMCPos</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getX()">getX</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getXD()">getXD</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getY()">getY</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getYD()">getYD</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getZ()">getZ</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getZD()">getZD</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#normalize()">normalize</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a normalized vector of this block's position, calculated by:</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>double[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#normalizeDouble()">normalizeDouble</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#north()">north</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shifts the IPos north by 1 block and returns the new object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#north(double)">north</a></span>​(double n)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#offset(int)">offset</a></span>​(int direction)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Offsets the block by 1 block in the given direction and returns the resulting IPos object</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#offset(int,double)">offset</a></span>​(int direction,
|
|
double n)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Offsets the block by n blocks in the given direction and returns the resulting IPos object</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#south()">south</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shifts the IPos south by 1 block and returns the new object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#south(double)">south</a></span>​(double n)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#subtract(double,double,double)">subtract</a></span>​(double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Subtracts the IPos' coordinates by each of the parameters given.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#subtract(noppes.npcs.api.IPos)">subtract</a></span>​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Directly subtracts the coordinates of two IPos objects and returns the resulting IPos difference.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLong()">toLong</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#up()">up</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shifts the IPos up by 1 block and returns the new object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#up(double)">up</a></span>​(double n)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#west()">west</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shifts the IPos west by 1 block and returns the new object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#west(double)">west</a></span>​(double n)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="getX()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getX</h4>
|
|
<pre class="methodSignature">int getX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getY()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getY</h4>
|
|
<pre class="methodSignature">int getY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getZ()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getZ</h4>
|
|
<pre class="methodSignature">int getZ()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getXD()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getXD</h4>
|
|
<pre class="methodSignature">double getXD()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getYD()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getYD</h4>
|
|
<pre class="methodSignature">double getYD()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getZD()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getZD</h4>
|
|
<pre class="methodSignature">double getZD()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="up()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>up</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> up()</pre>
|
|
<div class="block">Shifts the IPos up by 1 block and returns the new object.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="up(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>up</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> up​(double n)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>n</code> - The number of blocks to move the position up by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="down()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>down</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> down()</pre>
|
|
<div class="block">Shifts the IPos down by 1 block and returns the new object.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="down(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>down</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> down​(double n)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>n</code> - The number of blocks to move the position down by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="north()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>north</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> north()</pre>
|
|
<div class="block">Shifts the IPos north by 1 block and returns the new object.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="north(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>north</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> north​(double n)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>n</code> - The number of blocks to move the position north by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="east()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>east</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> east()</pre>
|
|
<div class="block">Shifts the IPos east by 1 block and returns the new object.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="east(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>east</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> east​(double n)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>n</code> - The number of blocks to move the position east by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="south()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>south</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> south()</pre>
|
|
<div class="block">Shifts the IPos south by 1 block and returns the new object.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="south(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>south</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> south​(double n)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>n</code> - The number of blocks to move the position south by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="west()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>west</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> west()</pre>
|
|
<div class="block">Shifts the IPos west by 1 block and returns the new object.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="west(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>west</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> west​(double n)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>n</code> - The number of blocks to move the position west by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="add(double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> add​(double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Adds the IPos' coordinates by each of the parameters given.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - X coordinate amount to be added</dd>
|
|
<dd><code>y</code> - Y coordinate amount to be added</dd>
|
|
<dd><code>z</code> - Z coordinate amount to be added</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The resulting IPos from the addition.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="add(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> add​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
<div class="block">Directly adds the coordinates of two IPos objects and returns the resulting IPos sum.
|
|
For example, if one IPos was represented by the coordinates (0,60,5), and another by (-10,-30,25),
|
|
the resulting object's coordinates are (0 - 10,60 - 30,5 + 25) = (-10,30,30).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The position to be added to this IPos object.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The sum of the two IPos objects as a new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="subtract(double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>subtract</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> subtract​(double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Subtracts the IPos' coordinates by each of the parameters given.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - X coordinate amount to be subtracted</dd>
|
|
<dd><code>y</code> - Y coordinate amount to be subtracted</dd>
|
|
<dd><code>z</code> - Z coordinate amount to be subtracted</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The resulting IPos from the subtraction.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="subtract(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>subtract</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> subtract​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
<div class="block">Directly subtracts the coordinates of two IPos objects and returns the resulting IPos difference.
|
|
For example, if one IPos was represented by the coordinates (0,60,5), and another by (-10,-30,25),
|
|
the resulting object's coordinates are (0 + 10,60 + 30,5 - 25) = (10,90,-20).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The position to be subtracted from this IPos object.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The difference of the two IPos objects as a new IPos object.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="normalize()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>normalize</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> normalize()</pre>
|
|
<div class="block">Returns a normalized vector of this block's position, calculated by:</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The normalized vector of this block position.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="normalizeDouble()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>normalizeDouble</h4>
|
|
<pre class="methodSignature">double[] normalizeDouble()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="offset(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>offset</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> offset​(int direction)</pre>
|
|
<div class="block">Offsets the block by 1 block in the given direction and returns the resulting IPos object</div>
|
|
</li>
|
|
</ul>
|
|
<a id="offset(int,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>offset</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> offset​(int direction,
|
|
double n)</pre>
|
|
<div class="block">Offsets the block by n blocks in the given direction and returns the resulting IPos object</div>
|
|
</li>
|
|
</ul>
|
|
<a id="crossProduct(double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>crossProduct</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> crossProduct​(double x,
|
|
double y,
|
|
double z)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="crossProduct(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>crossProduct</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> crossProduct​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="divide(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>divide</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> divide​(double scalar)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="toLong()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toLong</h4>
|
|
<pre class="methodSignature">long toLong()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="fromLong(long)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fromLong</h4>
|
|
<pre class="methodSignature"><a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> fromLong​(long serialized)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="distanceTo(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>distanceTo</h4>
|
|
<pre class="methodSignature">double distanceTo​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The IPos object to calculate the distance to</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The distance between this IPos object and the other.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="distanceTo(double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>distanceTo</h4>
|
|
<pre class="methodSignature">double distanceTo​(double x,
|
|
double y,
|
|
double z)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMCPos()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getMCPos</h4>
|
|
<pre class="methodSignature"><a href="../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> getMCPos()</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<footer role="contentinfo">
|
|
<nav role="navigation">
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a id="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|