Interface VibrationSystem.User
- All Known Implementing Classes:
Allay.VibrationUser
,CalibratedSculkSensorBlockEntity.VibrationUser
,SculkSensorBlockEntity.VibrationUser
,SculkShriekerBlockEntity.VibrationUser
,Warden.VibrationUser
- Enclosing interface:
- VibrationSystem
public static interface VibrationSystem.User
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
calculateTravelTimeInTicks
(float p_281658_) boolean
canReceiveVibration
(ServerLevel p_282960_, BlockPos p_282488_, GameEvent p_282865_, GameEvent.Context p_283577_) default boolean
int
default boolean
isValidVibration
(GameEvent p_282750_, GameEvent.Context p_283373_) default void
void
onReceiveVibration
(ServerLevel p_282148_, BlockPos p_282090_, GameEvent p_283663_, Entity p_281578_, Entity p_281308_, float p_281707_) default boolean
-
Method Details
-
getListenerRadius
int getListenerRadius() -
getPositionSource
PositionSource getPositionSource() -
canReceiveVibration
boolean canReceiveVibration(ServerLevel p_282960_, BlockPos p_282488_, GameEvent p_282865_, GameEvent.Context p_283577_) -
onReceiveVibration
void onReceiveVibration(ServerLevel p_282148_, BlockPos p_282090_, GameEvent p_283663_, @Nullable Entity p_281578_, @Nullable Entity p_281308_, float p_281707_) -
getListenableEvents
-
canTriggerAvoidVibration
default boolean canTriggerAvoidVibration() -
requiresAdjacentChunksToBeTicking
default boolean requiresAdjacentChunksToBeTicking() -
calculateTravelTimeInTicks
default int calculateTravelTimeInTicks(float p_281658_) -
isValidVibration
-
onDataChanged
default void onDataChanged()
-