public class MBlockPos
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MBlockPos.BlockIterator |
| Modifier and Type | Field and Description |
|---|---|
protected int |
x |
protected int |
y |
protected int |
z |
| Constructor and Description |
|---|
MBlockPos(double x,
double y,
double z) |
MBlockPos(int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
MBlockPos |
add(int x,
int y,
int z)
Add the given coordinates to the coordinates of this BlockPos
|
MBlockPos |
add(MBlockPos pos) |
int |
chunkX() |
int |
chunkZ() |
MBlockPos |
down()
Offset this BlockPos 1 block down
|
MBlockPos |
down(int n)
Offset this BlockPos n blocks down
|
MBlockPos |
east()
Offset this BlockPos 1 block in eastern direction
|
MBlockPos |
east(int n)
Offset this BlockPos n blocks in eastern direction
|
boolean |
equals(java.lang.Object obj) |
static MBlockPos |
fromLong(long serialized)
Create a BlockPos from a serialized long value (created by toLong)
|
static java.lang.Iterable<MBlockPos> |
getAllInBox(net.minecraft.util.math.AxisAlignedBB aabb) |
static java.lang.Iterable<MBlockPos> |
getAllInBox(MBlockPos from,
MBlockPos to)
Create an
Iterable that returns all positions in the box specified by the given corners. |
net.minecraft.block.Block |
getBlock(net.minecraft.world.World world) |
net.minecraft.block.state.IBlockState |
getState(net.minecraft.world.World world) |
int |
getX() |
int |
getY() |
int |
getZ() |
int |
hashCode() |
boolean |
isInRange(MBlockPos pos,
int range) |
boolean |
isInside(net.minecraft.util.math.AxisAlignedBB aabb) |
static MBlockPos |
maxOf(MBlockPos p1,
MBlockPos p2) |
static MBlockPos |
minOf(MBlockPos p1,
MBlockPos p2) |
MBlockPos |
north()
Offset this BlockPos 1 block in northern direction
|
MBlockPos |
north(int n)
Offset this BlockPos n blocks in northern direction
|
MBlockPos |
offset(net.minecraft.util.EnumFacing facing)
Offset this BlockPos 1 block in the given direction
|
MBlockPos |
offset(net.minecraft.util.EnumFacing facing,
int n)
Offsets this BlockPos n blocks in the given direction
|
MBlockPos |
south()
Offset this BlockPos 1 block in southern direction
|
MBlockPos |
south(int n)
Offset this BlockPos n blocks in southern direction
|
MBlockPos |
substract(MBlockPos pos) |
net.minecraft.util.math.BlockPos |
toBlockPos() |
long |
toLong()
Serialize this BlockPos into a long value
|
java.lang.String |
toString() |
MBlockPos |
up()
Offset this BlockPos 1 block up
|
MBlockPos |
up(int n)
Offset this BlockPos n blocks up
|
MBlockPos |
west()
Offset this BlockPos 1 block in western direction
|
MBlockPos |
west(int n)
Offset this BlockPos n blocks in western direction
|
public MBlockPos(int x,
int y,
int z)
public MBlockPos(double x,
double y,
double z)
public int getX()
public int getY()
public int getZ()
public int chunkX()
public int chunkZ()
public net.minecraft.block.Block getBlock(net.minecraft.world.World world)
public net.minecraft.block.state.IBlockState getState(net.minecraft.world.World world)
public MBlockPos add(int x, int y, int z)
x - X coordinatey - Y coordinatez - Z coordinatepublic MBlockPos up()
public MBlockPos up(int n)
public MBlockPos down()
public MBlockPos down(int n)
public MBlockPos north()
public MBlockPos north(int n)
public MBlockPos south()
public MBlockPos south(int n)
public MBlockPos west()
public MBlockPos west(int n)
public MBlockPos east()
public MBlockPos east(int n)
public MBlockPos offset(net.minecraft.util.EnumFacing facing)
public MBlockPos offset(net.minecraft.util.EnumFacing facing, int n)
facing - The direction of the offsetn - The number of blocks to offset bypublic boolean isInRange(MBlockPos pos, int range)
public boolean isInside(net.minecraft.util.math.AxisAlignedBB aabb)
public net.minecraft.util.math.BlockPos toBlockPos()
public long toLong()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static MBlockPos fromLong(long serialized)
public static java.lang.Iterable<MBlockPos> getAllInBox(net.minecraft.util.math.AxisAlignedBB aabb)