Class EntityGameEventHandler<T extends GameEventListener>

java.lang.Object
net.minecraft.world.event.listener.EntityGameEventHandler<T>

public class EntityGameEventHandler<T extends GameEventListener> extends Object
A game event handler for an entity so that the listener stored can be moved to the correct dispatcher or unregistered as the entity moves or gets removed.
Mappings:
Namespace Name
official dgi
intermediary net/minecraft/class_5715
named net/minecraft/world/event/listener/EntityGameEventHandler
  • Field Details

    • listener

      private final T extends GameEventListener listener
      Mappings:
      Namespace Name Mixin selector
      official a Ldgi;a:Ldgn;
      intermediary field_28182 Lnet/minecraft/class_5715;field_28182:Lnet/minecraft/class_5714;
      named listener Lnet/minecraft/world/event/listener/EntityGameEventHandler;listener:Lnet/minecraft/world/event/listener/GameEventListener;
    • sectionPos

      @Nullable private @Nullable ChunkSectionPos sectionPos
      Mappings:
      Namespace Name Mixin selector
      official b Ldgi;b:Lhx;
      intermediary field_28183 Lnet/minecraft/class_5715;field_28183:Lnet/minecraft/class_4076;
      named sectionPos Lnet/minecraft/world/event/listener/EntityGameEventHandler;sectionPos:Lnet/minecraft/util/math/ChunkSectionPos;
  • Constructor Details

    • EntityGameEventHandler

      public EntityGameEventHandler(T listener)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgi;<init>(Ldgn;)V
      intermediary <init> Lnet/minecraft/class_5715;<init>(Lnet/minecraft/class_5714;)V
      named <init> Lnet/minecraft/world/event/listener/EntityGameEventHandler;<init>(Lnet/minecraft/world/event/listener/GameEventListener;)V
  • Method Details

    • onEntitySetPosCallback

      public void onEntitySetPosCallback(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgi;a(Laif;)V
      intermediary method_42335 Lnet/minecraft/class_5715;method_42335(Lnet/minecraft/class_3218;)V
      named onEntitySetPosCallback Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntitySetPosCallback(Lnet/minecraft/server/world/ServerWorld;)V
    • getListener

      public T getListener()
      Mappings:
      Namespace Name Mixin selector
      official a Ldgi;a()Ldgn;
      intermediary method_43152 Lnet/minecraft/class_5715;method_43152()Lnet/minecraft/class_5714;
      named getListener Lnet/minecraft/world/event/listener/EntityGameEventHandler;getListener()Lnet/minecraft/world/event/listener/GameEventListener;
    • onEntityRemoval

      public void onEntityRemoval(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official b Ldgi;b(Laif;)V
      intermediary method_32949 Lnet/minecraft/class_5715;method_32949(Lnet/minecraft/class_3218;)V
      named onEntityRemoval Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntityRemoval(Lnet/minecraft/server/world/ServerWorld;)V
    • onEntitySetPos

      public void onEntitySetPos(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official c Ldgi;c(Laif;)V
      intermediary method_32952 Lnet/minecraft/class_5715;method_32952(Lnet/minecraft/class_3218;)V
      named onEntitySetPos Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntitySetPos(Lnet/minecraft/server/world/ServerWorld;)V
    • updateDispatcher

      private static void updateDispatcher(WorldView world, @Nullable @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> dispatcherConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgi;a(Lcmp;Lhx;Ljava/util/function/Consumer;)V
      intermediary method_32950 Lnet/minecraft/class_5715;method_32950(Lnet/minecraft/class_4538;Lnet/minecraft/class_4076;Ljava/util/function/Consumer;)V
      named updateDispatcher Lnet/minecraft/world/event/listener/EntityGameEventHandler;updateDispatcher(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/Consumer;)V