Class EntityGameEventHandler
java.lang.Object
net.minecraft.world.event.listener.EntityGameEventHandler
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:
Entity.getGameEventHandler()- 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 coyintermediary net/minecraft/class_5715named net/minecraft/world/event/listener/EntityGameEventHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntityRemoval(World world)voidonEntitySetPos(World world)private voidupdateDispatcher(World world, @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> action)
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official aLcoy;a:Lcox;intermediary field_28182Lnet/minecraft/class_5715;field_28182:Lnet/minecraft/class_5714;named listenerLnet/minecraft/world/event/listener/EntityGameEventHandler;listener:Lnet/minecraft/world/event/listener/GameEventListener;
-
sectionPos
- Mappings:
Namespace Name Mixin selector official bLcoy;b:Lgz;intermediary field_28183Lnet/minecraft/class_5715;field_28183:Lnet/minecraft/class_4076;named sectionPosLnet/minecraft/world/event/listener/EntityGameEventHandler;sectionPos:Lnet/minecraft/util/math/ChunkSectionPos;
-
-
Constructor Details
-
EntityGameEventHandler
- Mappings:
Namespace Name Mixin selector official <init>Lcoy;<init>(Lcox;)Vintermediary <init>Lnet/minecraft/class_5715;<init>(Lnet/minecraft/class_5714;)Vnamed <init>Lnet/minecraft/world/event/listener/EntityGameEventHandler;<init>(Lnet/minecraft/world/event/listener/GameEventListener;)V
-
-
Method Details
-
onEntityRemoval
- Mappings:
Namespace Name Mixin selector official aLcoy;a(Lbwp;)Vintermediary method_32949Lnet/minecraft/class_5715;method_32949(Lnet/minecraft/class_1937;)Vnamed onEntityRemovalLnet/minecraft/world/event/listener/EntityGameEventHandler;onEntityRemoval(Lnet/minecraft/world/World;)V
-
onEntitySetPos
- Mappings:
Namespace Name Mixin selector official bLcoy;b(Lbwp;)Vintermediary method_32952Lnet/minecraft/class_5715;method_32952(Lnet/minecraft/class_1937;)Vnamed onEntitySetPosLnet/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 aLcoy;a(Lbwp;Lgz;Ljava/util/function/Consumer;)Vintermediary method_32950Lnet/minecraft/class_5715;method_32950(Lnet/minecraft/class_1937;Lnet/minecraft/class_4076;Ljava/util/function/Consumer;)Vnamed updateDispatcherLnet/minecraft/world/event/listener/EntityGameEventHandler;updateDispatcher(Lnet/minecraft/world/World;Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/Consumer;)V
-