Package net.minecraft.world.event
Class Vibrations.VibrationListener
java.lang.Object
net.minecraft.world.event.Vibrations.VibrationListener
- All Implemented Interfaces:
GameEventListener
- Enclosing interface:
Vibrations
- Mappings:
Namespace Name intermediary net/minecraft/class_8514$class_8516official dgr$bnamed net/minecraft/world/event/Vibrations$VibrationListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.event.listener.GameEventListener
GameEventListener.Holder<T extends GameEventListener>, GameEventListener.TriggerOrder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforceListen(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Returns the position source of this listener.intgetRange()Returns the range, in blocks, of the listener.static floatgetTravelDelay(BlockPos emitterPos, BlockPos listenerPos) private static booleanisOccluded(World world, Vec3d emitterPos, Vec3d listenerPos) booleanlisten(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private voidlisten(ServerWorld world, Vibrations.ListenerData listenerData, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.event.listener.GameEventListener
getTriggerOrder
-
Field Details
-
receiver
- Mappings:
Namespace Name Mixin selector intermediary field_44646Lnet/minecraft/class_8514$class_8516;field_44646:Lnet/minecraft/class_8514;official aLdgr$b;a:Ldgr;named receiverLnet/minecraft/world/event/Vibrations$VibrationListener;receiver:Lnet/minecraft/world/event/Vibrations;
-
-
Constructor Details
-
VibrationListener
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_8514$class_8516;<init>(Lnet/minecraft/class_8514;)Vofficial <init>Ldgr$b;<init>(Ldgr;)Vnamed <init>Lnet/minecraft/world/event/Vibrations$VibrationListener;<init>(Lnet/minecraft/world/event/Vibrations;)V
-
-
Method Details
-
getPositionSource
Returns the position source of this listener.- Specified by:
getPositionSourcein interfaceGameEventListener- Mappings:
Namespace Name Mixin selector intermediary method_32946Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;official aLdgk;a()Ldgm;named getPositionSourceLnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
-
getRange
public int getRange()Returns the range, in blocks, of the listener.- Specified by:
getRangein interfaceGameEventListener- Mappings:
Namespace Name Mixin selector intermediary method_32948Lnet/minecraft/class_5714;method_32948()Iofficial bLdgk;b()Inamed getRangeLnet/minecraft/world/event/listener/GameEventListener;getRange()I
-
listen
public boolean listen(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.- Specified by:
listenin interfaceGameEventListener- Returns:
trueif the game event has been accepted by this listener- Mappings:
Namespace Name Mixin selector intermediary 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;)Zofficial aLdgk;a(Laif;Ldgi;Ldgi$a;Leea;)Znamed listenLnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)Z
-
forceListen
public void forceListen(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) - Mappings:
Namespace Name Mixin selector intermediary method_51403Lnet/minecraft/class_8514$class_8516;method_51403(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Vofficial bLdgr$b;b(Laif;Ldgi;Ldgi$a;Leea;)Vnamed forceListenLnet/minecraft/world/event/Vibrations$VibrationListener;forceListen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)V
-
listen
private void listen(ServerWorld world, Vibrations.ListenerData listenerData, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) - Mappings:
Namespace Name Mixin selector intermediary method_51399Lnet/minecraft/class_8514$class_8516;method_51399(Lnet/minecraft/class_3218;Lnet/minecraft/class_8514$class_8515;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Vofficial aLdgr$b;a(Laif;Ldgr$a;Ldgi;Ldgi$a;Leea;Leea;)Vnamed listenLnet/minecraft/world/event/Vibrations$VibrationListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/Vibrations$ListenerData;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
-
getTravelDelay
- Mappings:
Namespace Name Mixin selector intermediary method_51402Lnet/minecraft/class_8514$class_8516;method_51402(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Fofficial aLdgr$b;a(Lgu;Lgu;)Fnamed getTravelDelayLnet/minecraft/world/event/Vibrations$VibrationListener;getTravelDelay(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)F
-
isOccluded
- Mappings:
Namespace Name Mixin selector intermediary method_51400Lnet/minecraft/class_8514$class_8516;method_51400(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Zofficial aLdgr$b;a(Lcmk;Leea;Leea;)Znamed isOccludedLnet/minecraft/world/event/Vibrations$VibrationListener;isOccluded(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
-