Package net.minecraft.block.entity
Class SculkSensorBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkSensorBlockEntity
- All Implemented Interfaces:
SculkSensorListener.Listener
public class SculkSensorBlockEntity extends BlockEntity implements SculkSensorListener.Listener
- Mappings:
Namespace Name official cgp
intermediary net/minecraft/class_5704
named net/minecraft/block/entity/SculkSensorBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private int
lastVibrationFrequency
private SculkSensorListener
listener
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description SculkSensorBlockEntity(BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description void
fromTag(CompoundTag tag)
SculkSensorListener
getEventListener()
int
getLastVibrationFrequency()
void
listen(World world, GameEventListener listener, GameEvent event, int int2)
static int
method_32910(int int2, int range)
boolean
shouldListen(World world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity)
CompoundTag
toTag(CompoundTag tag)
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toUpdatePacket
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official a
Lcgp;a:Lcma;
intermediary field_28118
Lnet/minecraft/class_5704;field_28118:Lnet/minecraft/class_5718;
named listener
Lnet/minecraft/block/entity/SculkSensorBlockEntity;listener:Lnet/minecraft/world/event/listener/SculkSensorListener;
-
lastVibrationFrequency
private int lastVibrationFrequency- Mappings:
Namespace Name Mixin selector official b
Lcgp;b:I
intermediary field_28119
Lnet/minecraft/class_5704;field_28119:I
named lastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;lastVibrationFrequency:I
-
-
Constructor Details
-
SculkSensorBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcgp;<init>(Lfx;Lcht;)V
intermediary <init>
Lnet/minecraft/class_5704;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/SculkSensorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
fromTag
- Overrides:
fromTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getEventListener
- Mappings:
Namespace Name Mixin selector official d
Lcgp;d()Lcma;
intermediary method_32911
Lnet/minecraft/class_5704;method_32911()Lnet/minecraft/class_5718;
named getEventListener
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getEventListener()Lnet/minecraft/world/event/listener/SculkSensorListener;
-
getLastVibrationFrequency
public int getLastVibrationFrequency()- Mappings:
Namespace Name Mixin selector official f
Lcgp;f()I
intermediary method_32912
Lnet/minecraft/class_5704;method_32912()I
named getLastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
-
shouldListen
public boolean shouldListen(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity)- Specified by:
shouldListen
in interfaceSculkSensorListener.Listener
- Mappings:
Namespace Name Mixin selector official a
Lcma$a;a(Lbtv;Lclv;Lfx;Lclt;Laqv;)Z
intermediary method_32970
Lnet/minecraft/class_5718$class_5719;method_32970(Lnet/minecraft/class_1937;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)Z
named shouldListen
Lnet/minecraft/world/event/listener/SculkSensorListener$Listener;shouldListen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)Z
-
listen
- Specified by:
listen
in interfaceSculkSensorListener.Listener
- Mappings:
Namespace Name Mixin selector official a
Lcma$a;a(Lbtv;Lclv;Lclt;I)V
intermediary method_32969
Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_1937;Lnet/minecraft/class_5714;Lnet/minecraft/class_5712;I)V
named listen
Lnet/minecraft/world/event/listener/SculkSensorListener$Listener;listen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/event/GameEvent;I)V
-
method_32910
public static int method_32910(int int2, int range)- Mappings:
Namespace Name Mixin selector official b
Lcgp;b(II)I
intermediary method_32910
Lnet/minecraft/class_5704;method_32910(II)I
named method_32910
Lnet/minecraft/block/entity/SculkSensorBlockEntity;method_32910(II)I
-