public class TileEntityCommandBlock extends TileEntity
Modifier and Type | Class and Description |
---|---|
static class |
TileEntityCommandBlock.Mode |
Modifier and Type | Field and Description |
---|---|
private boolean |
auto |
private CommandBlockBaseLogic |
commandBlockLogic |
private boolean |
conditionMet |
private boolean |
powered |
private boolean |
sendToClient |
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world
Constructor and Description |
---|
TileEntityCommandBlock() |
Modifier and Type | Method and Description |
---|---|
CommandBlockBaseLogic |
getCommandBlockLogic() |
CommandResultStats |
getCommandResultStats() |
TileEntityCommandBlock.Mode |
getMode() |
SPacketUpdateTileEntity |
getUpdatePacket() |
boolean |
isAuto() |
boolean |
isConditional() |
boolean |
isConditionMet() |
boolean |
isPowered() |
boolean |
isSendToClient() |
boolean |
onlyOpsCanSetNbt() |
void |
readFromNBT(NBTTagCompound compound) |
void |
setAuto(boolean autoIn) |
boolean |
setConditionMet() |
void |
setPowered(boolean poweredIn) |
void |
setSendToClient(boolean p_184252_1_) |
void |
validate() |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdateTag, getWorld, handleUpdateTag, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo
private boolean powered
private boolean auto
private boolean conditionMet
private boolean sendToClient
private final CommandBlockBaseLogic commandBlockLogic
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntity
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntity
@Nullable public SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket
in class TileEntity
public boolean onlyOpsCanSetNbt()
onlyOpsCanSetNbt
in class TileEntity
public CommandBlockBaseLogic getCommandBlockLogic()
public CommandResultStats getCommandResultStats()
public void setPowered(boolean poweredIn)
public boolean isPowered()
public boolean isAuto()
public void setAuto(boolean autoIn)
public boolean isConditionMet()
public boolean setConditionMet()
public boolean isSendToClient()
public void setSendToClient(boolean p_184252_1_)
public TileEntityCommandBlock.Mode getMode()
public boolean isConditional()
public void validate()
validate
in class TileEntity