Package net.minecraft.block.entity
Class CommandBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/CommandBlockBlockEntityintermediary net/minecraft/class_2593official dpt
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
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 TypeMethodDescriptionprotected voidaddComponents(ComponentMap.Builder componentMapBuilder) booleanReturns whether the block item should require the player to have operator permissions to copy the block entity data on placement.booleanisAuto()booleanbooleanbooleanprotected voidreadComponents(BlockEntity.ComponentsAccess components) protected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt.voidprivate voidvoidsetAuto(boolean auto) voidsetPowered(boolean powered) voidbooleanprotected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, setCachedState, setComponents, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
-
Field Details
-
powered
private boolean powered- Mappings:
Namespace Name Mixin selector named poweredLnet/minecraft/block/entity/CommandBlockBlockEntity;powered:Zintermediary field_11919Lnet/minecraft/class_2593;field_11919:Zofficial aLdpt;a:Z
-
auto
private boolean auto- Mappings:
Namespace Name Mixin selector named autoLnet/minecraft/block/entity/CommandBlockBlockEntity;auto:Zintermediary field_11918Lnet/minecraft/class_2593;field_11918:Zofficial bLdpt;b:Z
-
conditionMet
private boolean conditionMet- Mappings:
Namespace Name Mixin selector named conditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;conditionMet:Zintermediary field_11917Lnet/minecraft/class_2593;field_11917:Zofficial cLdpt;c:Z
-
commandExecutor
- Mappings:
Namespace Name Mixin selector named commandExecutorLnet/minecraft/block/entity/CommandBlockBlockEntity;commandExecutor:Lnet/minecraft/world/CommandBlockExecutor;intermediary field_11920Lnet/minecraft/class_2593;field_11920:Lnet/minecraft/class_1918;official dLdpt;d:Ldbb;
-
-
Constructor Details
-
CommandBlockBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/CommandBlockBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_2593;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldpt;<init>(Liz;Ldse;)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 named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdpj;b(Lus;Ljk$a;)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 named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdpj;a(Lus;Ljk$a;)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 named copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Zintermediary method_11011Lnet/minecraft/class_2586;method_11011()Zofficial qLdpj;q()Z
-
getCommandExecutor
- Mappings:
Namespace Name Mixin selector named getCommandExecutorLnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandExecutor()Lnet/minecraft/world/CommandBlockExecutor;intermediary method_11040Lnet/minecraft/class_2593;method_11040()Lnet/minecraft/class_1918;official bLdpt;b()Ldbb;
-
setPowered
public void setPowered(boolean powered) - Mappings:
Namespace Name Mixin selector named setPoweredLnet/minecraft/block/entity/CommandBlockBlockEntity;setPowered(Z)Vintermediary method_11038Lnet/minecraft/class_2593;method_11038(Z)Vofficial aLdpt;a(Z)V
-
isPowered
public boolean isPowered()- Mappings:
Namespace Name Mixin selector named isPoweredLnet/minecraft/block/entity/CommandBlockBlockEntity;isPowered()Zintermediary method_11043Lnet/minecraft/class_2593;method_11043()Zofficial cLdpt;c()Z
-
isAuto
public boolean isAuto()- Mappings:
Namespace Name Mixin selector named isAutoLnet/minecraft/block/entity/CommandBlockBlockEntity;isAuto()Zintermediary method_11042Lnet/minecraft/class_2593;method_11042()Zofficial dLdpt;d()Z
-
setAuto
public void setAuto(boolean auto) - Mappings:
Namespace Name Mixin selector named setAutoLnet/minecraft/block/entity/CommandBlockBlockEntity;setAuto(Z)Vintermediary method_11041Lnet/minecraft/class_2593;method_11041(Z)Vofficial bLdpt;b(Z)V
-
updateCommandBlock
public void updateCommandBlock()- Mappings:
Namespace Name Mixin selector named updateCommandBlockLnet/minecraft/block/entity/CommandBlockBlockEntity;updateCommandBlock()Vintermediary method_23359Lnet/minecraft/class_2593;method_23359()Vofficial fLdpt;f()V
-
scheduleAutoTick
private void scheduleAutoTick()- Mappings:
Namespace Name Mixin selector named scheduleAutoTickLnet/minecraft/block/entity/CommandBlockBlockEntity;scheduleAutoTick()Vintermediary method_23360Lnet/minecraft/class_2593;method_23360()Vofficial vLdpt;v()V
-
isConditionMet
public boolean isConditionMet()- Mappings:
Namespace Name Mixin selector named isConditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionMet()Zintermediary method_11044Lnet/minecraft/class_2593;method_11044()Zofficial jLdpt;j()Z
-
updateConditionMet
public boolean updateConditionMet()- Mappings:
Namespace Name Mixin selector named updateConditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;updateConditionMet()Zintermediary method_11045Lnet/minecraft/class_2593;method_11045()Zofficial kLdpt;k()Z
-
getCommandBlockType
- Mappings:
Namespace Name Mixin selector named getCommandBlockTypeLnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandBlockType()Lnet/minecraft/block/entity/CommandBlockBlockEntity$Type;intermediary method_11039Lnet/minecraft/class_2593;method_11039()Lnet/minecraft/class_2593$class_2594;official lLdpt;l()Ldpt$a;
-
isConditionalCommandBlock
public boolean isConditionalCommandBlock()- Mappings:
Namespace Name Mixin selector named isConditionalCommandBlockLnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionalCommandBlock()Zintermediary method_11046Lnet/minecraft/class_2593;method_11046()Zofficial uLdpt;u()Z
-
readComponents
- Overrides:
readComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named readComponentsLnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/block/entity/BlockEntity$ComponentsAccess;)Vintermediary method_57568Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_2586$class_9473;)Vofficial aLdpj;a(Ldpj$b;)V
-
addComponents
- Overrides:
addComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named addComponentsLnet/minecraft/block/entity/BlockEntity;addComponents(Lnet/minecraft/component/ComponentMap$Builder;)Vintermediary method_57567Lnet/minecraft/class_2586;method_57567(Lnet/minecraft/class_9323$class_9324;)Vofficial aLdpj;a(Lki$a;)V
-
removeFromCopiedStackNbt
- Overrides:
removeFromCopiedStackNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector named removeFromCopiedStackNbtLnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_57569Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_2487;)Vofficial aLdpj;a(Lus;)V
-