Interface GameEventListener

All Known Implementing Classes:
AllayEntity.JukeboxEventListener, GameEventDebugRenderer.Listener, SculkCatalystBlockEntity, VibrationListener

public interface GameEventListener
A game event listener listens to game events from GameEventDispatchers.
Mappings:
Namespace Name
official czx
intermediary net/minecraft/class_5714
named net/minecraft/world/event/listener/GameEventListener
  • Method Details

    • shouldListenImmediately

      default boolean shouldListenImmediately()
      Mappings:
      Namespace Name Mixin selector
      official c Lczx;c()Z
      intermediary method_43723 Lnet/minecraft/class_5714;method_43723()Z
      named shouldListenImmediately Lnet/minecraft/world/event/listener/GameEventListener;shouldListenImmediately()Z
    • getPositionSource

      PositionSource getPositionSource()
      Returns the position source of this listener.
      Mappings:
      Namespace Name Mixin selector
      official a Lczx;a()Lczy;
      intermediary method_32946 Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
      named getPositionSource Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
    • getRange

      int getRange()
      Returns the range, in blocks, of the listener.
      Mappings:
      Namespace Name Mixin selector
      official b Lczx;b()I
      intermediary method_32948 Lnet/minecraft/class_5714;method_32948()I
      named getRange Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
    • listen

      boolean listen(ServerWorld world, GameEvent.Message event)
      Listens to an incoming game event.
      Returns:
      true if the game event has been accepted by this listener
      Mappings:
      Namespace Name Mixin selector
      official a Lczx;a(Lagg;Lczv$b;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712$class_7447;)Z
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent$Message;)Z