public class BlockSnapshot
extends java.lang.Object
implements java.io.Serializable
Unlike Block, which only one object can exist per coordinate, BlockSnapshot can exist multiple times for any given Block.
Modifier and Type | Field and Description |
---|---|
GameRegistry.UniqueIdentifier |
blockIdentifier |
int |
dimId |
int |
flag |
int |
meta |
Block |
replacedBlock |
World |
world |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
BlockSnapshot(int dimension,
int x,
int y,
int z,
java.lang.String modid,
java.lang.String blockName,
int meta,
int flag,
NBTTagCompound nbt)
Raw constructor designed for serialization usages.
|
BlockSnapshot(World world,
int x,
int y,
int z,
Block block,
int meta) |
BlockSnapshot(World world,
int x,
int y,
int z,
Block block,
int meta,
int flag) |
BlockSnapshot(World world,
int x,
int y,
int z,
Block block,
int meta,
NBTTagCompound nbt) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static BlockSnapshot |
getBlockSnapshot(World world,
int x,
int y,
int z) |
static BlockSnapshot |
getBlockSnapshot(World world,
int x,
int y,
int z,
int flag) |
Block |
getCurrentBlock() |
Block |
getReplacedBlock() |
TileEntity |
getTileEntity() |
World |
getWorld() |
int |
hashCode() |
static BlockSnapshot |
readFromNBT(NBTTagCompound tag) |
boolean |
restore() |
boolean |
restore(boolean force) |
boolean |
restore(boolean force,
boolean applyPhysics) |
boolean |
restoreToLocation(World world,
int x,
int y,
int z,
boolean force,
boolean applyPhysics) |
void |
writeToNBT(NBTTagCompound compound) |
public final int x
public final int y
public final int z
public final int dimId
public transient Block replacedBlock
public final int meta
public int flag
public transient World world
public final GameRegistry.UniqueIdentifier blockIdentifier
public BlockSnapshot(World world, int x, int y, int z, Block block, int meta, NBTTagCompound nbt)
public BlockSnapshot(World world, int x, int y, int z, Block block, int meta, int flag)
public BlockSnapshot(int dimension, int x, int y, int z, java.lang.String modid, java.lang.String blockName, int meta, int flag, NBTTagCompound nbt)
public static BlockSnapshot getBlockSnapshot(World world, int x, int y, int z)
public static BlockSnapshot getBlockSnapshot(World world, int x, int y, int z, int flag)
public static BlockSnapshot readFromNBT(NBTTagCompound tag)
public Block getCurrentBlock()
public World getWorld()
public Block getReplacedBlock()
public TileEntity getTileEntity()
public boolean restore()
public boolean restore(boolean force)
public boolean restore(boolean force, boolean applyPhysics)
public boolean restoreToLocation(World world, int x, int y, int z, boolean force, boolean applyPhysics)
public void writeToNBT(NBTTagCompound compound)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object