Interface VibrationListener.VibrationListenerConfig
- All Known Implementing Classes:
Allay.AllayVibrationListenerConfig
,SculkSensorBlockEntity
,SculkShriekerBlockEntity
,Warden
- Enclosing class:
- VibrationListener
public static interface VibrationListener.VibrationListenerConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
isValidVibration
(GameEvent p_223878_, GameEvent.Context p_223879_) void
onSignalReceive
(ServerLevel p_223865_, GameEventListener p_223866_, BlockPos p_223867_, GameEvent p_223868_, Entity p_223869_, Entity p_223870_, float p_223871_) default void
boolean
shouldListen
(ServerLevel p_223872_, GameEventListener p_223873_, BlockPos p_223874_, GameEvent p_223875_, GameEvent.Context p_223876_)
-
Method Details
-
getListenableEvents
-
canTriggerAvoidVibration
default boolean canTriggerAvoidVibration() -
isValidVibration
-
shouldListen
boolean shouldListen(ServerLevel p_223872_, GameEventListener p_223873_, BlockPos p_223874_, GameEvent p_223875_, GameEvent.Context p_223876_) -
onSignalReceive
void onSignalReceive(ServerLevel p_223865_, GameEventListener p_223866_, BlockPos p_223867_, GameEvent p_223868_, @Nullable Entity p_223869_, @Nullable Entity p_223870_, float p_223871_) -
onSignalSchedule
default void onSignalSchedule()
-