Class EntityGameEventHandler<T extends GameEventListener>
java.lang.Object
net.minecraft.world.event.listener.EntityGameEventHandler<T>
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.
- Mappings:
Namespace Name official dfx
intermediary net/minecraft/class_5715
named net/minecraft/world/event/listener/EntityGameEventHandler
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onEntityRemoval
(ServerWorld world) void
onEntitySetPos
(ServerWorld world) void
void
setListener
(T listener, @Nullable World world) private static void
updateDispatcher
(WorldView world, @Nullable ChunkSectionPos sectionPos, Consumer<GameEventDispatcher> dispatcherConsumer)
-
Field Details
-
listener
- Mappings:
Namespace Name Mixin selector official a
Ldfx;a:Ldgc;
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
Ldfx;b:Lhw;
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>
Ldfx;<init>(Ldgc;)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
-
onEntitySetPosCallback
- Mappings:
Namespace Name Mixin selector official a
Ldfx;a(Laip;)V
intermediary method_42335
Lnet/minecraft/class_5715;method_42335(Lnet/minecraft/class_3218;)V
named onEntitySetPosCallback
Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntitySetPosCallback(Lnet/minecraft/server/world/ServerWorld;)V
-
setListener
- Mappings:
Namespace Name Mixin selector official a
Ldfx;a(Ldgc;Lcmi;)V
intermediary method_43153
Lnet/minecraft/class_5715;method_43153(Lnet/minecraft/class_5714;Lnet/minecraft/class_1937;)V
named setListener
Lnet/minecraft/world/event/listener/EntityGameEventHandler;setListener(Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/World;)V
-
getListener
- Mappings:
Namespace Name Mixin selector official a
Ldfx;a()Ldgc;
intermediary method_43152
Lnet/minecraft/class_5715;method_43152()Lnet/minecraft/class_5714;
named getListener
Lnet/minecraft/world/event/listener/EntityGameEventHandler;getListener()Lnet/minecraft/world/event/listener/GameEventListener;
-
onEntityRemoval
- Mappings:
Namespace Name Mixin selector official b
Ldfx;b(Laip;)V
intermediary method_32949
Lnet/minecraft/class_5715;method_32949(Lnet/minecraft/class_3218;)V
named onEntityRemoval
Lnet/minecraft/world/event/listener/EntityGameEventHandler;onEntityRemoval(Lnet/minecraft/server/world/ServerWorld;)V
-
onEntitySetPos
- Mappings:
Namespace Name Mixin selector official c
Ldfx;c(Laip;)V
intermediary method_32952
Lnet/minecraft/class_5715;method_32952(Lnet/minecraft/class_3218;)V
named onEntitySetPos
Lnet/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 a
Ldfx;a(Lcml;Lhw;Ljava/util/function/Consumer;)V
intermediary method_32950
Lnet/minecraft/class_5715;method_32950(Lnet/minecraft/class_4538;Lnet/minecraft/class_4076;Ljava/util/function/Consumer;)V
named updateDispatcher
Lnet/minecraft/world/event/listener/EntityGameEventHandler;updateDispatcher(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/Consumer;)V
-