Package net.minecraft.block.entity
Class SculkSensorBlockEntity.Callback
java.lang.Object
net.minecraft.block.entity.SculkSensorBlockEntity.Callback
- All Implemented Interfaces:
VibrationListener.Callback
- Direct Known Subclasses:
CalibratedSculkSensorBlockEntity.Callback
- Enclosing class:
SculkSensorBlockEntity
public static class SculkSensorBlockEntity.Callback
extends Object
implements VibrationListener.Callback
- Mappings:
Namespace Name official dey$a
intermediary net/minecraft/class_5704$class_8241
named net/minecraft/block/entity/SculkSensorBlockEntity$Callback
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.static int
getPower
(float distance, int range) int
getRange()
void
onListen()
boolean
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_43292
public static final int field_43292- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldey$a;a:I
intermediary field_43292
Lnet/minecraft/class_5704$class_8241;field_43292:I
named field_43292
Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;field_43292:I
-
blockEntity
- Mappings:
Namespace Name Mixin selector official b
Ldey$a;b:Ldey;
intermediary field_43293
Lnet/minecraft/class_5704$class_8241;field_43293:Lnet/minecraft/class_5704;
named blockEntity
Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;blockEntity:Lnet/minecraft/block/entity/SculkSensorBlockEntity;
-
-
Constructor Details
-
Callback
- Mappings:
Namespace Name Mixin selector official <init>
Ldey$a;<init>(Ldey;)V
intermediary <init>
Lnet/minecraft/class_5704$class_8241;<init>(Lnet/minecraft/class_5704;)V
named <init>
Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;<init>(Lnet/minecraft/block/entity/SculkSensorBlockEntity;)V
-
-
Method Details
-
triggersAvoidCriterion
public boolean triggersAvoidCriterion()- Specified by:
triggersAvoidCriterion
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official w
Ldkz$a;w()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
Ldkz$a;a(Laik;Ldkt;Lgt;Ldkr;Ldkr$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
Ldkz$a;a(Laik;Ldkt;Lgt;Ldkr;Lbir;Lbir;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 c
Ldkz$a;c()V
intermediary method_42672
Lnet/minecraft/class_5718$class_5719;method_42672()V
named onListen
Lnet/minecraft/world/event/listener/VibrationListener$Callback;onListen()V
-
getRange
public int getRange()- Specified by:
getRange
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Ldkz$a;a()I
intermediary method_49797
Lnet/minecraft/class_5718$class_5719;method_49797()I
named getRange
Lnet/minecraft/world/event/listener/VibrationListener$Callback;getRange()I
-
getPower
public static int getPower(float distance, int range) - Mappings:
Namespace Name Mixin selector official a
Ldey$a;a(FI)I
intermediary method_49833
Lnet/minecraft/class_5704$class_8241;method_49833(FI)I
named getPower
Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;getPower(FI)I
-