Package net.minecraft.block.entity
Class SculkSensorBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkSensorBlockEntity
- All Implemented Interfaces:
SculkSensorListener.Callback
public class SculkSensorBlockEntity extends BlockEntity implements SculkSensorListener.Callback
- Mappings:
Namespace Name official cgqintermediary net/minecraft/class_5704named net/minecraft/block/entity/SculkSensorBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private intlastVibrationFrequencyprivate SculkSensorListenerlistenerFields 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 voidaccept(World world, GameEventListener listener, GameEvent event, int distance)Accepts a game event after delay.booleanaccepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity)Returns whether the callback wants to accept this event.voidfromTag(CompoundTag tag)SculkSensorListenergetEventListener()intgetLastVibrationFrequency()static intmethod_32910(int int2, int range)CompoundTagtoTag(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 aLcgq;a:Lcmb;intermediary field_28118Lnet/minecraft/class_5704;field_28118:Lnet/minecraft/class_5718;named listenerLnet/minecraft/block/entity/SculkSensorBlockEntity;listener:Lnet/minecraft/world/event/listener/SculkSensorListener;
-
lastVibrationFrequency
private int lastVibrationFrequency- Mappings:
Namespace Name Mixin selector official bLcgq;b:Iintermediary field_28119Lnet/minecraft/class_5704;field_28119:Inamed lastVibrationFrequencyLnet/minecraft/block/entity/SculkSensorBlockEntity;lastVibrationFrequency:I
-
-
Constructor Details
-
SculkSensorBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcgq;<init>(Lfx;Lchu;)Vintermediary <init>Lnet/minecraft/class_5704;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/SculkSensorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
fromTag
- Overrides:
fromTagin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcfs;a(Lmq;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed fromTagLnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTagin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcfs;b(Lmq;)Lmq;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named toTagLnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getEventListener
- Mappings:
Namespace Name Mixin selector official dLcgq;d()Lcmb;intermediary method_32911Lnet/minecraft/class_5704;method_32911()Lnet/minecraft/class_5718;named getEventListenerLnet/minecraft/block/entity/SculkSensorBlockEntity;getEventListener()Lnet/minecraft/world/event/listener/SculkSensorListener;
-
getLastVibrationFrequency
public int getLastVibrationFrequency()- Mappings:
Namespace Name Mixin selector official fLcgq;f()Iintermediary method_32912Lnet/minecraft/class_5704;method_32912()Inamed getLastVibrationFrequencyLnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
-
accepts
public boolean accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity)Returns whether the callback wants to accept this event.- Specified by:
acceptsin interfaceSculkSensorListener.Callback- Mappings:
Namespace Name Mixin selector official aLcmb$a;a(Lbtw;Lclw;Lfx;Lclu;Laqw;)Zintermediary method_32970Lnet/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;)Znamed acceptsLnet/minecraft/world/event/listener/SculkSensorListener$Callback;accepts(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
-
accept
Accepts a game event after delay.- Specified by:
acceptin interfaceSculkSensorListener.Callback- Mappings:
Namespace Name Mixin selector official aLcmb$a;a(Lbtw;Lclw;Lclu;I)Vintermediary method_32969Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_1937;Lnet/minecraft/class_5714;Lnet/minecraft/class_5712;I)Vnamed acceptLnet/minecraft/world/event/listener/SculkSensorListener$Callback;accept(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 bLcgq;b(II)Iintermediary method_32910Lnet/minecraft/class_5704;method_32910(II)Inamed method_32910Lnet/minecraft/block/entity/SculkSensorBlockEntity;method_32910(II)I
-