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 TypeMethodDescriptionbooleancanReceiveVibration(@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.PositionSourcevoidonReceiveVibration(@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, waitMethods inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
calculateTravelTimeInTicks, canTriggerAvoidVibration, isValidVibration, onDataChanged, requiresAdjacentChunksToBeTicking
-
Method Details
-
getListenerRadius
public int getListenerRadius()- Specified by:
getListenerRadiusin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
getPositionSource
@NotNull public @NotNull net.minecraft.world.level.gameevent.PositionSource getPositionSource()- Specified by:
getPositionSourcein interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
getListenableEvents
@NotNull public @NotNull net.minecraft.tags.TagKey<net.minecraft.world.level.gameevent.GameEvent> getListenableEvents()- Specified by:
getListenableEventsin interfacenet.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:
canReceiveVibrationin interfacenet.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:
onReceiveVibrationin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-