mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
737 lines
32 KiB
HTML
737 lines
32 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_372) on Tue Feb 13 16:50:09 EST 2024 -->
|
|
<title>BlockPos</title>
|
|
<meta name="date" content="2024-02-13">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="BlockPos";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":9,"i9":9,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10};
|
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>Prev Class</li>
|
|
<li><a href="../../../../net/minecraft/util/math/BlockPos.MutableBlockPos.html" title="class in net.minecraft.util.math"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?net/minecraft/util/math/BlockPos.html" target="_top">Frames</a></li>
|
|
<li><a href="BlockPos.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></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>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">net.minecraft.util.math</div>
|
|
<h2 title="Class BlockPos" class="title">Class BlockPos</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">net.minecraft.util.Vec3i</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>net.minecraft.util.math.BlockPos</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd>java.lang.Comparable<<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a>></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Direct Known Subclasses:</dt>
|
|
<dd><a href="../../../../net/minecraft/util/math/BlockPos.MutableBlockPos.html" title="class in net.minecraft.util.math">BlockPos.MutableBlockPos</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>@Immutable
|
|
public class <span class="typeNameLabel">BlockPos</span>
|
|
extends <a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a></pre>
|
|
<div class="block">Pasted in from 1.9, with the Vec3d constructor removed</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="nested.class.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Class and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.MutableBlockPos.html" title="class in net.minecraft.util.math">BlockPos.MutableBlockPos</a></span></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.PooledMutableBlockPos.html" title="class in net.minecraft.util.math">BlockPos.PooledMutableBlockPos</a></span></code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#ORIGIN">ORIGIN</a></span></code>
|
|
<div class="block">The BlockPos with all coordinates 0</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#BlockPos-double-double-double-">BlockPos</a></span>(double x,
|
|
double y,
|
|
double z)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#BlockPos-net.minecraft.entity.Entity-">BlockPos</a></span>(net.minecraft.entity.Entity source)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#BlockPos-int-int-int-">BlockPos</a></span>(int x,
|
|
int y,
|
|
int z)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#BlockPos-net.minecraft.util.Vec3i-">BlockPos</a></span>(<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a> source)</code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#add-double-double-double-">add</a></span>(double x,
|
|
double y,
|
|
double z)</code>
|
|
<div class="block">Add the given coordinates to the coordinates of this BlockPos</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#add-int-int-int-">add</a></span>(int x,
|
|
int y,
|
|
int z)</code>
|
|
<div class="block">Add the given coordinates to the coordinates of this BlockPos</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#add-net.minecraft.util.Vec3i-">add</a></span>(<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a> vec)</code>
|
|
<div class="block">Add the given Vector to this BlockPos</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#crossProduct-net.minecraft.util.Vec3i-">crossProduct</a></span>(<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a> vec)</code>
|
|
<div class="block">Calculate the cross product of this and the given Vector</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#down--">down</a></span>()</code>
|
|
<div class="block">Offset this BlockPos 1 block down</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#down-double-">down</a></span>(double n)</code>
|
|
<div class="block">Offset this BlockPos n blocks down</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#east--">east</a></span>()</code>
|
|
<div class="block">Offset this BlockPos 1 block in eastern direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#east-double-">east</a></span>(double n)</code>
|
|
<div class="block">Offset this BlockPos n blocks in eastern direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#fromLong-long-">fromLong</a></span>(long serialized)</code>
|
|
<div class="block">Create a BlockPos from a serialized long value (created by toLong)</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Iterable<<a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#getAllInBox-net.minecraft.util.math.BlockPos-net.minecraft.util.math.BlockPos-">getAllInBox</a></span>(<a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> from,
|
|
<a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> to)</code>
|
|
<div class="block">Create an Iterable that returns all positions in the box specified by the given corners</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#north--">north</a></span>()</code>
|
|
<div class="block">Offset this BlockPos 1 block in northern direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#north-double-">north</a></span>(double n)</code>
|
|
<div class="block">Offset this BlockPos n blocks in northern direction</div>
|
|
</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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#offset-net.minecraft.util.EnumFacing-">offset</a></span>(net.minecraft.util.EnumFacing facing)</code>
|
|
<div class="block">Offset this BlockPos 1 block in the given direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#offset-net.minecraft.util.EnumFacing-double-">offset</a></span>(net.minecraft.util.EnumFacing facing,
|
|
double n)</code>
|
|
<div class="block">Offsets this BlockPos n blocks in the given direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#south--">south</a></span>()</code>
|
|
<div class="block">Offset this BlockPos 1 block in southern direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#south-double-">south</a></span>(double n)</code>
|
|
<div class="block">Offset this BlockPos n blocks in southern direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#toLong--">toLong</a></span>()</code>
|
|
<div class="block">Serialize this BlockPos into a long value</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#up--">up</a></span>()</code>
|
|
<div class="block">Offset this BlockPos 1 block up</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#up-double-">up</a></span>(double n)</code>
|
|
<div class="block">Offset this BlockPos n blocks up</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#west--">west</a></span>()</code>
|
|
<div class="block">Offset this BlockPos 1 block in western direction</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" 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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/minecraft/util/math/BlockPos.html#west-double-">west</a></span>(double n)</code>
|
|
<div class="block">Offset this BlockPos n blocks in western direction</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.net.minecraft.util.Vec3i">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class net.minecraft.util.<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a></h3>
|
|
<code><a href="../../../../net/minecraft/util/Vec3i.html#compareTo-net.minecraft.util.Vec3i-">compareTo</a>, <a href="../../../../net/minecraft/util/Vec3i.html#equals-java.lang.Object-">equals</a>, <a href="../../../../net/minecraft/util/Vec3i.html#getX--">getX</a>, <a href="../../../../net/minecraft/util/Vec3i.html#getXD--">getXD</a>, <a href="../../../../net/minecraft/util/Vec3i.html#getY--">getY</a>, <a href="../../../../net/minecraft/util/Vec3i.html#getYD--">getYD</a>, <a href="../../../../net/minecraft/util/Vec3i.html#getZ--">getZ</a>, <a href="../../../../net/minecraft/util/Vec3i.html#getZD--">getZD</a>, <a href="../../../../net/minecraft/util/Vec3i.html#hashCode--">hashCode</a>, <a href="../../../../net/minecraft/util/Vec3i.html#toString--">toString</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="ORIGIN">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>ORIGIN</h4>
|
|
<pre>public static final <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> ORIGIN</pre>
|
|
<div class="block">The BlockPos with all coordinates 0</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="BlockPos-int-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>BlockPos</h4>
|
|
<pre>public BlockPos(int x,
|
|
int y,
|
|
int z)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="BlockPos-double-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>BlockPos</h4>
|
|
<pre>public BlockPos(double x,
|
|
double y,
|
|
double z)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="BlockPos-net.minecraft.entity.Entity-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>BlockPos</h4>
|
|
<pre>public BlockPos(net.minecraft.entity.Entity source)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="BlockPos-net.minecraft.util.Vec3i-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>BlockPos</h4>
|
|
<pre>public BlockPos(<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a> source)</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="add-double-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> add(double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Add the given coordinates to the coordinates of this BlockPos</div>
|
|
</li>
|
|
</ul>
|
|
<a name="add-int-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> add(int x,
|
|
int y,
|
|
int z)</pre>
|
|
<div class="block">Add the given coordinates to the coordinates of this BlockPos</div>
|
|
</li>
|
|
</ul>
|
|
<a name="add-net.minecraft.util.Vec3i-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> add(<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a> vec)</pre>
|
|
<div class="block">Add the given Vector to this BlockPos</div>
|
|
</li>
|
|
</ul>
|
|
<a name="up--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>up</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> up()</pre>
|
|
<div class="block">Offset this BlockPos 1 block up</div>
|
|
</li>
|
|
</ul>
|
|
<a name="up-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>up</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> up(double n)</pre>
|
|
<div class="block">Offset this BlockPos n blocks up</div>
|
|
</li>
|
|
</ul>
|
|
<a name="down--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>down</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> down()</pre>
|
|
<div class="block">Offset this BlockPos 1 block down</div>
|
|
</li>
|
|
</ul>
|
|
<a name="down-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>down</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> down(double n)</pre>
|
|
<div class="block">Offset this BlockPos n blocks down</div>
|
|
</li>
|
|
</ul>
|
|
<a name="north--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>north</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> north()</pre>
|
|
<div class="block">Offset this BlockPos 1 block in northern direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="north-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>north</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> north(double n)</pre>
|
|
<div class="block">Offset this BlockPos n blocks in northern direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="south--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>south</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> south()</pre>
|
|
<div class="block">Offset this BlockPos 1 block in southern direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="south-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>south</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> south(double n)</pre>
|
|
<div class="block">Offset this BlockPos n blocks in southern direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="west--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>west</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> west()</pre>
|
|
<div class="block">Offset this BlockPos 1 block in western direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="west-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>west</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> west(double n)</pre>
|
|
<div class="block">Offset this BlockPos n blocks in western direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="east--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>east</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> east()</pre>
|
|
<div class="block">Offset this BlockPos 1 block in eastern direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="east-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>east</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> east(double n)</pre>
|
|
<div class="block">Offset this BlockPos n blocks in eastern direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="offset-net.minecraft.util.EnumFacing-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>offset</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> offset(net.minecraft.util.EnumFacing facing)</pre>
|
|
<div class="block">Offset this BlockPos 1 block in the given direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="offset-net.minecraft.util.EnumFacing-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>offset</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> offset(net.minecraft.util.EnumFacing facing,
|
|
double n)</pre>
|
|
<div class="block">Offsets this BlockPos n blocks in the given direction</div>
|
|
</li>
|
|
</ul>
|
|
<a name="crossProduct-net.minecraft.util.Vec3i-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>crossProduct</h4>
|
|
<pre>public <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> crossProduct(<a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a> vec)</pre>
|
|
<div class="block">Calculate the cross product of this and the given Vector</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code><a href="../../../../net/minecraft/util/Vec3i.html#crossProduct-net.minecraft.util.Vec3i-">crossProduct</a></code> in class <code><a href="../../../../net/minecraft/util/Vec3i.html" title="class in net.minecraft.util">Vec3i</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toLong--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toLong</h4>
|
|
<pre>public long toLong()</pre>
|
|
<div class="block">Serialize this BlockPos into a long value</div>
|
|
</li>
|
|
</ul>
|
|
<a name="fromLong-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fromLong</h4>
|
|
<pre>public static <a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> fromLong(long serialized)</pre>
|
|
<div class="block">Create a BlockPos from a serialized long value (created by toLong)</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getAllInBox-net.minecraft.util.math.BlockPos-net.minecraft.util.math.BlockPos-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getAllInBox</h4>
|
|
<pre>public static java.lang.Iterable<<a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>> getAllInBox(<a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> from,
|
|
<a href="../../../../net/minecraft/util/math/BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a> to)</pre>
|
|
<div class="block">Create an Iterable that returns all positions in the box specified by the given corners</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>Prev Class</li>
|
|
<li><a href="../../../../net/minecraft/util/math/BlockPos.MutableBlockPos.html" title="class in net.minecraft.util.math"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?net/minecraft/util/math/BlockPos.html" target="_top">Frames</a></li>
|
|
<li><a href="BlockPos.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses-noframe.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>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|