Files

806 lines
31 KiB
HTML
Raw Permalink Normal View History

2024-03-20 02:28:51 -04:00
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
2025-05-29 16:27:42 -04:00
<!-- Generated by javadoc (11.0.20) on Thu May 29 16:24:46 EDT 2025 -->
2024-03-20 02:28:51 -04:00
<title>BlockPos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2025-05-29 16:27:42 -04:00
<meta name="dc.created" content="2025-05-29">
2024-03-20 02:28:51 -04:00
<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.6.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="BlockPos";
}
}
catch(err) {
}
//-->
var data = {"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";
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&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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">&nbsp;</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>&nbsp;<a href="package-summary.html">net.minecraft.util.math</a></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="../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><code>java.lang.Comparable&lt;<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&gt;</code></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="BlockPos.MutableBlockPos.html" title="class in net.minecraft.util.math">BlockPos.MutableBlockPos</a></code></dd>
</dl>
<hr>
<pre>@Immutable
public class <span class="typeNameLabel">BlockPos</span>
extends <a href="../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 ======== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="BlockPos.MutableBlockPos.html" title="class in net.minecraft.util.math">BlockPos.MutableBlockPos</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="BlockPos.PooledMutableBlockPos.html" title="class in net.minecraft.util.math">BlockPos.PooledMutableBlockPos</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ORIGIN">ORIGIN</a></span></code></th>
<td class="colLast">
<div class="block">The BlockPos with all coordinates 0</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(double,double,double)">BlockPos</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int)">BlockPos</a></span>&#8203;(int&nbsp;x,
int&nbsp;y,
int&nbsp;z)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(net.minecraft.entity.Entity)">BlockPos</a></span>&#8203;(net.minecraft.entity.Entity&nbsp;source)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(net.minecraft.util.Vec3i)">BlockPos</a></span>&#8203;(<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&nbsp;source)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== 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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(double,double,double)">add</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(int,int,int)">add</a></span>&#8203;(int&nbsp;x,
int&nbsp;y,
int&nbsp;z)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(net.minecraft.util.Vec3i)">add</a></span>&#8203;(<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&nbsp;vec)</code></th>
<td class="colLast">
<div class="block">Add the given Vector to this BlockPos</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#crossProduct(net.minecraft.util.Vec3i)">crossProduct</a></span>&#8203;(<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&nbsp;vec)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</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">Offset this BlockPos 1 block down</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#down(double)">down</a></span>&#8203;(double&nbsp;n)</code></th>
<td class="colLast">
<div class="block">Offset this BlockPos n blocks down</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</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">Offset this BlockPos 1 block in eastern direction</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#east(double)">east</a></span>&#8203;(double&nbsp;n)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromLong(long)">fromLong</a></span>&#8203;(long&nbsp;serialized)</code></th>
<td class="colLast">
<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&lt;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAllInBox(net.minecraft.util.math.BlockPos,net.minecraft.util.math.BlockPos)">getAllInBox</a></span>&#8203;(<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;from,
<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;to)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</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">Offset this BlockPos 1 block in northern direction</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#north(double)">north</a></span>&#8203;(double&nbsp;n)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#offset(net.minecraft.util.EnumFacing)">offset</a></span>&#8203;(net.minecraft.util.EnumFacing&nbsp;facing)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#offset(net.minecraft.util.EnumFacing,double)">offset</a></span>&#8203;(net.minecraft.util.EnumFacing&nbsp;facing,
double&nbsp;n)</code></th>
<td class="colLast">
<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="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</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">Offset this BlockPos 1 block in southern direction</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#south(double)">south</a></span>&#8203;(double&nbsp;n)</code></th>
<td class="colLast">
<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>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLong()">toLong</a></span>()</code></th>
<td class="colLast">
<div class="block">Serialize this BlockPos into a long value</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</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">Offset this BlockPos 1 block up</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#up(double)">up</a></span>&#8203;(double&nbsp;n)</code></th>
<td class="colLast">
<div class="block">Offset this BlockPos n blocks up</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</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">Offset this BlockPos 1 block in western direction</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#west(double)">west</a></span>&#8203;(double&nbsp;n)</code></th>
<td class="colLast">
<div class="block">Offset this BlockPos n blocks in western direction</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.net.minecraft.util.Vec3i">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.minecraft.util.<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a></h3>
<code><a href="../Vec3i.html#compareTo(net.minecraft.util.Vec3i)">compareTo</a>, <a href="../Vec3i.html#equals(java.lang.Object)">equals</a>, <a href="../Vec3i.html#getX()">getX</a>, <a href="../Vec3i.html#getXD()">getXD</a>, <a href="../Vec3i.html#getY()">getY</a>, <a href="../Vec3i.html#getYD()">getYD</a>, <a href="../Vec3i.html#getZ()">getZ</a>, <a href="../Vec3i.html#getZD()">getZD</a>, <a href="../Vec3i.html#hashCode()">hashCode</a>, <a href="../Vec3i.html#toString()">toString</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
2025-05-29 16:27:42 -04:00
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
2024-03-20 02:28:51 -04:00
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="ORIGIN">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ORIGIN</h4>
<pre>public static final&nbsp;<a href="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>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(int,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BlockPos</h4>
<pre>public&nbsp;BlockPos&#8203;(int&nbsp;x,
int&nbsp;y,
int&nbsp;z)</pre>
</li>
</ul>
<a id="&lt;init&gt;(double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BlockPos</h4>
<pre>public&nbsp;BlockPos&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</pre>
</li>
</ul>
<a id="&lt;init&gt;(net.minecraft.entity.Entity)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BlockPos</h4>
<pre>public&nbsp;BlockPos&#8203;(net.minecraft.entity.Entity&nbsp;source)</pre>
</li>
</ul>
<a id="&lt;init&gt;(net.minecraft.util.Vec3i)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BlockPos</h4>
<pre>public&nbsp;BlockPos&#8203;(<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&nbsp;source)</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="add(double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;add&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</pre>
<div class="block">Add the given coordinates to the coordinates of this BlockPos</div>
</li>
</ul>
<a id="add(int,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;add&#8203;(int&nbsp;x,
int&nbsp;y,
int&nbsp;z)</pre>
<div class="block">Add the given coordinates to the coordinates of this BlockPos</div>
</li>
</ul>
<a id="add(net.minecraft.util.Vec3i)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;add&#8203;(<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&nbsp;vec)</pre>
<div class="block">Add the given Vector to this BlockPos</div>
</li>
</ul>
<a id="up()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>up</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;up()</pre>
<div class="block">Offset this BlockPos 1 block up</div>
</li>
</ul>
<a id="up(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>up</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;up&#8203;(double&nbsp;n)</pre>
<div class="block">Offset this BlockPos n blocks up</div>
</li>
</ul>
<a id="down()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>down</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;down()</pre>
<div class="block">Offset this BlockPos 1 block down</div>
</li>
</ul>
<a id="down(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>down</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;down&#8203;(double&nbsp;n)</pre>
<div class="block">Offset this BlockPos n blocks down</div>
</li>
</ul>
<a id="north()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>north</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;north()</pre>
<div class="block">Offset this BlockPos 1 block in northern direction</div>
</li>
</ul>
<a id="north(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>north</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;north&#8203;(double&nbsp;n)</pre>
<div class="block">Offset this BlockPos n blocks in northern direction</div>
</li>
</ul>
<a id="south()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>south</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;south()</pre>
<div class="block">Offset this BlockPos 1 block in southern direction</div>
</li>
</ul>
<a id="south(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>south</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;south&#8203;(double&nbsp;n)</pre>
<div class="block">Offset this BlockPos n blocks in southern direction</div>
</li>
</ul>
<a id="west()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>west</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;west()</pre>
<div class="block">Offset this BlockPos 1 block in western direction</div>
</li>
</ul>
<a id="west(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>west</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;west&#8203;(double&nbsp;n)</pre>
<div class="block">Offset this BlockPos n blocks in western direction</div>
</li>
</ul>
<a id="east()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>east</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;east()</pre>
<div class="block">Offset this BlockPos 1 block in eastern direction</div>
</li>
</ul>
<a id="east(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>east</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;east&#8203;(double&nbsp;n)</pre>
<div class="block">Offset this BlockPos n blocks in eastern direction</div>
</li>
</ul>
<a id="offset(net.minecraft.util.EnumFacing)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>offset</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;offset&#8203;(net.minecraft.util.EnumFacing&nbsp;facing)</pre>
<div class="block">Offset this BlockPos 1 block in the given direction</div>
</li>
</ul>
<a id="offset(net.minecraft.util.EnumFacing,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>offset</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;offset&#8203;(net.minecraft.util.EnumFacing&nbsp;facing,
double&nbsp;n)</pre>
<div class="block">Offsets this BlockPos n blocks in the given direction</div>
</li>
</ul>
<a id="crossProduct(net.minecraft.util.Vec3i)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>crossProduct</h4>
<pre class="methodSignature">public&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;crossProduct&#8203;(<a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a>&nbsp;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="../Vec3i.html#crossProduct(net.minecraft.util.Vec3i)">crossProduct</a></code>&nbsp;in class&nbsp;<code><a href="../Vec3i.html" title="class in net.minecraft.util">Vec3i</a></code></dd>
</dl>
</li>
</ul>
<a id="toLong()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLong</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;toLong()</pre>
<div class="block">Serialize this BlockPos into a long value</div>
</li>
</ul>
<a id="fromLong(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromLong</h4>
<pre class="methodSignature">public static&nbsp;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;fromLong&#8203;(long&nbsp;serialized)</pre>
<div class="block">Create a BlockPos from a serialized long value (created by toLong)</div>
</li>
</ul>
<a id="getAllInBox(net.minecraft.util.math.BlockPos,net.minecraft.util.math.BlockPos)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getAllInBox</h4>
<pre class="methodSignature">public static&nbsp;java.lang.Iterable&lt;<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&gt;&nbsp;getAllInBox&#8203;(<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;from,
<a href="BlockPos.html" title="class in net.minecraft.util.math">BlockPos</a>&nbsp;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>
</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&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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>