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 named net/minecraft/world/event/Vibrations$VibrationListenerintermediary net/minecraft/class_8514$class_8516official eru$b
-
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, RegistryEntry<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, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private voidlisten(ServerWorld world, Vibrations.ListenerData listenerData, RegistryEntry<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 named receiverLnet/minecraft/world/event/Vibrations$VibrationListener;receiver:Lnet/minecraft/world/event/Vibrations;intermediary field_44646Lnet/minecraft/class_8514$class_8516;field_44646:Lnet/minecraft/class_8514;official aLeru$b;a:Leru;
-
-
Constructor Details
-
VibrationListener
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/event/Vibrations$VibrationListener;<init>(Lnet/minecraft/world/event/Vibrations;)Vintermediary <init>Lnet/minecraft/class_8514$class_8516;<init>(Lnet/minecraft/class_8514;)Vofficial <init>Leru$b;<init>(Leru;)V
-
-
Method Details
-
getPositionSource
Returns the position source of this listener.- Specified by:
getPositionSourcein interfaceGameEventListener- Mappings:
Namespace Name Mixin selector named getPositionSourceLnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;intermediary method_32946Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;official aLern;a()Lerp;
-
getRange
public int getRange()Returns the range, in blocks, of the listener.- Specified by:
getRangein interfaceGameEventListener- Mappings:
Namespace Name Mixin selector named getRangeLnet/minecraft/world/event/listener/GameEventListener;getRange()Iintermediary method_32948Lnet/minecraft/class_5714;method_32948()Iofficial bLern;b()I
-
listen
public boolean listen(ServerWorld world, RegistryEntry<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 named listenLnet/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;)Zintermediary method_32947Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Zofficial aLern;a(Laxl;Ljj;Lerl$a;Lfrd;)Z
-
forceListen
public void forceListen(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) - Mappings:
Namespace Name Mixin selector named forceListenLnet/minecraft/world/event/Vibrations$VibrationListener;forceListen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_51403Lnet/minecraft/class_8514$class_8516;method_51403(Lnet/minecraft/class_3218;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Vofficial bLeru$b;b(Laxl;Ljj;Lerl$a;Lfrd;)V
-
listen
private void listen(ServerWorld world, Vibrations.ListenerData listenerData, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) - Mappings:
Namespace Name Mixin selector named listenLnet/minecraft/world/event/Vibrations$VibrationListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/Vibrations$ListenerData;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_51399Lnet/minecraft/class_8514$class_8516;method_51399(Lnet/minecraft/class_3218;Lnet/minecraft/class_8514$class_8515;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Vofficial aLeru$b;a(Laxl;Leru$a;Ljj;Lerl$a;Lfrd;Lfrd;)V
-
getTravelDelay
- Mappings:
Namespace Name Mixin selector named getTravelDelayLnet/minecraft/world/event/Vibrations$VibrationListener;getTravelDelay(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Fintermediary method_51402Lnet/minecraft/class_8514$class_8516;method_51402(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Fofficial aLeru$b;a(Liz;Liz;)F
-
isOccluded
- Mappings:
Namespace Name Mixin selector named isOccludedLnet/minecraft/world/event/Vibrations$VibrationListener;isOccluded(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Zintermediary method_51400Lnet/minecraft/class_8514$class_8516;method_51400(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Zofficial aLeru$b;a(Ldun;Lfrd;Lfrd;)Z
-