Package net.minecraft.block.entity
Class CommandBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity
- All Implemented Interfaces:
DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/CommandBlockBlockEntityintermediary net/minecraft/class_2593official egr
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.Tracker -
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 voidReads data fromnbt.voidprivate voidvoidsetAuto(boolean auto) voidsetPowered(boolean powered) voidbooleanprotected voidWrites data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, registerTracking, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
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 aLegr;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 bLegr;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 cLegr;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 dLegr;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 eLegr;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 fLegr;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 gLegr;g:Ldqp;
-
-
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>Legr;<init>(Lja;Lejm;)V
-
-
Method Details
-
writeData
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:
writeDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/block/entity/BlockEntity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_11372;)Vofficial aLegg;a(Lfir;)V
-
readData
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:
readDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/block/entity/BlockEntity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_11368;)Vofficial aLegg;a(Lfip;)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 aLegr;a()Ldqp;
-
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 aLegr;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 cLegr;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 dLegr;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 bLegr;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 fLegr;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 wLegr;w()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 hLegr;h()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 kLegr;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 lLegr;l()Legr$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 mLegr;m()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 aLegg;a(Lkk;)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 aLegg;a(Lkm$a;)V
-
removeFromCopiedStackData
- Overrides:
removeFromCopiedStackDatain classBlockEntity- Mappings:
Namespace Name Mixin selector named removeFromCopiedStackDataLnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackData(Lnet/minecraft/storage/WriteView;)Vintermediary method_57569Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_11372;)Vofficial bLegg;b(Lfir;)V
-