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 dcz
intermediary net/minecraft/class_5715
named net/minecraft/world/event/listener/EntityGameEventHandler
  • Field Details

    • listener

      private T extends GameEventListener listener
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a:Ldde;
      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 Ldcz;b:Lhs;
      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> Ldcz;<init>(Ldde;)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 Ldcz;a(Lahm;)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
    • setListener

      public void setListener(T listener, @Nullable @Nullable World world)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a(Ldde;Lcjw;)V
      intermediary method_43153 Lnet/minecraft/class_5715;method_43153(Lnet/minecraft/class_5714;Lnet/minecraft/class_1937;)V
      named setListener Lnet/minecraft/world/event/listener/EntityGameEventHandler;setListener(Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/World;)V
    • getListener

      public T getListener()
      Mappings:
      Namespace Name Mixin selector
      official a Ldcz;a()Ldde;
      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 Ldcz;b(Lahm;)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 Ldcz;c(Lahm;)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 Ldcz;a(Lcjz;Lhs;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