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:
-
-
invalid @see
net.minecraft.entity.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 cvxintermediary net/minecraft/class_5715named net/minecraft/world/event/listener/EntityGameEventHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GameEventListenerprivate @Nullable ChunkSectionPos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntityRemoval(ServerWorld world) voidonEntitySetPos(ServerWorld world) voidprivate static voidupdateDispatcher(WorldView world, @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> dispatcherConsumer)
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official aLcvx;a:Lcwc;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 bLcvx;b:Lhh;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>Lcvx;<init>(Lcwc;)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
-
onEntitySetPosCallback
- Mappings:
Namespace Name Mixin selector official aLcvx;a(Laeh;)Vintermediary method_42335Lnet/minecraft/class_5715;method_42335(Lnet/minecraft/class_3218;)Vnamed onEntitySetPosCallbackLnet/minecraft/world/event/listener/EntityGameEventHandler;onEntitySetPosCallback(Lnet/minecraft/server/world/ServerWorld;)V
-
onEntityRemoval
- Mappings:
Namespace Name Mixin selector official bLcvx;b(Laeh;)Vintermediary method_32949Lnet/minecraft/class_5715;method_32949(Lnet/minecraft/class_3218;)Vnamed onEntityRemovalLnet/minecraft/world/event/listener/EntityGameEventHandler;onEntityRemoval(Lnet/minecraft/server/world/ServerWorld;)V
-
onEntitySetPos
- Mappings:
Namespace Name Mixin selector official cLcvx;c(Laeh;)Vintermediary method_32952Lnet/minecraft/class_5715;method_32952(Lnet/minecraft/class_3218;)Vnamed onEntitySetPosLnet/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 aLcvx;a(Lcdl;Lhh;Ljava/util/function/Consumer;)Vintermediary method_32950Lnet/minecraft/class_5715;method_32950(Lnet/minecraft/class_4538;Lnet/minecraft/class_4076;Ljava/util/function/Consumer;)Vnamed updateDispatcherLnet/minecraft/world/event/listener/EntityGameEventHandler;updateDispatcher(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/Consumer;)V
-