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_, Holder<GameEvent> p_316319_, GameEvent.Context p_283577_) default boolean
int
default boolean
isValidVibration
(Holder<GameEvent> p_316804_, GameEvent.Context p_283373_) default void
void
onReceiveVibration
(ServerLevel p_282148_, BlockPos p_282090_, Holder<GameEvent> p_316773_, 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_, Holder<GameEvent> p_316319_, GameEvent.Context p_283577_) -
onReceiveVibration
-
getListenableEvents
-
canTriggerAvoidVibration
default boolean canTriggerAvoidVibration() -
requiresAdjacentChunksToBeTicking
default boolean requiresAdjacentChunksToBeTicking() -
calculateTravelTimeInTicks
default int calculateTravelTimeInTicks(float p_281658_) -
isValidVibration
-
onDataChanged
default void onDataChanged()
-