Class GameEventDebugRenderer.Listener

java.lang.Object
net.minecraft.client.render.debug.GameEventDebugRenderer.Listener
All Implemented Interfaces:
GameEventListener
Enclosing class:
GameEventDebugRenderer

@Environment(CLIENT) private static class GameEventDebugRenderer.Listener extends Object implements GameEventListener
Mappings:
Namespace Name
official esp$b
intermediary net/minecraft/class_5739$class_5741
named net/minecraft/client/render/debug/GameEventDebugRenderer$Listener
  • Field Details

    • positionSource

      public final PositionSource positionSource
      Mappings:
      Namespace Name Mixin selector
      official a Lesp$b;a:Lcsk;
      intermediary field_28261 Lnet/minecraft/class_5739$class_5741;field_28261:Lnet/minecraft/class_5716;
      named positionSource Lnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;positionSource:Lnet/minecraft/world/event/PositionSource;
    • range

      public final int range
      Mappings:
      Namespace Name Mixin selector
      official b Lesp$b;b:I
      intermediary field_28262 Lnet/minecraft/class_5739$class_5741;field_28262:I
      named range Lnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;range:I
  • Constructor Details

    • Listener

      public Listener(PositionSource positionSource, int range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesp$b;<init>(Lcsk;I)V
      intermediary <init> Lnet/minecraft/class_5739$class_5741;<init>(Lnet/minecraft/class_5716;I)V
      named <init> Lnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;<init>(Lnet/minecraft/world/event/PositionSource;I)V
  • Method Details

    • isTooFar

      public boolean isTooFar(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lesp$b;a(Lcad;Lgh;)Z
      intermediary method_33095 Lnet/minecraft/class_5739$class_5741;method_33095(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
      named isTooFar Lnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;isTooFar(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • getPos

      public Optional<BlockPos> getPos(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lesp$b;a(Lcad;)Ljava/util/Optional;
      intermediary method_33094 Lnet/minecraft/class_5739$class_5741;method_33094(Lnet/minecraft/class_1937;)Ljava/util/Optional;
      named getPos Lnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
    • getPositionSource

      public PositionSource getPositionSource()
      Returns the position source of this listener.
      Specified by:
      getPositionSource in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      official a Lcsi;a()Lcsk;
      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 Lcsi;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(World world, GameEvent event, @Nullable @Nullable Entity entity, BlockPos pos)
      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 Lcsi;a(Lcad;Lcsg;Lawt;Lgh;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_1937;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Z
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Z