Uses of Interface
net.minecraft.world.event.listener.GameEventListener
Packages that use GameEventListener
Package
Description
-
Uses of GameEventListener in net.minecraft.block
Methods in net.minecraft.block that return GameEventListenerModifier and TypeMethodDescriptiondefault <T extends BlockEntity>
@Nullable GameEventListenerBlockEntityProvider.getGameEventListener(World world, T blockEntity) <T extends BlockEntity>
@Nullable GameEventListenerSculkSensorBlock.getGameEventListener(World world, T blockEntity) -
Uses of GameEventListener in net.minecraft.block.entity
Methods in net.minecraft.block.entity with parameters of type GameEventListenerModifier and TypeMethodDescriptionvoidSculkSensorBlockEntity.accept(World world, GameEventListener listener, GameEvent event, int distance) Accepts a game event after delay.booleanSculkSensorBlockEntity.accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event. -
Uses of GameEventListener in net.minecraft.client.render.debug
Classes in net.minecraft.client.render.debug that implement GameEventListener -
Uses of GameEventListener in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type GameEventListenerModifier and TypeMethodDescriptionstatic voidDebugInfoSender.sendGameEventListener(World world, GameEventListener eventListener) -
Uses of GameEventListener in net.minecraft.world.event.listener
Classes in net.minecraft.world.event.listener that implement GameEventListenerFields in net.minecraft.world.event.listener declared as GameEventListenerFields in net.minecraft.world.event.listener with type parameters of type GameEventListenerModifier and TypeFieldDescriptionprivate final List<GameEventListener>SimpleGameEventDispatcher.listenersMethods in net.minecraft.world.event.listener with parameters of type GameEventListenerModifier and TypeMethodDescriptionvoidSculkSensorListener.Callback.accept(World world, GameEventListener listener, GameEvent event, int distance) Accepts a game event after delay.booleanSculkSensorListener.Callback.accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event.voidGameEventDispatcher.addListener(GameEventListener listener) Adds a listener to this dispatcher.voidSimpleGameEventDispatcher.addListener(GameEventListener listener) Adds a listener to this dispatcher.private booleanSimpleGameEventDispatcher.dispatchTo(World world, GameEvent event, @Nullable Entity entity, BlockPos pos, GameEventListener listener) voidGameEventDispatcher.removeListener(GameEventListener listener) Removes a listener from this dispatcher if it is present.voidSimpleGameEventDispatcher.removeListener(GameEventListener listener) Removes a listener from this dispatcher if it is present.Constructors in net.minecraft.world.event.listener with parameters of type GameEventListener