Package net.minecraft.block.entity
Class CommandBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity
public class CommandBlockBlockEntity extends BlockEntity
- Mappings:
Namespace Name official cgtintermediary net/minecraft/class_2593named net/minecraft/block/entity/CommandBlockBlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandBlockBlockEntity.Type -
Field Summary
Fields Modifier and Type Field Description private booleanautoprivate CommandBlockExecutorcommandExecutorprivate booleanconditionMetprivate booleanneedsUpdatePacketprivate booleanpoweredFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description CommandBlockBlockEntity(BlockPos pos, BlockState state) -
Method Summary
Modifier and Type Method Description booleancopyItemDataRequiresOperator()CommandBlockBlockEntity.TypegetCommandBlockType()CommandBlockExecutorgetCommandExecutor()booleanisAuto()booleanisConditionalCommandBlock()booleanisConditionMet()booleanisPowered()booleanneedsUpdatePacket()voidreadNbt(CompoundTag tag)private voidscheduleAutoTick()voidsetAuto(boolean auto)voidsetNeedsUpdatePacket(boolean needsUpdatePacket)voidsetPowered(boolean powered)@Nullable BlockEntityUpdateS2CPackettoUpdatePacket()voidupdateCommandBlock()booleanupdateConditionMet()CompoundTagwriteNbt(CompoundTag tag)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt
-
Field Details
-
powered
private boolean powered- Mappings:
Namespace Name Mixin selector official aLcgt;a:Zintermediary field_11919Lnet/minecraft/class_2593;field_11919:Znamed poweredLnet/minecraft/block/entity/CommandBlockBlockEntity;powered:Z
-
auto
private boolean auto- Mappings:
Namespace Name Mixin selector official bLcgt;b:Zintermediary field_11918Lnet/minecraft/class_2593;field_11918:Znamed autoLnet/minecraft/block/entity/CommandBlockBlockEntity;auto:Z
-
conditionMet
private boolean conditionMet- Mappings:
Namespace Name Mixin selector official cLcgt;c:Zintermediary field_11917Lnet/minecraft/class_2593;field_11917:Znamed conditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;conditionMet:Z
-
needsUpdatePacket
private boolean needsUpdatePacket- Mappings:
Namespace Name Mixin selector official gLcgt;g:Zintermediary field_11916Lnet/minecraft/class_2593;field_11916:Znamed needsUpdatePacketLnet/minecraft/block/entity/CommandBlockBlockEntity;needsUpdatePacket:Z
-
commandExecutor
- Mappings:
Namespace Name Mixin selector official hLcgt;h:Lbtq;intermediary field_11920Lnet/minecraft/class_2593;field_11920:Lnet/minecraft/class_1918;named commandExecutorLnet/minecraft/block/entity/CommandBlockBlockEntity;commandExecutor:Lnet/minecraft/world/CommandBlockExecutor;
-
-
Constructor Details
-
CommandBlockBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcgt;<init>(Lfx;Lcio;)Vintermediary <init>Lnet/minecraft/class_2593;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/CommandBlockBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
writeNbt
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcgm;b(Lmr;)Lmr;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
readNbt
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lmr;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcgm;a()Lpp;intermediary method_16886Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperatorin classBlockEntity- Mappings:
Namespace Name Mixin selector official qLcgm;q()Zintermediary method_11011Lnet/minecraft/class_2586;method_11011()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
getCommandExecutor
- Mappings:
Namespace Name Mixin selector official dLcgt;d()Lbtq;intermediary method_11040Lnet/minecraft/class_2593;method_11040()Lnet/minecraft/class_1918;named getCommandExecutorLnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandExecutor()Lnet/minecraft/world/CommandBlockExecutor;
-
setPowered
public void setPowered(boolean powered)- Mappings:
Namespace Name Mixin selector official aLcgt;a(Z)Vintermediary method_11038Lnet/minecraft/class_2593;method_11038(Z)Vnamed setPoweredLnet/minecraft/block/entity/CommandBlockBlockEntity;setPowered(Z)V
-
isPowered
public boolean isPowered()- Mappings:
Namespace Name Mixin selector official fLcgt;f()Zintermediary method_11043Lnet/minecraft/class_2593;method_11043()Znamed isPoweredLnet/minecraft/block/entity/CommandBlockBlockEntity;isPowered()Z
-
isAuto
public boolean isAuto()- Mappings:
Namespace Name Mixin selector official gLcgt;g()Zintermediary method_11042Lnet/minecraft/class_2593;method_11042()Znamed isAutoLnet/minecraft/block/entity/CommandBlockBlockEntity;isAuto()Z
-
setAuto
public void setAuto(boolean auto)- Mappings:
Namespace Name Mixin selector official bLcgt;b(Z)Vintermediary method_11041Lnet/minecraft/class_2593;method_11041(Z)Vnamed setAutoLnet/minecraft/block/entity/CommandBlockBlockEntity;setAuto(Z)V
-
updateCommandBlock
public void updateCommandBlock()- Mappings:
Namespace Name Mixin selector official hLcgt;h()Vintermediary method_23359Lnet/minecraft/class_2593;method_23359()Vnamed updateCommandBlockLnet/minecraft/block/entity/CommandBlockBlockEntity;updateCommandBlock()V
-
scheduleAutoTick
private void scheduleAutoTick()- Mappings:
Namespace Name Mixin selector official vLcgt;v()Vintermediary method_23360Lnet/minecraft/class_2593;method_23360()Vnamed scheduleAutoTickLnet/minecraft/block/entity/CommandBlockBlockEntity;scheduleAutoTick()V
-
isConditionMet
public boolean isConditionMet()- Mappings:
Namespace Name Mixin selector official iLcgt;i()Zintermediary method_11044Lnet/minecraft/class_2593;method_11044()Znamed isConditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionMet()Z
-
updateConditionMet
public boolean updateConditionMet()- Mappings:
Namespace Name Mixin selector official jLcgt;j()Zintermediary method_11045Lnet/minecraft/class_2593;method_11045()Znamed updateConditionMetLnet/minecraft/block/entity/CommandBlockBlockEntity;updateConditionMet()Z
-
needsUpdatePacket
public boolean needsUpdatePacket()- Mappings:
Namespace Name Mixin selector official sLcgt;s()Zintermediary method_11036Lnet/minecraft/class_2593;method_11036()Znamed needsUpdatePacketLnet/minecraft/block/entity/CommandBlockBlockEntity;needsUpdatePacket()Z
-
setNeedsUpdatePacket
public void setNeedsUpdatePacket(boolean needsUpdatePacket)- Mappings:
Namespace Name Mixin selector official cLcgt;c(Z)Vintermediary method_11037Lnet/minecraft/class_2593;method_11037(Z)Vnamed setNeedsUpdatePacketLnet/minecraft/block/entity/CommandBlockBlockEntity;setNeedsUpdatePacket(Z)V
-
getCommandBlockType
- Mappings:
Namespace Name Mixin selector official tLcgt;t()Lcgt$a;intermediary method_11039Lnet/minecraft/class_2593;method_11039()Lnet/minecraft/class_2593$class_2594;named getCommandBlockTypeLnet/minecraft/block/entity/CommandBlockBlockEntity;getCommandBlockType()Lnet/minecraft/block/entity/CommandBlockBlockEntity$Type;
-
isConditionalCommandBlock
public boolean isConditionalCommandBlock()- Mappings:
Namespace Name Mixin selector official uLcgt;u()Zintermediary method_11046Lnet/minecraft/class_2593;method_11046()Znamed isConditionalCommandBlockLnet/minecraft/block/entity/CommandBlockBlockEntity;isConditionalCommandBlock()Z
-