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 dad$aintermediary net/minecraft/class_5704$class_8241named net/minecraft/block/entity/SculkSensorBlockEntity$Callback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.booleanaccepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.static intgetPower(float distance, int range) intgetRange()voidonListen()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 aLdad$a;a:Iintermediary field_43292Lnet/minecraft/class_5704$class_8241;field_43292:Inamed field_43292Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;field_43292:I
-
blockEntity
- Mappings:
Namespace Name Mixin selector official bLdad$a;b:Ldad;intermediary field_43293Lnet/minecraft/class_5704$class_8241;field_43293:Lnet/minecraft/class_5704;named blockEntityLnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;blockEntity:Lnet/minecraft/block/entity/SculkSensorBlockEntity;
-
-
Constructor Details
-
Callback
- Mappings:
Namespace Name Mixin selector official <init>Ldad$a;<init>(Ldad;)Vintermediary <init>Lnet/minecraft/class_5704$class_8241;<init>(Lnet/minecraft/class_5704;)Vnamed <init>Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;<init>(Lnet/minecraft/block/entity/SculkSensorBlockEntity;)V
-
-
Method Details
-
triggersAvoidCriterion
public boolean triggersAvoidCriterion()- Specified by:
triggersAvoidCriterionin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official at_Ldge$a;at_()Zintermediary method_43695Lnet/minecraft/class_5718$class_5719;method_43695()Znamed triggersAvoidCriterionLnet/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:
acceptsin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official aLdge$a;a(Laib;Ldfy;Lgt;Ldfw;Ldfw$a;)Zintermediary method_32970Lnet/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;)Znamed acceptsLnet/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:
acceptin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official aLdge$a;a(Laib;Ldfy;Lgt;Ldfw;Lbew;Lbew;F)Vintermediary method_32969Lnet/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)Vnamed acceptLnet/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:
onListenin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official cLdge$a;c()Vintermediary method_42672Lnet/minecraft/class_5718$class_5719;method_42672()Vnamed onListenLnet/minecraft/world/event/listener/VibrationListener$Callback;onListen()V
-
getRange
public int getRange()- Specified by:
getRangein interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official aLdge$a;a()Iintermediary method_49797Lnet/minecraft/class_5718$class_5719;method_49797()Inamed getRangeLnet/minecraft/world/event/listener/VibrationListener$Callback;getRange()I
-
getPower
public static int getPower(float distance, int range) - Mappings:
Namespace Name Mixin selector official aLdad$a;a(FI)Iintermediary method_49833Lnet/minecraft/class_5704$class_8241;method_49833(FI)Inamed getPowerLnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;getPower(FI)I
-