Package net.minecraft.entity.passive
Class AllayEntity.JukeboxEventListener
java.lang.Object
net.minecraft.entity.passive.AllayEntity.JukeboxEventListener
- All Implemented Interfaces:
GameEventListener
- Enclosing class:
AllayEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/AllayEntity$JukeboxEventListener
intermediary net/minecraft/class_7298$class_7525
official cgk$a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.event.listener.GameEventListener
GameEventListener.Holder<T extends GameEventListener>, GameEventListener.TriggerOrder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the position source of this listener.int
getRange()
Returns the range, in blocks, of the listener.boolean
listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.event.listener.GameEventListener
getTriggerOrder
-
Field Details
-
positionSource
- Mappings:
Namespace Name Mixin selector named positionSource
Lnet/minecraft/entity/passive/AllayEntity$JukeboxEventListener;positionSource:Lnet/minecraft/world/event/PositionSource;
intermediary field_39478
Lnet/minecraft/class_7298$class_7525;field_39478:Lnet/minecraft/class_5716;
official b
Lcgk$a;b:Ldyd;
-
range
private final int range- Mappings:
Namespace Name Mixin selector named range
Lnet/minecraft/entity/passive/AllayEntity$JukeboxEventListener;range:I
intermediary field_39479
Lnet/minecraft/class_7298$class_7525;field_39479:I
official c
Lcgk$a;c:I
-
-
Constructor Details
-
JukeboxEventListener
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/passive/AllayEntity$JukeboxEventListener;<init>(Lnet/minecraft/entity/passive/AllayEntity;Lnet/minecraft/world/event/PositionSource;I)V
intermediary <init>
Lnet/minecraft/class_7298$class_7525;<init>(Lnet/minecraft/class_7298;Lnet/minecraft/class_5716;I)V
official <init>
Lcgk$a;<init>(Lcgk;Ldyd;I)V
-
-
Method Details
-
getPositionSource
Returns the position source of this listener.- Specified by:
getPositionSource
in interfaceGameEventListener
- Mappings:
Namespace Name Mixin selector named getPositionSource
Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
intermediary method_32946
Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
official a
Ldyb;a()Ldyd;
-
getRange
public int getRange()Returns the range, in blocks, of the listener.- Specified by:
getRange
in interfaceGameEventListener
- Mappings:
Namespace Name Mixin selector named getRange
Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
intermediary method_32948
Lnet/minecraft/class_5714;method_32948()I
official b
Ldyb;b()I
-
listen
public boolean listen(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.- Specified by:
listen
in interfaceGameEventListener
- Returns:
true
if the game event has been accepted by this listener- Mappings:
Namespace Name Mixin selector named listen
Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)Z
intermediary method_32947
Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Z
official a
Ldyb;a(Laqu;Ljm;Ldxz$a;Lexc;)Z
-