Class Crab.VibrationUser

java.lang.Object
net.frozenblock.wilderwild.entity.Crab.VibrationUser
All Implemented Interfaces:
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
Enclosing class:
Crab

public class Crab.VibrationUser extends Object implements net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canReceiveVibration(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.gameevent.GameEvent gameEvent, @NotNull net.minecraft.world.level.gameevent.GameEvent.Context context)
     
    @NotNull net.minecraft.tags.TagKey<net.minecraft.world.level.gameevent.GameEvent>
     
    int
     
    @NotNull net.minecraft.world.level.gameevent.PositionSource
     
    void
    onReceiveVibration(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.gameevent.GameEvent gameEvent, @Nullable net.minecraft.world.entity.Entity entity, @Nullable 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, isValidVibration, onDataChanged, requiresAdjacentChunksToBeTicking
  • Method Details

    • getListenerRadius

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

      @NotNull public @NotNull net.minecraft.world.level.gameevent.PositionSource getPositionSource()
      Specified by:
      getPositionSource in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
    • getListenableEvents

      @NotNull public @NotNull net.minecraft.tags.TagKey<net.minecraft.world.level.gameevent.GameEvent> getListenableEvents()
      Specified by:
      getListenableEvents in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
    • canReceiveVibration

      public boolean canReceiveVibration(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.gameevent.GameEvent gameEvent, @NotNull 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(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.gameevent.GameEvent gameEvent, @Nullable @Nullable net.minecraft.world.entity.Entity entity, @Nullable @Nullable net.minecraft.world.entity.Entity playerEntity, float distance)
      Specified by:
      onReceiveVibration in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User