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
official doa$b
intermediary net/minecraft/class_8514$class_8516
named net/minecraft/world/event/Vibrations$VibrationListener
  • Field Details

    • receiver

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

    • VibrationListener

      public VibrationListener(Vibrations receiver)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldoa$b;<init>(Ldoa;)V
      intermediary <init> Lnet/minecraft/class_8514$class_8516;<init>(Lnet/minecraft/class_8514;)V
      named <init> Lnet/minecraft/world/event/Vibrations$VibrationListener;<init>(Lnet/minecraft/world/event/Vibrations;)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
      official a Ldnt;a()Ldnv;
      intermediary method_32946 Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
      named getPositionSource Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
    • getRange

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

      public boolean listen(ServerWorld world, 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
      official a Ldnt;a(Land;Ldnr;Ldnr$a;Lelt;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Z
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)Z
    • forceListen

      public void forceListen(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos)
      Mappings:
      Namespace Name Mixin selector
      official b Ldoa$b;b(Land;Ldnr;Ldnr$a;Lelt;)V
      intermediary method_51403 Lnet/minecraft/class_8514$class_8516;method_51403(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)V
      named forceListen Lnet/minecraft/world/event/Vibrations$VibrationListener;forceListen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)V
    • listen

      private void listen(ServerWorld world, Vibrations.ListenerData listenerData, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoa$b;a(Land;Ldoa$a;Ldnr;Ldnr$a;Lelt;Lelt;)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_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V
      named listen Lnet/minecraft/world/event/Vibrations$VibrationListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/Vibrations$ListenerData;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
    • getTravelDelay

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

      private static boolean isOccluded(World world, Vec3d emitterPos, Vec3d listenerPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldoa$b;a(Lctp;Lelt;Lelt;)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
      named isOccluded Lnet/minecraft/world/event/Vibrations$VibrationListener;isOccluded(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z