Package net.minecraft.entity.passive
Class AllayEntity.VibrationCallback
java.lang.Object
net.minecraft.entity.passive.AllayEntity.VibrationCallback
- All Implemented Interfaces:
Vibrations.Callback
- Enclosing class:
AllayEntity
- Mappings:
Namespace Name official bsn$bintermediary net/minecraft/class_7298$class_7524named net/minecraft/entity/passive/AllayEntity$VibrationCallback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, BlockPos pos, GameEvent event, Entity sourceEntity, Entity entity, float distance) Accepts a game event after delay.booleanaccepts(ServerWorld world, 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.Vibrations.Callback
canAccept, getDelay, onListen, requiresTickingChunksAround, triggersAvoidCriterion
-
Field Details
-
RANGE
private static final int RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official bLbsn$b;b:Iintermediary field_43190Lnet/minecraft/class_7298$class_7524;field_43190:Inamed RANGELnet/minecraft/entity/passive/AllayEntity$VibrationCallback;RANGE:I
-
positionSource
- Mappings:
Namespace Name Mixin selector official cLbsn$b;c:Ldgm;intermediary field_44597Lnet/minecraft/class_7298$class_7524;field_44597:Lnet/minecraft/class_5716;named positionSourceLnet/minecraft/entity/passive/AllayEntity$VibrationCallback;positionSource:Lnet/minecraft/world/event/PositionSource;
-
-
Constructor Details
-
VibrationCallback
VibrationCallback()
-
-
Method Details
-
getRange
public int getRange()- Specified by:
getRangein interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector official aLdgr$d;a()Iintermediary method_49797Lnet/minecraft/class_8514$class_5719;method_49797()Inamed getRangeLnet/minecraft/world/event/Vibrations$Callback;getRange()I
-
getPositionSource
- Specified by:
getPositionSourcein interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector official bLdgr$d;b()Ldgm;intermediary method_51300Lnet/minecraft/class_8514$class_5719;method_51300()Lnet/minecraft/class_5716;named getPositionSourceLnet/minecraft/world/event/Vibrations$Callback;getPositionSource()Lnet/minecraft/world/event/PositionSource;
-
accepts
Returns whether the callback wants to accept this event.- Specified by:
acceptsin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector official aLdgr$d;a(Laif;Lgu;Ldgi;Ldgi$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/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
-
accept
public void accept(ServerWorld world, BlockPos pos, GameEvent event, Entity sourceEntity, Entity entity, float distance) Accepts a game event after delay.- Specified by:
acceptin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector official aLdgr$d;a(Laif;Lgu;Ldgi;Lbfh;Lbfh;F)Vintermediary method_32969Lnet/minecraft/class_8514$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)Vnamed acceptLnet/minecraft/world/event/Vibrations$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)V
-
getTag
- Specified by:
getTagin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector official cLdgr$d;c()Lanl;intermediary method_42210Lnet/minecraft/class_8514$class_5719;method_42210()Lnet/minecraft/class_6862;named getTagLnet/minecraft/world/event/Vibrations$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
-