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 dyn
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final CommandBlockExecutorprivate booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate booleanFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponents(ComponentMap.Builder builder) booleanisAuto()booleanbooleanbooleanprotected voidreadComponents(ComponentsAccess components) protected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.voidprivate voidvoidsetAuto(boolean auto) voidsetPowered(boolean powered) voidbooleanprotected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) 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, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_57772
private static final boolean field_57772- See Also:
- Mappings:
Namespace Name Mixin selector named field_57772Lnet/minecraft/block/entity/CommandBlockBlockEntity;field_57772:Zintermediary field_57772Lnet/minecraft/class_2593;field_57772:Zofficial aLdyn;a:Z
-
field_57773
private static final boolean field_57773- See Also:
- Mappings:
Namespace Name Mixin selector named field_57773Lnet/minecraft/block/entity/CommandBlockBlockEntity;field_57773:Zintermediary field_57773Lnet/minecraft/class_2593;field_57773:Zofficial bLdyn;b:Z
-
field_57774
private static final boolean field_57774- See Also:
- Mappings:
Namespace Name Mixin selector named field_57774Lnet/minecraft/block/entity/CommandBlockBlockEntity;field_57774:Zintermediary field_57774Lnet/minecraft/class_2593;field_57774:Zofficial cLdyn;c:Z
-
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 dLdyn;d: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 eLdyn;e: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 fLdyn;f: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 gLdyn;g:Ldiw;
-
-
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>Ldyn;<init>(Liv;Lebe;)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 bLdyc;b(Ltz;Ljh$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 aLdyc;a(Ltz;Ljh$a;)V
-
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 aLdyn;a()Ldiw;
-
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 aLdyn;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 cLdyn;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 dLdyn;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 bLdyn;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 fLdyn;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 uLdyn;u()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 jLdyn;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 kLdyn;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 sLdyn;s()Ldyn$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 tLdyn;t()Z
-
readComponents
- Overrides:
readComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named readComponentsLnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57568Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_9473;)Vofficial aLdyc;a(Lkf;)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 aLdyc;a(Lkh$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 aLdyc;a(Ltz;)V
-