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 coy
intermediary net/minecraft/class_5715
named net/minecraft/world/event/listener/EntityGameEventHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEntityRemoval(World world)
void
onEntitySetPos(World world)
private void
updateDispatcher(World world, @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> action)
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official a
Lcoy;a:Lcox;
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
- Mappings:
Namespace Name Mixin selector official b
Lcoy;b:Lgz;
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
- Mappings:
Namespace Name Mixin selector official <init>
Lcoy;<init>(Lcox;)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
- Mappings:
Namespace Name Mixin selector official a
Lcoy;a(Lbwp;)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
- Mappings:
Namespace Name Mixin selector official b
Lcoy;b(Lbwp;)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
Lcoy;a(Lbwp;Lgz;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
-