Class SculkSensorBlockEntity.VibrationUser
java.lang.Object
net.minecraft.world.level.block.entity.SculkSensorBlockEntity.VibrationUser
- All Implemented Interfaces:
VibrationSystem.User
- Direct Known Subclasses:
CalibratedSculkSensorBlockEntity.VibrationUser
- Enclosing class:
SculkSensorBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BlockPos
static final int
private final PositionSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canReceiveVibration
(ServerLevel p_282127_, BlockPos p_283268_, Holder<GameEvent> p_329159_, GameEvent.Context p_282856_) boolean
int
void
void
onReceiveVibration
(ServerLevel p_282851_, BlockPos p_281608_, Holder<GameEvent> p_331761_, Entity p_282123_, Entity p_283090_, float p_283130_) 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
-
positionSource
-
-
Constructor Details
-
VibrationUser
-
-
Method Details
-
getListenerRadius
public int getListenerRadius()- Specified by:
getListenerRadius
in interfaceVibrationSystem.User
-
getPositionSource
- Specified by:
getPositionSource
in interfaceVibrationSystem.User
-
canTriggerAvoidVibration
public boolean canTriggerAvoidVibration()- Specified by:
canTriggerAvoidVibration
in interfaceVibrationSystem.User
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel p_282127_, BlockPos p_283268_, Holder<GameEvent> p_329159_, @Nullable GameEvent.Context p_282856_) - Specified by:
canReceiveVibration
in interfaceVibrationSystem.User
-
onReceiveVibration
public void onReceiveVibration(ServerLevel p_282851_, BlockPos p_281608_, Holder<GameEvent> p_331761_, @Nullable Entity p_282123_, @Nullable Entity p_283090_, float p_283130_) - Specified by:
onReceiveVibration
in interfaceVibrationSystem.User
-
onDataChanged
public void onDataChanged()- Specified by:
onDataChanged
in interfaceVibrationSystem.User
-
requiresAdjacentChunksToBeTicking
public boolean requiresAdjacentChunksToBeTicking()- Specified by:
requiresAdjacentChunksToBeTicking
in interfaceVibrationSystem.User
-