public class BlockIndex extends java.lang.Object implements java.lang.Comparable<BlockIndex>
| Constructor and Description |
|---|
BlockIndex() |
BlockIndex(net.minecraft.entity.Entity entity) |
BlockIndex(int x,
int y,
int z)
Creates an index for a block located on x, y.
|
BlockIndex(net.minecraft.nbt.NBTTagCompound c) |
BlockIndex(net.minecraft.tileentity.TileEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BlockIndex o)
Provides a deterministic and complete ordering of block positions.
|
boolean |
equals(java.lang.Object obj) |
net.minecraft.block.Block |
getBlock(net.minecraft.world.World world) |
int |
hashCode() |
boolean |
nextTo(BlockIndex blockIndex) |
java.lang.String |
toString() |
void |
writeTo(net.minecraft.nbt.NBTTagCompound c) |
public BlockIndex()
public BlockIndex(int x,
int y,
int z)
public BlockIndex(net.minecraft.nbt.NBTTagCompound c)
public BlockIndex(net.minecraft.entity.Entity entity)
public BlockIndex(net.minecraft.tileentity.TileEntity entity)
public int compareTo(BlockIndex o)
compareTo in interface java.lang.Comparable<BlockIndex>public void writeTo(net.minecraft.nbt.NBTTagCompound c)
public net.minecraft.block.Block getBlock(net.minecraft.world.World world)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean nextTo(BlockIndex blockIndex)