Interface GameEventListener
- All Known Implementing Classes:
AllayEntity,GameEventDebugRenderer.Listener,SculkCatalystBlockEntity,SculkSensorListener
public interface GameEventListener
A game event listener listens to game events from
GameEventDispatchers.- Mappings:
Namespace Name official cwpintermediary net/minecraft/class_5714named net/minecraft/world/event/listener/GameEventListener
-
Method Summary
Modifier and TypeMethodDescriptionReturns the position source of this listener.intgetRange()Returns the range, in blocks, of the listener.booleanlisten(ServerWorld world, GameEvent event, GameEvent.class_7397 class_7397, Vec3d pos) Listens to an incoming game event.
-
Method Details
-
getPositionSource
PositionSource getPositionSource()Returns the position source of this listener.- Mappings:
Namespace Name Mixin selector official tLcwp;t()Lcwq;intermediary method_32946Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;named getPositionSourceLnet/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 fFLcwp;fF()Iintermediary method_32948Lnet/minecraft/class_5714;method_32948()Inamed getRangeLnet/minecraft/world/event/listener/GameEventListener;getRange()I
-
listen
Listens to an incoming game event.- Returns:
trueif the game event has been accepted by this listener- Mappings:
Namespace Name Mixin selector official aLcwp;a(Laek;Lcwn;Lcwn$a;Ldth;)Zintermediary method_32947Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Znamed listenLnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$class_7397;Lnet/minecraft/util/math/Vec3d;)Z
-