Class HangingTendrilBlockEntity.VibrationUser

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

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

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.core.BlockPos
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VibrationUser(net.minecraft.core.BlockPos pos)
     
  • 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, net.minecraft.world.level.gameevent.GameEvent.Context context)
     
    boolean
     
    int
     
    @NotNull net.minecraft.world.level.gameevent.PositionSource
     
    void
     
    void
    onReceiveVibration(@NotNull net.minecraft.server.level.ServerLevel world, @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 entity2, float f)
     
    boolean
     

    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, getListenableEvents, isValidVibration
  • Field Details

    • LISTENER_RANGE

      public static final int LISTENER_RANGE
      See Also:
    • blockPos

      protected final net.minecraft.core.BlockPos blockPos
  • Constructor Details

    • VibrationUser

      public VibrationUser(net.minecraft.core.BlockPos pos)
  • 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
    • canTriggerAvoidVibration

      public boolean canTriggerAvoidVibration()
      Specified by:
      canTriggerAvoidVibration 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, @Nullable 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 world, @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 entity2, float f)
      Specified by:
      onReceiveVibration in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
    • onDataChanged

      public void onDataChanged()
      Specified by:
      onDataChanged in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
    • requiresAdjacentChunksToBeTicking

      public boolean requiresAdjacentChunksToBeTicking()
      Specified by:
      requiresAdjacentChunksToBeTicking in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User