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
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.core.BlockPosstatic final int -
Constructor Summary
Constructors -
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, net.minecraft.world.level.gameevent.GameEvent.Context context) booleanint@NotNull net.minecraft.world.level.gameevent.PositionSourcevoidvoidonReceiveVibration(@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) booleanMethods 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, 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:
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
-
canTriggerAvoidVibration
public boolean canTriggerAvoidVibration()- Specified by:
canTriggerAvoidVibrationin 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, @Nullable 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 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:
onReceiveVibrationin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
onDataChanged
public void onDataChanged()- Specified by:
onDataChangedin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-
requiresAdjacentChunksToBeTicking
public boolean requiresAdjacentChunksToBeTicking()- Specified by:
requiresAdjacentChunksToBeTickingin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
-