Package net.minecraft.block.entity
Class CommandBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity
- Mappings:
- Namespace - Name - official - czx- intermediary - net/minecraft/class_2593- named - net/minecraft/block/entity/CommandBlockBlockEntity
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate final CommandBlockExecutorprivate booleanprivate booleanFields inherited from class net.minecraft.block.entity.BlockEntitypos, removed, world
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.BlockEntitycancelRemoval, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
- 
Field Details- 
poweredprivate boolean powered- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczx;a:Z- intermediary - field_11919- Lnet/minecraft/class_2593;field_11919:Z- named - powered- Lnet/minecraft/block/entity/CommandBlockBlockEntity;powered:Z
 
- 
autoprivate boolean auto- Mappings:
- Namespace - Name - Mixin selector - official - b- Lczx;b:Z- intermediary - field_11918- Lnet/minecraft/class_2593;field_11918:Z- named - auto- Lnet/minecraft/block/entity/CommandBlockBlockEntity;auto:Z
 
- 
conditionMetprivate boolean conditionMet- Mappings:
- Namespace - Name - Mixin selector - official - c- Lczx;c:Z- intermediary - field_11917- Lnet/minecraft/class_2593;field_11917:Z- named - conditionMet- Lnet/minecraft/block/entity/CommandBlockBlockEntity;conditionMet:Z
 
- 
commandExecutor- Mappings:
- Namespace - Name - Mixin selector - official - d- Lczx;d:Lcln;- intermediary - field_11920- Lnet/minecraft/class_2593;field_11920:Lnet/minecraft/class_1918;- named - commandExecutor- Lnet/minecraft/block/entity/CommandBlockBlockEntity;commandExecutor:Lnet/minecraft/world/CommandBlockExecutor;
 
 
- 
- 
Constructor Details- 
CommandBlockBlockEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lczx;<init>(Lgu;Ldcb;)V- intermediary - <init>- Lnet/minecraft/class_2593;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- named - <init>- Lnet/minecraft/block/entity/CommandBlockBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
 
 
- 
- 
Method Details- 
writeNbtWrites 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 class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lczn;b(Lqr;)V- intermediary - method_11007- Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V- named - writeNbt- Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
readNbtReads 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 class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczn;a(Lqr;)V- intermediary - method_11014- Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V- named - readNbt- Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
copyItemDataRequiresOperatorpublic 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 class- BlockEntity
- 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 - official - t- Lczn;t()Z- intermediary - method_11011- Lnet/minecraft/class_2586;method_11011()Z- named - copyItemDataRequiresOperator- Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
 
- 
getCommandExecutor- Mappings:
- Namespace - Name - Mixin selector - official - c- Lczx;c()Lcln;- intermediary - method_11040- Lnet/minecraft/class_2593;method_11040()Lnet/minecraft/class_1918;- named - getCommandExecutor- Lnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandExecutor()Lnet/minecraft/world/CommandBlockExecutor;
 
- 
setPoweredpublic void setPowered(boolean powered) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lczx;a(Z)V- intermediary - method_11038- Lnet/minecraft/class_2593;method_11038(Z)V- named - setPowered- Lnet/minecraft/block/entity/CommandBlockBlockEntity;setPowered(Z)V
 
- 
isPoweredpublic boolean isPowered()- Mappings:
- Namespace - Name - Mixin selector - official - d- Lczx;d()Z- intermediary - method_11043- Lnet/minecraft/class_2593;method_11043()Z- named - isPowered- Lnet/minecraft/block/entity/CommandBlockBlockEntity;isPowered()Z
 
- 
isAutopublic boolean isAuto()- Mappings:
- Namespace - Name - Mixin selector - official - f- Lczx;f()Z- intermediary - method_11042- Lnet/minecraft/class_2593;method_11042()Z- named - isAuto- Lnet/minecraft/block/entity/CommandBlockBlockEntity;isAuto()Z
 
- 
setAutopublic void setAuto(boolean auto) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lczx;b(Z)V- intermediary - method_11041- Lnet/minecraft/class_2593;method_11041(Z)V- named - setAuto- Lnet/minecraft/block/entity/CommandBlockBlockEntity;setAuto(Z)V
 
- 
updateCommandBlockpublic void updateCommandBlock()- Mappings:
- Namespace - Name - Mixin selector - official - g- Lczx;g()V- intermediary - method_23359- Lnet/minecraft/class_2593;method_23359()V- named - updateCommandBlock- Lnet/minecraft/block/entity/CommandBlockBlockEntity;updateCommandBlock()V
 
- 
scheduleAutoTickprivate void scheduleAutoTick()- Mappings:
- Namespace - Name - Mixin selector - official - x- Lczx;x()V- intermediary - method_23360- Lnet/minecraft/class_2593;method_23360()V- named - scheduleAutoTick- Lnet/minecraft/block/entity/CommandBlockBlockEntity;scheduleAutoTick()V
 
- 
isConditionMetpublic boolean isConditionMet()- Mappings:
- Namespace - Name - Mixin selector - official - i- Lczx;i()Z- intermediary - method_11044- Lnet/minecraft/class_2593;method_11044()Z- named - isConditionMet- Lnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionMet()Z
 
- 
updateConditionMetpublic boolean updateConditionMet()- Mappings:
- Namespace - Name - Mixin selector - official - j- Lczx;j()Z- intermediary - method_11045- Lnet/minecraft/class_2593;method_11045()Z- named - updateConditionMet- Lnet/minecraft/block/entity/CommandBlockBlockEntity;updateConditionMet()Z
 
- 
getCommandBlockType- Mappings:
- Namespace - Name - Mixin selector - official - v- Lczx;v()Lczx$a;- intermediary - method_11039- Lnet/minecraft/class_2593;method_11039()Lnet/minecraft/class_2593$class_2594;- named - getCommandBlockType- Lnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandBlockType()Lnet/minecraft/block/entity/CommandBlockBlockEntity$Type;
 
- 
isConditionalCommandBlockpublic boolean isConditionalCommandBlock()- Mappings:
- Namespace - Name - Mixin selector - official - w- Lczx;w()Z- intermediary - method_11046- Lnet/minecraft/class_2593;method_11046()Z- named - isConditionalCommandBlock- Lnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionalCommandBlock()Z
 
 
-