Uses of Interface
net.minecraft.world.event.listener.GameEventListener
Package
Description
-
Uses of GameEventListener in net.minecraft.block
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
@Nullable GameEventListenerBlockEntityProvider.getGameEventListener
(ServerWorld world, T blockEntity) Returns the game event listener for the block's block entity, ornull
if the block entity does not listen to game events. -
Uses of GameEventListener in net.minecraft.block.entity
-
Uses of GameEventListener in net.minecraft.client.render.debug
-
Uses of GameEventListener in net.minecraft.entity.passive
-
Uses of GameEventListener in net.minecraft.server.network
Modifier and TypeMethodDescriptionstatic void
DebugInfoSender.sendGameEventListener
(World world, GameEventListener eventListener) -
Uses of GameEventListener in net.minecraft.world.event
ModifierConstructorDescriptionMessage
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of GameEventListener in net.minecraft.world.event.listener
Modifier and TypeClassDescriptionclass
EntityGameEventHandler<T extends GameEventListener>
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.static interface
GameEventListener.Holder<T extends GameEventListener>
Modifier and TypeFieldDescriptionprivate final List<GameEventListener>
SimpleGameEventDispatcher.listeners
private final List<GameEventListener>
SimpleGameEventDispatcher.toAdd
private final Set<GameEventListener>
SimpleGameEventDispatcher.toRemove
Modifier and TypeMethodDescriptionvoid
GameEventDispatcher.addListener
(GameEventListener listener) Adds a listener to this dispatcher.void
SimpleGameEventDispatcher.addListener
(GameEventListener listener) Adds a listener to this dispatcher.SimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) void
GameEventDispatcher.removeListener
(GameEventListener listener) Removes a listener from this dispatcher if it is present.void
SimpleGameEventDispatcher.removeListener
(GameEventListener listener) Removes a listener from this dispatcher if it is present.void
GameEventDispatcher.DispatchCallback.visit
(GameEventListener listener, Vec3d listenerPos)