Package net.minecraft.block.entity
Class SculkSensorBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkSensorBlockEntity
- All Implemented Interfaces:
VibrationListener.Callback
- Mappings:
Namespace Name official ctk
intermediary net/minecraft/class_5704
named net/minecraft/block/entity/SculkSensorBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private int
private VibrationListener
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.int
static int
getPower
(float distance, int range) void
onListen()
void
readNbt
(NbtCompound nbt) void
setLastVibrationFrequency
(int lastVibrationFrequency) boolean
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.event.listener.VibrationListener.Callback
canAccept, getTag
-
Field Details
-
field_38236
private static final org.slf4j.Logger field_38236- Mappings:
Namespace Name Mixin selector official a
Lctk;a:Lorg/slf4j/Logger;
intermediary field_38236
Lnet/minecraft/class_5704;field_38236:Lorg/slf4j/Logger;
named field_38236
Lnet/minecraft/block/entity/SculkSensorBlockEntity;field_38236:Lorg/slf4j/Logger;
-
listener
- Mappings:
Namespace Name Mixin selector official b
Lctk;b:Lczd;
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/VibrationListener;
-
lastVibrationFrequency
private int lastVibrationFrequency- Mappings:
Namespace Name Mixin selector official c
Lctk;c: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>
Lctk;<init>(Lgt;Lcur;)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
Lcsl;a(Lpj;)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
Lcsl;b(Lpj;)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
Lctk;c()Lczd;
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/VibrationListener;
-
getLastVibrationFrequency
public int getLastVibrationFrequency()- Mappings:
Namespace Name Mixin selector official d
Lctk;d()I
intermediary method_32912
Lnet/minecraft/class_5704;method_32912()I
named getLastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
-
triggersAvoidCriterion
public boolean triggersAvoidCriterion()- Specified by:
triggersAvoidCriterion
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official K_
Lczd$b;K_()Z
intermediary method_43695
Lnet/minecraft/class_5718$class_5719;method_43695()Z
named triggersAvoidCriterion
Lnet/minecraft/world/event/listener/VibrationListener$Callback;triggersAvoidCriterion()Z
-
accepts
public boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
accepts
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lczd$b;a(Lafo;Lcyz;Lgt;Lcyx;Lcyx$a;)Z
intermediary method_32970
Lnet/minecraft/class_5718$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;)Z
named accepts
Lnet/minecraft/world/event/listener/VibrationListener$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
-
accept
public void accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity, @Nullable @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.- Specified by:
accept
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lczd$b;a(Lafo;Lcyz;Lgt;Lcyx;Lbaq;Lbaq;F)V
intermediary method_32969
Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)V
named accept
Lnet/minecraft/world/event/listener/VibrationListener$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)V
-
onListen
public void onListen()- Specified by:
onListen
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official f
Lczd$b;f()V
intermediary method_42672
Lnet/minecraft/class_5718$class_5719;method_42672()V
named onListen
Lnet/minecraft/world/event/listener/VibrationListener$Callback;onListen()V
-
getPower
public static int getPower(float distance, int range) - Mappings:
Namespace Name Mixin selector official a
Lctk;a(FI)I
intermediary method_32910
Lnet/minecraft/class_5704;method_32910(FI)I
named getPower
Lnet/minecraft/block/entity/SculkSensorBlockEntity;getPower(FI)I
-
setLastVibrationFrequency
public void setLastVibrationFrequency(int lastVibrationFrequency) - Mappings:
Namespace Name Mixin selector official a
Lctk;a(I)V
intermediary method_44213
Lnet/minecraft/class_5704;method_44213(I)V
named setLastVibrationFrequency
Lnet/minecraft/block/entity/SculkSensorBlockEntity;setLastVibrationFrequency(I)V
-