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 dyz
-
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
-
DEFAULT_POWERED
private static final boolean DEFAULT_POWERED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_POWEREDLnet/minecraft/block/entity/CommandBlockBlockEntity;DEFAULT_POWERED:Zintermediary field_57772Lnet/minecraft/class_2593;field_57772:Zofficial aLdyz;a:Z
-
DEFAULT_AUTO
private static final boolean DEFAULT_AUTO- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_AUTOLnet/minecraft/block/entity/CommandBlockBlockEntity;DEFAULT_AUTO:Zintermediary field_57773Lnet/minecraft/class_2593;field_57773:Zofficial bLdyz;b:Z
-
DEFAULT_CONDITION_MET
private static final boolean DEFAULT_CONDITION_MET- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CONDITION_METLnet/minecraft/block/entity/CommandBlockBlockEntity;DEFAULT_CONDITION_MET:Zintermediary field_57774Lnet/minecraft/class_2593;field_57774:Zofficial cLdyz;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 dLdyz;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 eLdyz;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 fLdyz;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 gLdyz;g:Ldji;
-
-
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>Ldyz;<init>(Liw;Lebq;)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 bLdyo;b(Lua;Lji$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 aLdyo;a(Lua;Lji$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 aLdyz;a()Ldji;
-
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 aLdyz;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 cLdyz;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 dLdyz;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 bLdyz;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 fLdyz;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 uLdyz;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 jLdyz;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 kLdyz;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 sLdyz;s()Ldyz$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 tLdyz;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 aLdyo;a(Lkg;)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 aLdyo;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 aLdyo;a(Lua;)V
-