Class Vibrations.VibrationListener

java.lang.Object
net.minecraft.world.event.Vibrations.VibrationListener
All Implemented Interfaces:
GameEventListener
Enclosing interface:
Vibrations

public static class Vibrations.VibrationListener extends Object implements GameEventListener
Mappings:
Namespace Name
named net/minecraft/world/event/Vibrations$VibrationListener
intermediary net/minecraft/class_8514$class_8516
official dxg$b
  • Field Details

    • receiver

      private final Vibrations receiver
      Mappings:
      Namespace Name Mixin selector
      named receiver Lnet/minecraft/world/event/Vibrations$VibrationListener;receiver:Lnet/minecraft/world/event/Vibrations;
      intermediary field_44646 Lnet/minecraft/class_8514$class_8516;field_44646:Lnet/minecraft/class_8514;
      official a Ldxg$b;a:Ldxg;
  • Constructor Details

    • VibrationListener

      public VibrationListener(Vibrations receiver)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/event/Vibrations$VibrationListener;<init>(Lnet/minecraft/world/event/Vibrations;)V
      intermediary <init> Lnet/minecraft/class_8514$class_8516;<init>(Lnet/minecraft/class_8514;)V
      official <init> Ldxg$b;<init>(Ldxg;)V
  • Method Details

    • getPositionSource

      public PositionSource getPositionSource()
      Returns the position source of this listener.
      Specified by:
      getPositionSource in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      named getPositionSource Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
      intermediary method_32946 Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
      official a Ldwz;a()Ldxb;
    • getRange

      public int getRange()
      Returns the range, in blocks, of the listener.
      Specified by:
      getRange in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      named getRange Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
      intermediary method_32948 Lnet/minecraft/class_5714;method_32948()I
      official b Ldwz;b()I
    • listen

      public boolean listen(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos)
      Listens to an incoming game event.
      Specified by:
      listen in interface GameEventListener
      Returns:
      true if the game event has been accepted by this listener
      Mappings:
      Namespace Name Mixin selector
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Z
      official a Ldwz;a(Larf;Lji;Ldwx$a;Levt;)Z
    • forceListen

      public void forceListen(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos)
      Mappings:
      Namespace Name Mixin selector
      named forceListen Lnet/minecraft/world/event/Vibrations$VibrationListener;forceListen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_51403 Lnet/minecraft/class_8514$class_8516;method_51403(Lnet/minecraft/class_3218;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)V
      official b Ldxg$b;b(Larf;Lji;Ldwx$a;Levt;)V
    • listen

      private void listen(ServerWorld world, Vibrations.ListenerData listenerData, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos)
      Mappings:
      Namespace Name Mixin selector
      named listen Lnet/minecraft/world/event/Vibrations$VibrationListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/Vibrations$ListenerData;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_51399 Lnet/minecraft/class_8514$class_8516;method_51399(Lnet/minecraft/class_3218;Lnet/minecraft/class_8514$class_8515;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V
      official a Ldxg$b;a(Larf;Ldxg$a;Lji;Ldwx$a;Levt;Levt;)V
    • getTravelDelay

      public static float getTravelDelay(BlockPos emitterPos, BlockPos listenerPos)
      Mappings:
      Namespace Name Mixin selector
      named getTravelDelay Lnet/minecraft/world/event/Vibrations$VibrationListener;getTravelDelay(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)F
      intermediary method_51402 Lnet/minecraft/class_8514$class_8516;method_51402(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)F
      official a Ldxg$b;a(Liz;Liz;)F
    • isOccluded

      private static boolean isOccluded(World world, Vec3d emitterPos, Vec3d listenerPos)
      Mappings:
      Namespace Name Mixin selector
      named isOccluded Lnet/minecraft/world/event/Vibrations$VibrationListener;isOccluded(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
      intermediary method_51400 Lnet/minecraft/class_8514$class_8516;method_51400(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
      official a Ldxg$b;a(Ldca;Levt;Levt;)Z