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 - ecd$d
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.booleanaccepts(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.default booleancanAccept(RegistryEntry<GameEvent> gameEvent, GameEvent.Emitter emitter) default intgetDelay(float distance) intgetRange()getTag()default voidonListen()default booleandefault boolean
- 
Method Details- 
getRangeint 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- Lecd$d;a()I
 
- 
getPositionSourcePositionSource 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- Lecd$d;b()Leby;
 
- 
acceptsboolean 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- Lecd$d;a(Lard;Lji;Ljr;Lebu$a;)Z
 
- 
acceptvoid 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- Lecd$d;a(Lard;Lji;Ljr;Lbum;Lbum;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- Lecd$d;c()Laxf;
 
- 
triggersAvoidCriteriondefault 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- Lecd$d;d()Z
 
- 
requiresTickingChunksArounddefault 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- Lecd$d;f()Z
 
- 
getDelaydefault 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- Lecd$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- Lecd$d;a(Ljr;Lebu$a;)Z
 
- 
onListendefault 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- Lecd$d;e()V
 
 
-