Package net.minecraft.block.entity
Class ComparatorBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.ComparatorBlockEntity
- All Implemented Interfaces:
DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/ComparatorBlockEntityintermediary net/minecraft/class_2599official egs
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.Tracker -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidReads data fromnbt.voidsetOutputSignal(int outputSignal) protected voidWrites data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, 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, readComponents, registerTracking, removeFromCopiedStackData, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
Field Details
-
DEFAULT_OUTPUT_SIGNAL
private static final int DEFAULT_OUTPUT_SIGNAL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_OUTPUT_SIGNALLnet/minecraft/block/entity/ComparatorBlockEntity;DEFAULT_OUTPUT_SIGNAL:Iintermediary field_57775Lnet/minecraft/class_2599;field_57775:Iofficial aLegs;a:I
-
outputSignal
private int outputSignal- Mappings:
Namespace Name Mixin selector named outputSignalLnet/minecraft/block/entity/ComparatorBlockEntity;outputSignal:Iintermediary field_11943Lnet/minecraft/class_2599;field_11943:Iofficial bLegs;b:I
-
-
Constructor Details
-
ComparatorBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/ComparatorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_2599;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Legs;<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
-
getOutputSignal
public int getOutputSignal()- Mappings:
Namespace Name Mixin selector named getOutputSignalLnet/minecraft/block/entity/ComparatorBlockEntity;getOutputSignal()Iintermediary method_11071Lnet/minecraft/class_2599;method_11071()Iofficial aLegs;a()I
-
setOutputSignal
public void setOutputSignal(int outputSignal) - Mappings:
Namespace Name Mixin selector named setOutputSignalLnet/minecraft/block/entity/ComparatorBlockEntity;setOutputSignal(I)Vintermediary method_11070Lnet/minecraft/class_2599;method_11070(I)Vofficial aLegs;a(I)V
-