Class CommandBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.CommandBlockEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private BaseCommandBlock
private boolean
private boolean
private boolean
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMode()
boolean
boolean
boolean
boolean
void
load(CompoundTag p_155383_)
boolean
boolean
void
save(CompoundTag p_59134_)
private void
void
setAutomatic(boolean p_59138_)
void
setPowered(boolean p_59136_)
void
setSendToClient(boolean p_59140_)
boolean
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
powered
private boolean powered -
auto
private boolean auto -
conditionMet
private boolean conditionMet -
sendToClient
private boolean sendToClient -
commandBlock
-
-
Constructor Details
-
CommandBlockEntity
-
-
Method Details
-
save
- Overrides:
save
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
onlyOpCanSetNbt
public boolean onlyOpCanSetNbt()- Overrides:
onlyOpCanSetNbt
in classBlockEntity
-
getCommandBlock
-
setPowered
public void setPowered(boolean p_59136_) -
isPowered
public boolean isPowered() -
isAutomatic
public boolean isAutomatic() -
setAutomatic
public void setAutomatic(boolean p_59138_) -
onModeSwitch
public void onModeSwitch() -
scheduleTick
private void scheduleTick() -
wasConditionMet
public boolean wasConditionMet() -
markConditionMet
public boolean markConditionMet() -
isSendToClient
public boolean isSendToClient() -
setSendToClient
public void setSendToClient(boolean p_59140_) -
getMode
-
isConditional
public boolean isConditional()
-