Package net.minecraft.block.entity
Class CalibratedSculkSensorBlockEntity.Callback
java.lang.Object
net.minecraft.block.entity.SculkSensorBlockEntity.VibrationCallback
net.minecraft.block.entity.CalibratedSculkSensorBlockEntity.Callback
- All Implemented Interfaces:
Vibrations.Callback
- Enclosing class:
CalibratedSculkSensorBlockEntity
protected class CalibratedSculkSensorBlockEntity.Callback
extends SculkSensorBlockEntity.VibrationCallback
- Mappings:
Namespace Name official dha$a
intermediary net/minecraft/class_8239$class_8240
named net/minecraft/block/entity/CalibratedSculkSensorBlockEntity$Callback
-
Field Summary
Fields inherited from class net.minecraft.block.entity.SculkSensorBlockEntity.VibrationCallback
pos, RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private int
getCalibrationFrequency
(World world, BlockPos pos, BlockState state) int
getRange()
Methods inherited from class net.minecraft.block.entity.SculkSensorBlockEntity.VibrationCallback
accept, getPositionSource, onListen, requiresTickingChunksAround, triggersAvoidCriterion
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.Vibrations.Callback
canAccept, getDelay, getTag
-
Constructor Details
-
Callback
- Mappings:
Namespace Name Mixin selector official <init>
Ldha$a;<init>(Ldha;Lhx;)V
intermediary <init>
Lnet/minecraft/class_8239$class_8240;<init>(Lnet/minecraft/class_8239;Lnet/minecraft/class_2338;)V
named <init>
Lnet/minecraft/block/entity/CalibratedSculkSensorBlockEntity$Callback;<init>(Lnet/minecraft/block/entity/CalibratedSculkSensorBlockEntity;Lnet/minecraft/util/math/BlockPos;)V
-
-
Method Details
-
getRange
public int getRange()- Specified by:
getRange
in interfaceVibrations.Callback
- Overrides:
getRange
in classSculkSensorBlockEntity.VibrationCallback
- Mappings:
Namespace Name Mixin selector official a
Ldoa$d;a()I
intermediary method_49797
Lnet/minecraft/class_8514$class_5719;method_49797()I
named getRange
Lnet/minecraft/world/event/Vibrations$Callback;getRange()I
-
accepts
public boolean accepts(ServerWorld world, BlockPos pos, GameEvent event, @Nullable GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
accepts
in interfaceVibrations.Callback
- Overrides:
accepts
in classSculkSensorBlockEntity.VibrationCallback
- Mappings:
Namespace Name Mixin selector official a
Ldoa$d;a(Land;Lhx;Ldnr;Ldnr$a;)Z
intermediary method_32970
Lnet/minecraft/class_8514$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;)Z
named accepts
Lnet/minecraft/world/event/Vibrations$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
-
getCalibrationFrequency
- Mappings:
Namespace Name Mixin selector official a
Ldha$a;a(Lctp;Lhx;Ldjh;)I
intermediary method_49832
Lnet/minecraft/class_8239$class_8240;method_49832(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)I
named getCalibrationFrequency
Lnet/minecraft/block/entity/CalibratedSculkSensorBlockEntity$Callback;getCalibrationFrequency(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
-