public interface ITileEntity
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockMetadata() |
IBlock |
getBlockType() |
double |
getDistanceFrom(double x,
double y,
double z) |
double |
getDistanceFrom(IPos pos) |
net.minecraft.tileentity.TileEntity |
getMCTileEntity() |
INbt |
getNBT()
Writes the tile entity to NBT and returns the compound tag.
|
IWorld |
getWorld() |
void |
invalidate()
Invalidates the tile entity.
|
boolean |
isInvalid() |
void |
markDirty() |
void |
readFromNBT(INbt nbt)
Reads an INbt compound tag, creates a tile entity based on the data, and replaces this entity with the new one.
|
void |
setWorld(IWorld world) |
void |
updateContainingBlockInfo()
Updates the block's tile entity to the values set in this object.
|
void |
validate()
Validates the tile entity for use.
|
int getBlockMetadata()
IWorld getWorld()
void setWorld(IWorld world)
net.minecraft.tileentity.TileEntity getMCTileEntity()
void markDirty()
void readFromNBT(INbt nbt)
double getDistanceFrom(double x,
double y,
double z)
double getDistanceFrom(IPos pos)
IBlock getBlockType()
boolean isInvalid()
void invalidate()
void validate()
void updateContainingBlockInfo()
INbt getNBT()