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

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.entity.LivingEntity
     
    protected final net.minecraft.world.level.gameevent.PositionSource
     

    Fields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem

    DEFAULT_VIBRATION_FREQUENCY, RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    VibrationUser(net.minecraft.world.entity.LivingEntity entity, int effectAmplifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    int
     
    net.minecraft.world.level.gameevent.PositionSource
     
    net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data
     
     
    void
    onReceiveVibration(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, wait

    Methods 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

      public HangoverMobEffect.VibrationUser getVibrationUser()
      Specified by:
      getVibrationUser in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
    • getVibrationData

      public net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data getVibrationData()
      Specified by:
      getVibrationData in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
    • getListenerRadius

      public int getListenerRadius()
      Specified by:
      getListenerRadius in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
    • getPositionSource

      public net.minecraft.world.level.gameevent.PositionSource getPositionSource()
      Specified by:
      getPositionSource in interface net.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:
      canReceiveVibration in interface net.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:
      onReceiveVibration in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User