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
- Mappings:
Namespace Name official cmq
intermediary net/minecraft/class_5704
named net/minecraft/block/entity/SculkSensorBlockEntity
-
Field Summary
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(World world, GameEventListener listener, GameEvent event, int distance) Accepts a game event after delay.boolean
accepts
(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event.int
static int
getPower
(int distance, int range) void
readNbt
(NbtCompound nbt) protected void
writeNbt
(NbtCompound nbt) 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
-
listener
- Mappings:
Namespace Name Mixin selector official a
Lcmq;a:Lcsf;
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
Lcmq;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>
Lcmq;<init>(Lgh;Lcnv;)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
-
readNbt
- Overrides:
readNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcls;a(Lob;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Overrides:
writeNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcls;b(Lob;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getEventListener
- Mappings:
Namespace Name Mixin selector official c
Lcmq;c()Lcsf;
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 d
Lcmq;d()I
intermediary method_32912
Lnet/minecraft/class_5704;method_32912()I
named getLastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
-
accepts
public boolean accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity) Returns whether the callback wants to accept this event.- Specified by:
accepts
in interfaceSculkSensorListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lcsf$a;a(Lbzw;Lcsa;Lgh;Lcry;Lawm;)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 accepts
Lnet/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:
accept
in interfaceSculkSensorListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lcsf$a;a(Lbzw;Lcsa;Lcry;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 accept
Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;accept(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/event/GameEvent;I)V
-
getPower
public static int getPower(int distance, int range) - Mappings:
Namespace Name Mixin selector official b
Lcmq;b(II)I
intermediary method_32910
Lnet/minecraft/class_5704;method_32910(II)I
named getPower
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getPower(II)I
-