public interface IBlock
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCollide() |
boolean |
canCollide(double maxVolume) |
double |
getBlockBoundsMaxX() |
double |
getBlockBoundsMaxY() |
double |
getBlockBoundsMaxZ() |
double |
getBlockBoundsMinX() |
double |
getBlockBoundsMinY() |
double |
getBlockBoundsMinZ() |
IContainer |
getContainer() |
java.lang.String |
getDisplayName() |
net.minecraft.block.Block |
getMCBlock() |
net.minecraft.tileentity.TileEntity |
getMCTileEntity() |
java.lang.String |
getName() |
IPos |
getPosition() |
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 |
setBounds(float minX,
float minY,
float minZ,
float maxX,
float maxY,
float maxZ) |
boolean |
setPosition(int x,
int y,
int z) |
boolean |
setPosition(int x,
int y,
int z,
IWorld world) |
boolean |
setPosition(IPos pos) |
boolean |
setPosition(IPos pos,
IWorld world)
Moves the block to a new position in the given world.
|
void |
setTileEntity(ITileEntity tileEntity) |
int getX()
int getY()
int getZ()
IPos getPosition()
boolean setPosition(IPos pos, IWorld world)
pos - The new position of the blockworld - The destination world of the blockboolean setPosition(IPos pos)
boolean setPosition(int x,
int y,
int z,
IWorld world)
boolean setPosition(int x,
int y,
int z)
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()
void setBounds(float minX,
float minY,
float minZ,
float maxX,
float maxY,
float maxZ)
double getBlockBoundsMinX()
double getBlockBoundsMinY()
double getBlockBoundsMinZ()
double getBlockBoundsMaxX()
double getBlockBoundsMaxY()
double getBlockBoundsMaxZ()