Package net.minecraft.block.entity
Class ComparatorBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.ComparatorBlockEntity
- Mappings:
Namespace Name intermediary net/minecraft/class_2599official czvnamed net/minecraft/block/entity/ComparatorBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidreadNbt(NbtCompound nbt) Reads data fromnbt.voidsetOutputSignal(int outputSignal) protected voidwriteNbt(NbtCompound nbt) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
-
Field Details
-
outputSignal
private int outputSignal- Mappings:
Namespace Name Mixin selector intermediary field_11943Lnet/minecraft/class_2599;field_11943:Iofficial aLczv;a:Inamed outputSignalLnet/minecraft/block/entity/ComparatorBlockEntity;outputSignal:I
-
-
Constructor Details
-
ComparatorBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2599;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lczv;<init>(Lgu;Ldby;)Vnamed <init>Lnet/minecraft/block/entity/ComparatorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)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 intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vofficial bLczk;b(Lqr;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)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 intermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vofficial aLczk;a(Lqr;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getOutputSignal
public int getOutputSignal()- Mappings:
Namespace Name Mixin selector intermediary method_11071Lnet/minecraft/class_2599;method_11071()Iofficial cLczv;c()Inamed getOutputSignalLnet/minecraft/block/entity/ComparatorBlockEntity;getOutputSignal()I
-
setOutputSignal
public void setOutputSignal(int outputSignal) - Mappings:
Namespace Name Mixin selector intermediary method_11070Lnet/minecraft/class_2599;method_11070(I)Vofficial aLczv;a(I)Vnamed setOutputSignalLnet/minecraft/block/entity/ComparatorBlockEntity;setOutputSignal(I)V
-