Class CalibratedSculkSensorBlockEntity.VibrationUser
java.lang.Object
net.minecraft.world.level.block.entity.SculkSensorBlockEntity.VibrationUser
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity.VibrationUser
- All Implemented Interfaces:
VibrationSystem.User
- Enclosing class:
CalibratedSculkSensorBlockEntity
protected class CalibratedSculkSensorBlockEntity.VibrationUser
extends SculkSensorBlockEntity.VibrationUser
-
Field Summary
Fields inherited from class SculkSensorBlockEntity.VibrationUser
blockPos, LISTENER_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> event, @Nullable GameEvent.Context context) private intgetBackSignal(Level level, BlockPos pos, BlockState state) intMethods inherited from class SculkSensorBlockEntity.VibrationUser
canTriggerAvoidVibration, getPositionSource, onDataChanged, onReceiveVibration, requiresAdjacentChunksToBeTickingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VibrationSystem.User
calculateTravelTimeInTicks, getListenableEvents, isValidVibration
-
Constructor Details
-
VibrationUser
-
-
Method Details
-
getListenerRadius
public int getListenerRadius()- Specified by:
getListenerRadiusin interfaceVibrationSystem.User- Overrides:
getListenerRadiusin classSculkSensorBlockEntity.VibrationUser
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> event, @Nullable GameEvent.Context context) - Specified by:
canReceiveVibrationin interfaceVibrationSystem.User- Overrides:
canReceiveVibrationin classSculkSensorBlockEntity.VibrationUser
-
getBackSignal
-