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 cjn
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)
writeNbt(NbtCompound nbt)
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, toUpdatePacket
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official a
Lcjn;a:Lcpc;
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
Lcjn;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>
Lcjn;<init>(Lgg;Lcks;)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
Lcip;a(Lna;)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
Lcip;b(Lna;)Lna;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
getEventListener
- Mappings:
Namespace Name Mixin selector official d
Lcjn;d()Lcpc;
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
Lcjn;f()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
Lcpc$a;a(Lbwp;Lcox;Lgg;Lcov;Latf;)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
Lcpc$a;a(Lbwp;Lcox;Lcov;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
Lcjn;b(II)I
intermediary method_32910
Lnet/minecraft/class_5704;method_32910(II)I
named getPower
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getPower(II)I
-