Package net.minecraft.block.entity
Class CalibratedSculkSensorBlockEntity.Callback
java.lang.Object
net.minecraft.block.entity.SculkSensorBlockEntity.Callback
net.minecraft.block.entity.CalibratedSculkSensorBlockEntity.Callback
- All Implemented Interfaces:
class_8514.Callback
- Enclosing class:
CalibratedSculkSensorBlockEntity
- Mappings:
Namespace Name official czi$aintermediary net/minecraft/class_8239$class_8240named net/minecraft/block/entity/CalibratedSculkSensorBlockEntity$Callback
-
Field Summary
Fields inherited from class net.minecraft.block.entity.SculkSensorBlockEntity.Callback
field_43292, field_44617 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(ServerWorld world, BlockPos blockPos, GameEvent gameEvent, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private intgetCalibrationFrequency(World world, BlockPos pos, BlockState state) intgetRange()Methods inherited from class net.minecraft.block.entity.SculkSensorBlockEntity.Callback
accept, method_51300, method_51363, onListen, triggersAvoidCriterionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.class_8514.Callback
canAccept, getTag, method_51410
-
Constructor Details
-
Callback
-
-
Method Details
-
getRange
public int getRange()- Specified by:
getRangein interfaceclass_8514.Callback- Overrides:
getRangein classSculkSensorBlockEntity.Callback- Mappings:
Namespace Name Mixin selector official aLdgj$d;a()Iintermediary method_49797Lnet/minecraft/class_8514$class_5719;method_49797()Inamed getRangeLnet/minecraft/class_8514$Callback;getRange()I
-
accepts
public boolean accepts(ServerWorld world, BlockPos blockPos, GameEvent gameEvent, @Nullable GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
acceptsin interfaceclass_8514.Callback- Overrides:
acceptsin classSculkSensorBlockEntity.Callback- Mappings:
Namespace Name Mixin selector official aLdgj$d;a(Laid;Lgu;Ldga;Ldga$a;)Zintermediary method_32970Lnet/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;)Znamed acceptsLnet/minecraft/class_8514$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 aLczi$a;a(Lcmd;Lgu;Ldbr;)Iintermediary method_49832Lnet/minecraft/class_8239$class_8240;method_49832(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Inamed getCalibrationFrequencyLnet/minecraft/block/entity/CalibratedSculkSensorBlockEntity$Callback;getCalibrationFrequency(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
-