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 official dke$bintermediary net/minecraft/class_8514$class_8516named 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 official aLdke$b;a:Ldke;intermediary field_44646Lnet/minecraft/class_8514$class_8516;field_44646:Lnet/minecraft/class_8514;named receiverLnet/minecraft/world/event/Vibrations$VibrationListener;receiver:Lnet/minecraft/world/event/Vibrations;
-
-
Constructor Details
-
VibrationListener
- Mappings:
Namespace Name Mixin selector official <init>Ldke$b;<init>(Ldke;)Vintermediary <init>Lnet/minecraft/class_8514$class_8516;<init>(Lnet/minecraft/class_8514;)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 official aLdjx;a()Ldjz;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
public int getRange()Returns the range, in blocks, of the listener.- Specified by:
getRangein interfaceGameEventListener- Mappings:
Namespace Name Mixin selector official bLdjx;b()Iintermediary method_32948Lnet/minecraft/class_5714;method_32948()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 official aLdjx;a(Laks;Ldjv;Ldjv$a;Lehp;)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$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 official bLdke$b;b(Laks;Ldjv;Ldjv$a;Lehp;)Vintermediary 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;)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 official aLdke$b;a(Laks;Ldke$a;Ldjv;Ldjv$a;Lehp;Lehp;)Vintermediary 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;)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 official aLdke$b;a(Lgw;Lgw;)Fintermediary method_51402Lnet/minecraft/class_8514$class_8516;method_51402(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)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 official aLdke$b;a(Lcpx;Lehp;Lehp;)Zintermediary method_51400Lnet/minecraft/class_8514$class_8516;method_51400(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Znamed isOccludedLnet/minecraft/world/event/Vibrations$VibrationListener;isOccluded(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
-