Class EntityGameEventHandler

java.lang.Object
net.minecraft.world.event.listener.EntityGameEventHandler

public class EntityGameEventHandler 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.
See Also:
API Note:
This implementation is currently unused by vanilla as vanilla doesn't have any entity that listens to game events.
Mappings:
Namespace Name
official csj
intermediary net/minecraft/class_5715
named net/minecraft/world/event/listener/EntityGameEventHandler
  • Field Details

    • listener

      private final GameEventListener listener
      Mappings:
      Namespace Name Mixin selector
      official a Lcsj;a:Lcsi;
      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 Lcsj;b:Lha;
      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(GameEventListener listener)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcsj;<init>(Lcsi;)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

    • onEntityRemoval

      public void onEntityRemoval(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsj;a(Lcad;)V
      intermediary method_32949 Lnet/minecraft/class_5715;method_32949(Lnet/minecraft/class_1937;)V
      named onEntityRemoval Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntityRemoval(Lnet/minecraft/world/World;)V
    • onEntitySetPos

      public void onEntitySetPos(World world)
      Mappings:
      Namespace Name Mixin selector
      official b Lcsj;b(Lcad;)V
      intermediary method_32952 Lnet/minecraft/class_5715;method_32952(Lnet/minecraft/class_1937;)V
      named onEntitySetPos Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntitySetPos(Lnet/minecraft/world/World;)V
    • updateDispatcher

      private void updateDispatcher(World world, @Nullable @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> action)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsj;a(Lcad;Lha;Ljava/util/function/Consumer;)V
      intermediary method_32950 Lnet/minecraft/class_5715;method_32950(Lnet/minecraft/class_1937;Lnet/minecraft/class_4076;Ljava/util/function/Consumer;)V
      named updateDispatcher Lnet/minecraft/world/event/listener/EntityGameEventHandler;updateDispatcher(Lnet/minecraft/world/World;Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/Consumer;)V