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:
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 cndintermediary net/minecraft/class_5715named net/minecraft/world/event/listener/EntityGameEventHandler
-
Field Summary
Fields Modifier and Type Field Description private GameEventListenerlistenerprivate @Nullable ChunkSectionPossectionPos -
Constructor Summary
Constructors Constructor Description EntityGameEventHandler(GameEventListener listener) -
Method Summary
Modifier and Type Method Description voidonEntityRemoval(World world)voidonEntitySetPos(World world)private voidupdateDispatcher(World world, @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> action)
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official aLcnd;a:Lcnc;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 bLcnd;b:Lgq;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>Lcnd;<init>(Lcnc;)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 aLcnd;a(Lbva;)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 bLcnd;b(Lbva;)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 aLcnd;a(Lbva;Lgq;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
-