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 named net/minecraft/world/event/Vibrations$Callback
intermediary net/minecraft/class_8514$class_5719
official dyi$d
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.default boolean
canAccept
(RegistryEntry<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 named getRange
Lnet/minecraft/world/event/Vibrations$Callback;getRange()I
intermediary method_49797
Lnet/minecraft/class_8514$class_5719;method_49797()I
official a
Ldyi$d;a()I
-
getPositionSource
PositionSource getPositionSource()- Mappings:
Namespace Name Mixin selector named getPositionSource
Lnet/minecraft/world/event/Vibrations$Callback;getPositionSource()Lnet/minecraft/world/event/PositionSource;
intermediary method_51300
Lnet/minecraft/class_8514$class_5719;method_51300()Lnet/minecraft/class_5716;
official b
Ldyi$d;b()Ldyd;
-
accepts
boolean accepts(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Mappings:
Namespace Name Mixin selector named accepts
Lnet/minecraft/world/event/Vibrations$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
intermediary method_32970
Lnet/minecraft/class_8514$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;)Z
official a
Ldyi$d;a(Laqu;Ljd;Ljm;Ldxz$a;)Z
-
accept
void accept(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable @Nullable Entity sourceEntity, @Nullable @Nullable Entity entity, float distance) Accepts a game event after delay.- Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/world/event/Vibrations$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)V
intermediary method_32969
Lnet/minecraft/class_8514$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)V
official a
Ldyi$d;a(Laqu;Ljd;Ljm;Lbsr;Lbsr;F)V
-
getTag
- Mappings:
Namespace Name Mixin selector named getTag
Lnet/minecraft/world/event/Vibrations$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
intermediary method_42210
Lnet/minecraft/class_8514$class_5719;method_42210()Lnet/minecraft/class_6862;
official c
Ldyi$d;c()Lawu;
-
triggersAvoidCriterion
default boolean triggersAvoidCriterion()- Mappings:
Namespace Name Mixin selector named triggersAvoidCriterion
Lnet/minecraft/world/event/Vibrations$Callback;triggersAvoidCriterion()Z
intermediary method_43695
Lnet/minecraft/class_8514$class_5719;method_43695()Z
official d
Ldyi$d;d()Z
-
requiresTickingChunksAround
default boolean requiresTickingChunksAround()- Mappings:
Namespace Name Mixin selector named requiresTickingChunksAround
Lnet/minecraft/world/event/Vibrations$Callback;requiresTickingChunksAround()Z
intermediary method_51363
Lnet/minecraft/class_8514$class_5719;method_51363()Z
official f
Ldyi$d;f()Z
-
getDelay
default int getDelay(float distance) - Mappings:
Namespace Name Mixin selector named getDelay
Lnet/minecraft/world/event/Vibrations$Callback;getDelay(F)I
intermediary method_51410
Lnet/minecraft/class_8514$class_5719;method_51410(F)I
official a
Ldyi$d;a(F)I
-
canAccept
- Mappings:
Namespace Name Mixin selector named canAccept
Lnet/minecraft/world/event/Vibrations$Callback;canAccept(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
intermediary method_42324
Lnet/minecraft/class_8514$class_5719;method_42324(Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;)Z
official a
Ldyi$d;a(Ljm;Ldxz$a;)Z
-
onListen
default void onListen()- Mappings:
Namespace Name Mixin selector named onListen
Lnet/minecraft/world/event/Vibrations$Callback;onListen()V
intermediary method_42672
Lnet/minecraft/class_8514$class_5719;method_42672()V
official e
Ldyi$d;e()V
-