Package net.minecraft.block.entity
Class CommandBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity
- Mappings:
Namespace Name intermediary net/minecraft/class_2593official czunamed net/minecraft/block/entity/CommandBlockBlockEntity
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final CommandBlockExecutorprivate booleanprivate booleanFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the block item should require the player to have operator permissions to copy the block entity data on placement.booleanisAuto()booleanbooleanbooleanvoidreadNbt(NbtCompound nbt) Reads data fromnbt.private voidvoidsetAuto(boolean auto) voidsetPowered(boolean powered) voidbooleanprotected voidwriteNbt(NbtCompound nbt) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
-
Field Details
-
powered
private boolean powered- Mappings:
Namespace Name Mixin selector intermediary field_11919Lnet/minecraft/class_2593;field_11919:Zofficial aLczu;a:Znamed poweredLnet/minecraft/block/entity/CommandBlockBlockEntity;powered:Z
-
auto
private boolean auto- Mappings:
Namespace Name Mixin selector intermediary field_11918Lnet/minecraft/class_2593;field_11918:Zofficial bLczu;b:Znamed autoLnet/minecraft/block/entity/CommandBlockBlockEntity;auto:Z
-
conditionMet
private boolean conditionMet- Mappings:
Namespace Name Mixin selector intermediary field_11917Lnet/minecraft/class_2593;field_11917:Zofficial cLczu;c:Znamed conditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;conditionMet:Z
-
commandExecutor
- Mappings:
Namespace Name Mixin selector intermediary field_11920Lnet/minecraft/class_2593;field_11920:Lnet/minecraft/class_1918;official dLczu;d:Lcll;named commandExecutorLnet/minecraft/block/entity/CommandBlockBlockEntity;commandExecutor:Lnet/minecraft/world/CommandBlockExecutor;
-
-
Constructor Details
-
CommandBlockBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2593;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lczu;<init>(Lgu;Ldby;)Vnamed <init>Lnet/minecraft/block/entity/CommandBlockBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
writeNbt
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vofficial bLczk;b(Lqr;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readNbt
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vofficial aLczk;a(Lqr;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()Returns whether the block item should require the player to have operator permissions to copy the block entity data on placement.Block entities that can execute commands should override this to return
true.- Overrides:
copyItemDataRequiresOperatorin classBlockEntity- Returns:
- whether the block item should require the player to have operator permissions to copy the block entity data on placement
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_11011Lnet/minecraft/class_2586;method_11011()Zofficial tLczk;t()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
getCommandExecutor
- Mappings:
Namespace Name Mixin selector intermediary method_11040Lnet/minecraft/class_2593;method_11040()Lnet/minecraft/class_1918;official cLczu;c()Lcll;named getCommandExecutorLnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandExecutor()Lnet/minecraft/world/CommandBlockExecutor;
-
setPowered
public void setPowered(boolean powered) - Mappings:
Namespace Name Mixin selector intermediary method_11038Lnet/minecraft/class_2593;method_11038(Z)Vofficial aLczu;a(Z)Vnamed setPoweredLnet/minecraft/block/entity/CommandBlockBlockEntity;setPowered(Z)V
-
isPowered
public boolean isPowered()- Mappings:
Namespace Name Mixin selector intermediary method_11043Lnet/minecraft/class_2593;method_11043()Zofficial dLczu;d()Znamed isPoweredLnet/minecraft/block/entity/CommandBlockBlockEntity;isPowered()Z
-
isAuto
public boolean isAuto()- Mappings:
Namespace Name Mixin selector intermediary method_11042Lnet/minecraft/class_2593;method_11042()Zofficial fLczu;f()Znamed isAutoLnet/minecraft/block/entity/CommandBlockBlockEntity;isAuto()Z
-
setAuto
public void setAuto(boolean auto) - Mappings:
Namespace Name Mixin selector intermediary method_11041Lnet/minecraft/class_2593;method_11041(Z)Vofficial bLczu;b(Z)Vnamed setAutoLnet/minecraft/block/entity/CommandBlockBlockEntity;setAuto(Z)V
-
updateCommandBlock
public void updateCommandBlock()- Mappings:
Namespace Name Mixin selector intermediary method_23359Lnet/minecraft/class_2593;method_23359()Vofficial gLczu;g()Vnamed updateCommandBlockLnet/minecraft/block/entity/CommandBlockBlockEntity;updateCommandBlock()V
-
scheduleAutoTick
private void scheduleAutoTick()- Mappings:
Namespace Name Mixin selector intermediary method_23360Lnet/minecraft/class_2593;method_23360()Vofficial xLczu;x()Vnamed scheduleAutoTickLnet/minecraft/block/entity/CommandBlockBlockEntity;scheduleAutoTick()V
-
isConditionMet
public boolean isConditionMet()- Mappings:
Namespace Name Mixin selector intermediary method_11044Lnet/minecraft/class_2593;method_11044()Zofficial iLczu;i()Znamed isConditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionMet()Z
-
updateConditionMet
public boolean updateConditionMet()- Mappings:
Namespace Name Mixin selector intermediary method_11045Lnet/minecraft/class_2593;method_11045()Zofficial jLczu;j()Znamed updateConditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;updateConditionMet()Z
-
getCommandBlockType
- Mappings:
Namespace Name Mixin selector intermediary method_11039Lnet/minecraft/class_2593;method_11039()Lnet/minecraft/class_2593$class_2594;official vLczu;v()Lczu$a;named getCommandBlockTypeLnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandBlockType()Lnet/minecraft/block/entity/CommandBlockBlockEntity$Type;
-
isConditionalCommandBlock
public boolean isConditionalCommandBlock()- Mappings:
Namespace Name Mixin selector intermediary method_11046Lnet/minecraft/class_2593;method_11046()Zofficial wLczu;w()Znamed isConditionalCommandBlockLnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionalCommandBlock()Z
-