Class EuclideanGameEventDispatcher
java.lang.Object
net.minecraft.world.level.gameevent.EuclideanGameEventDispatcher
- All Implemented Interfaces:
GameEventDispatcher
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ServerLevel
private final List<GameEventListener>
private final List<GameEventListener>
private final Set<GameEventListener>
private boolean
Fields inherited from interface net.minecraft.world.level.gameevent.GameEventDispatcher
NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPostableListenerPosition
(ServerLevel p_223688_, Vec3 p_223689_, GameEventListener p_223690_) boolean
isEmpty()
void
register
(GameEventListener p_157766_) void
unregister
(GameEventListener p_157768_) boolean
walkListeners
(GameEvent p_223692_, Vec3 p_223693_, GameEvent.Context p_223694_, BiConsumer<GameEventListener, Vec3> p_223695_)
-
Field Details
-
listeners
-
listenersToRemove
-
listenersToAdd
-
processing
private boolean processing -
level
-
-
Constructor Details
-
EuclideanGameEventDispatcher
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceGameEventDispatcher
-
register
- Specified by:
register
in interfaceGameEventDispatcher
-
unregister
- Specified by:
unregister
in interfaceGameEventDispatcher
-
walkListeners
public boolean walkListeners(GameEvent p_223692_, Vec3 p_223693_, GameEvent.Context p_223694_, BiConsumer<GameEventListener, Vec3> p_223695_) - Specified by:
walkListeners
in interfaceGameEventDispatcher
-
getPostableListenerPosition
private static Optional<Vec3> getPostableListenerPosition(ServerLevel p_223688_, Vec3 p_223689_, GameEventListener p_223690_)
-