Package net.minecraft.block.entity
Class SculkSensorBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkSensorBlockEntity
- All Implemented Interfaces:
GameEventListener.Holder<Vibrations.VibrationListener>
,Vibrations
- Direct Known Subclasses:
CalibratedSculkSensorBlockEntity
public class SculkSensorBlockEntity
extends BlockEntity
implements GameEventListener.Holder<Vibrations.VibrationListener>, Vibrations
- Mappings:
Namespace Name named net/minecraft/block/entity/SculkSensorBlockEntity
intermediary net/minecraft/class_5704
official drp
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess
Nested classes/interfaces inherited from interface net.minecraft.world.event.Vibrations
Vibrations.Callback, Vibrations.ListenerData, Vibrations.Ticker, Vibrations.VibrationListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Vibrations.Callback
private int
private final Vibrations.VibrationListener
private Vibrations.ListenerData
private static final Logger
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
Fields inherited from interface net.minecraft.world.event.Vibrations
DEFAULT_FREQUENCY, FREQUENCIES, RESONATIONS
-
Constructor Summary
ModifierConstructorDescriptionprotected
SculkSensorBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) SculkSensorBlockEntity
(BlockPos pos, BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionint
protected void
readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.void
setLastVibrationFrequency
(int lastVibrationFrequency) protected void
writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setStackNbt, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/block/entity/SculkSensorBlockEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_38236
Lnet/minecraft/class_5704;field_38236:Lorg/slf4j/Logger;
official b
Ldrp;b:Lorg/slf4j/Logger;
-
listenerData
- Mappings:
Namespace Name Mixin selector named listenerData
Lnet/minecraft/block/entity/SculkSensorBlockEntity;listenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;
intermediary field_44615
Lnet/minecraft/class_5704;field_44615:Lnet/minecraft/class_8514$class_8515;
official c
Ldrp;c:Ldyi$a;
-
listener
- Mappings:
Namespace Name Mixin selector named listener
Lnet/minecraft/block/entity/SculkSensorBlockEntity;listener:Lnet/minecraft/world/event/Vibrations$VibrationListener;
intermediary field_28118
Lnet/minecraft/class_5704;field_28118:Lnet/minecraft/class_8514$class_8516;
official d
Ldrp;d:Ldyi$b;
-
callback
- Mappings:
Namespace Name Mixin selector named callback
Lnet/minecraft/block/entity/SculkSensorBlockEntity;callback:Lnet/minecraft/world/event/Vibrations$Callback;
intermediary field_43291
Lnet/minecraft/class_5704;field_43291:Lnet/minecraft/class_8514$class_5719;
official e
Ldrp;e:Ldyi$d;
-
lastVibrationFrequency
private int lastVibrationFrequency- Mappings:
Namespace Name Mixin selector named lastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;lastVibrationFrequency:I
intermediary field_28119
Lnet/minecraft/class_5704;field_28119:I
official h
Ldrp;h:I
-
-
Constructor Details
-
SculkSensorBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary <init>
Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <init>
Ldqh;<init>(Ldqj;Ljd;Ldtc;)V
-
SculkSensorBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/entity/SculkSensorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary <init>
Lnet/minecraft/class_5704;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <init>
Ldrp;<init>(Ljd;Ldtc;)V
-
-
Method Details
-
createCallback
- Mappings:
Namespace Name Mixin selector named createCallback
Lnet/minecraft/block/entity/SculkSensorBlockEntity;createCallback()Lnet/minecraft/world/event/Vibrations$Callback;
intermediary method_49831
Lnet/minecraft/class_5704;method_49831()Lnet/minecraft/class_8514$class_5719;
official b
Ldrp;b()Ldyi$d;
-
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.
nbt
might 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:
readNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official a
Ldqh;a(Lub;Ljo$a;)V
-
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:
writeNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official b
Ldqh;b(Lub;Ljo$a;)V
-
getVibrationListenerData
- Specified by:
getVibrationListenerData
in interfaceVibrations
- Mappings:
Namespace Name Mixin selector named getVibrationListenerData
Lnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;
intermediary method_51298
Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;
official gm
Ldyi;gm()Ldyi$a;
-
getVibrationCallback
- Specified by:
getVibrationCallback
in interfaceVibrations
- Mappings:
Namespace Name Mixin selector named getVibrationCallback
Lnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;
intermediary method_51299
Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;
official gn
Ldyi;gn()Ldyi$d;
-
getLastVibrationFrequency
public int getLastVibrationFrequency()- Mappings:
Namespace Name Mixin selector named getLastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
intermediary method_32912
Lnet/minecraft/class_5704;method_32912()I
official d
Ldrp;d()I
-
setLastVibrationFrequency
public void setLastVibrationFrequency(int lastVibrationFrequency) - Mappings:
Namespace Name Mixin selector named setLastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;setLastVibrationFrequency(I)V
intermediary method_44213
Lnet/minecraft/class_5704;method_44213(I)V
official a
Ldrp;a(I)V
-
getEventListener
- Specified by:
getEventListener
in interfaceGameEventListener.Holder<Vibrations.VibrationListener>
- Mappings:
Namespace Name Mixin selector named getEventListener
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getEventListener()Lnet/minecraft/world/event/Vibrations$VibrationListener;
intermediary method_32911
Lnet/minecraft/class_5704;method_32911()Lnet/minecraft/class_8514$class_8516;
official f
Ldrp;f()Ldyi$b;
-