Package net.minecraft.entity.passive
Class AllayEntity.VibrationListenerCallback
java.lang.Object
net.minecraft.entity.passive.AllayEntity.VibrationListenerCallback
- All Implemented Interfaces:
VibrationListener.Callback
- Enclosing class:
AllayEntity
private class AllayEntity.VibrationListenerCallback
extends Object
implements VibrationListener.Callback
- Mappings:
Namespace Name official bsc$aintermediary net/minecraft/class_7298$class_7524named net/minecraft/entity/passive/AllayEntity$VibrationListenerCallback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity, 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.intgetRange()getTag()Methods 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, onListen, triggersAvoidCriterion
-
Field Details
-
RANGE
private static final int RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official bLbsc$a;b:Iintermediary field_43190Lnet/minecraft/class_7298$class_7524;field_43190:Inamed RANGELnet/minecraft/entity/passive/AllayEntity$VibrationListenerCallback;RANGE:I
-
-
Constructor Details
-
VibrationListenerCallback
VibrationListenerCallback()
-
-
Method Details
-
accepts
public boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, 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, Entity entity, 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
-
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
-
getTag
- Specified by:
getTagin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official bLdge$a;b()Lanh;intermediary method_42210Lnet/minecraft/class_5718$class_5719;method_42210()Lnet/minecraft/class_6862;named getTagLnet/minecraft/world/event/listener/VibrationListener$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
-