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 official dkc$d
intermediary net/minecraft/class_8514$class_5719
named net/minecraft/world/event/Vibrations$Callback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ServerWorld world, BlockPos pos, GameEvent event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.default boolean
canAccept
(GameEvent gameEvent, GameEvent.Emitter emitter) default int
getDelay
(float distance) int
getRange()
getTag()
default void
onListen()
default boolean
default boolean
-
Method Details
-
getRange
int getRange()- Mappings:
Namespace Name Mixin selector official a
Ldkc$d;a()I
intermediary method_49797
Lnet/minecraft/class_8514$class_5719;method_49797()I
named getRange
Lnet/minecraft/world/event/Vibrations$Callback;getRange()I
-
getPositionSource
PositionSource getPositionSource()- Mappings:
Namespace Name Mixin selector official b
Ldkc$d;b()Ldjx;
intermediary method_51300
Lnet/minecraft/class_8514$class_5719;method_51300()Lnet/minecraft/class_5716;
named getPositionSource
Lnet/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 official a
Ldkc$d;a(Lakq;Lgw;Ldjt;Ldjt$a;)Z
intermediary method_32970
Lnet/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;)Z
named accepts
Lnet/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 official a
Ldkc$d;a(Lakq;Lgw;Ldjt;Lbiq;Lbiq;F)V
intermediary method_32969
Lnet/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)V
named accept
Lnet/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 official c
Ldkc$d;c()Laqh;
intermediary method_42210
Lnet/minecraft/class_8514$class_5719;method_42210()Lnet/minecraft/class_6862;
named getTag
Lnet/minecraft/world/event/Vibrations$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
-
triggersAvoidCriterion
default boolean triggersAvoidCriterion()- Mappings:
Namespace Name Mixin selector official d
Ldkc$d;d()Z
intermediary method_43695
Lnet/minecraft/class_8514$class_5719;method_43695()Z
named triggersAvoidCriterion
Lnet/minecraft/world/event/Vibrations$Callback;triggersAvoidCriterion()Z
-
requiresTickingChunksAround
default boolean requiresTickingChunksAround()- Mappings:
Namespace Name Mixin selector official f
Ldkc$d;f()Z
intermediary method_51363
Lnet/minecraft/class_8514$class_5719;method_51363()Z
named requiresTickingChunksAround
Lnet/minecraft/world/event/Vibrations$Callback;requiresTickingChunksAround()Z
-
getDelay
default int getDelay(float distance) - Mappings:
Namespace Name Mixin selector official a
Ldkc$d;a(F)I
intermediary method_51410
Lnet/minecraft/class_8514$class_5719;method_51410(F)I
named getDelay
Lnet/minecraft/world/event/Vibrations$Callback;getDelay(F)I
-
canAccept
- Mappings:
Namespace Name Mixin selector official a
Ldkc$d;a(Ldjt;Ldjt$a;)Z
intermediary method_42324
Lnet/minecraft/class_8514$class_5719;method_42324(Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;)Z
named canAccept
Lnet/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 official e
Ldkc$d;e()V
intermediary method_42672
Lnet/minecraft/class_8514$class_5719;method_42672()V
named onListen
Lnet/minecraft/world/event/Vibrations$Callback;onListen()V
-