Class HangoverMobEffect.VibrationUser
java.lang.Object
petrolpark.mc.library.shared.world.effect.HangoverMobEffect.VibrationUser
- All Implemented Interfaces:
net.minecraft.world.level.gameevent.vibrations.VibrationSystem,net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
- Enclosing class:
HangoverMobEffect
public static class HangoverMobEffect.VibrationUser
extends Object
implements net.minecraft.world.level.gameevent.vibrations.VibrationSystem, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Ticker, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.entity.LivingEntityprotected final net.minecraft.world.level.gameevent.PositionSourceFields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
DEFAULT_VIBRATION_FREQUENCY, RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionVibrationUser(net.minecraft.world.entity.LivingEntity entity, int effectAmplifier) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanReceiveVibration(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.level.gameevent.GameEvent.Context context) intnet.minecraft.world.level.gameevent.PositionSourcenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.DatavoidonReceiveVibration(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity playerEntity, float distance) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
calculateTravelTimeInTicks, canTriggerAvoidVibration, getListenableEvents, isValidVibration, onDataChanged, requiresAdjacentChunksToBeTicking
-
Field Details
-
entity
protected final net.minecraft.world.entity.LivingEntity entity -
positionSource
protected final net.minecraft.world.level.gameevent.PositionSource positionSource
-
-
Constructor Details
-
VibrationUser
public VibrationUser(net.minecraft.world.entity.LivingEntity entity, int effectAmplifier)
-
-
Method Details
-
getVibrationUser
- Specified by:
getVibrationUserin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem
-
getVibrationData
public net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data getVibrationData()- Specified by:
getVibrationDatain interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem
-
getListenerRadius
public int getListenerRadius()- Specified by:
getListenerRadiusin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
getPositionSource
public net.minecraft.world.level.gameevent.PositionSource getPositionSource()- Specified by:
getPositionSourcein interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
canReceiveVibration
public boolean canReceiveVibration(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.level.gameevent.GameEvent.Context context) - Specified by:
canReceiveVibrationin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
onReceiveVibration
public void onReceiveVibration(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, @Nullable net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.entity.Entity playerEntity, float distance) - Specified by:
onReceiveVibrationin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-