public interface IBlock
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCollide() |
boolean |
canCollide(double maxVolume) |
IContainer |
getContainer() |
java.lang.String |
getDisplayName() |
net.minecraft.block.Block |
getMCBlock() |
net.minecraft.tileentity.TileEntity |
getMCTileEntity() |
java.lang.String |
getName() |
IPos |
getPos() |
ITileEntity |
getTileEntity() |
INbt |
getTileEntityNBT() |
IWorld |
getWorld() |
int |
getX() |
int |
getY() |
int |
getZ() |
boolean |
hasTileEntity() |
boolean |
isAir() |
boolean |
isContainer() |
void |
remove()
Deletes the block, setting it to air.
|
IBlock |
setBlock(IBlock block) |
IBlock |
setBlock(java.lang.String blockName) |
void |
setTileEntity(ITileEntity tileEntity) |
int getX()
int getY()
int getZ()
IPos getPos()
java.lang.String getName()
void remove()
boolean isAir()
IBlock setBlock(java.lang.String blockName)
blockName - The name of the block to be set in place of this block.IBlock setBlock(IBlock block)
block - Input IBlock object to replace this block.boolean isContainer()
IContainer getContainer()
IWorld getWorld()
boolean hasTileEntity()
ITileEntity getTileEntity()
void setTileEntity(ITileEntity tileEntity)
tileEntity - Replaces this block's tile entity based on the data given by this parameter.net.minecraft.tileentity.TileEntity getMCTileEntity()
net.minecraft.block.Block getMCBlock()
java.lang.String getDisplayName()
INbt getTileEntityNBT()
boolean canCollide(double maxVolume)
maxVolume - The volume threshold to determine whether this block's bounding box collides, if it has one.boolean canCollide()