Package net.minecraft.world.event
Interface Vibrations.Callback
- All Known Implementing Classes:
AllayEntity.VibrationCallback,CalibratedSculkSensorBlockEntity.Callback,SculkSensorBlockEntity.VibrationCallback,SculkShriekerBlockEntity.VibrationCallback,WardenEntity.VibrationCallback
- Enclosing interface:
Vibrations
public static interface Vibrations.Callback
- Mappings:
Namespace Name intermediary net/minecraft/class_8514$class_5719official dgr$dnamed net/minecraft/world/event/Vibrations$Callback
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, BlockPos pos, GameEvent event, @Nullable Entity sourceEntity, @Nullable 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.default booleancanAccept(GameEvent gameEvent, GameEvent.Emitter emitter) default intgetDelay(float distance) intgetRange()getTag()default voidonListen()default booleandefault boolean
-
Method Details
-
getRange
int getRange()- Mappings:
Namespace Name Mixin selector intermediary method_49797Lnet/minecraft/class_8514$class_5719;method_49797()Iofficial aLdgr$d;a()Inamed getRangeLnet/minecraft/world/event/Vibrations$Callback;getRange()I
-
getPositionSource
PositionSource getPositionSource()- Mappings:
Namespace Name Mixin selector intermediary method_51300Lnet/minecraft/class_8514$class_5719;method_51300()Lnet/minecraft/class_5716;official bLdgr$d;b()Ldgm;named getPositionSourceLnet/minecraft/world/event/Vibrations$Callback;getPositionSource()Lnet/minecraft/world/event/PositionSource;
-
accepts
Returns whether the callback wants to accept this event.- Mappings:
Namespace Name Mixin selector intermediary 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;)Zofficial aLdgr$d;a(Laif;Lgu;Ldgi;Ldgi$a;)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
void accept(ServerWorld world, BlockPos pos, GameEvent event, @Nullable @Nullable Entity sourceEntity, @Nullable @Nullable Entity entity, float distance) Accepts a game event after delay.- Mappings:
Namespace Name Mixin selector intermediary 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)Vofficial aLdgr$d;a(Laif;Lgu;Ldgi;Lbfh;Lbfh;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
- Mappings:
Namespace Name Mixin selector intermediary method_42210Lnet/minecraft/class_8514$class_5719;method_42210()Lnet/minecraft/class_6862;official cLdgr$d;c()Lanl;named getTagLnet/minecraft/world/event/Vibrations$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
-
triggersAvoidCriterion
default boolean triggersAvoidCriterion()- Mappings:
Namespace Name Mixin selector intermediary method_43695Lnet/minecraft/class_8514$class_5719;method_43695()Zofficial dLdgr$d;d()Znamed triggersAvoidCriterionLnet/minecraft/world/event/Vibrations$Callback;triggersAvoidCriterion()Z
-
requiresTickingChunksAround
default boolean requiresTickingChunksAround()- Mappings:
Namespace Name Mixin selector intermediary method_51363Lnet/minecraft/class_8514$class_5719;method_51363()Zofficial fLdgr$d;f()Znamed requiresTickingChunksAroundLnet/minecraft/world/event/Vibrations$Callback;requiresTickingChunksAround()Z
-
getDelay
default int getDelay(float distance) - Mappings:
Namespace Name Mixin selector intermediary method_51410Lnet/minecraft/class_8514$class_5719;method_51410(F)Iofficial aLdgr$d;a(F)Inamed getDelayLnet/minecraft/world/event/Vibrations$Callback;getDelay(F)I
-
canAccept
- Mappings:
Namespace Name Mixin selector intermediary method_42324Lnet/minecraft/class_8514$class_5719;method_42324(Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;)Zofficial aLdgr$d;a(Ldgi;Ldgi$a;)Znamed canAcceptLnet/minecraft/world/event/Vibrations$Callback;canAccept(Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
-
onListen
default void onListen()- Mappings:
Namespace Name Mixin selector intermediary method_42672Lnet/minecraft/class_8514$class_5719;method_42672()Vofficial eLdgr$d;e()Vnamed onListenLnet/minecraft/world/event/Vibrations$Callback;onListen()V
-