Class Allay.AllayVibrationListenerConfig
java.lang.Object
net.minecraft.world.entity.animal.allay.Allay.AllayVibrationListenerConfig
- All Implemented Interfaces:
VibrationListener.VibrationListenerConfig
- Enclosing class:
- Allay
class Allay.AllayVibrationListenerConfig
extends Object
implements VibrationListener.VibrationListenerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSignalReceive
(ServerLevel p_239108_, GameEventListener p_239109_, BlockPos p_239110_, GameEvent p_239111_, @Nullable Entity p_239112_, @Nullable Entity p_239113_, float p_239114_) boolean
shouldListen
(ServerLevel p_239787_, GameEventListener p_239788_, BlockPos p_239789_, GameEvent p_239790_, GameEvent.Context p_239791_) 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.VibrationListener.VibrationListenerConfig
canTriggerAvoidVibration, isValidVibration, onSignalSchedule
-
Constructor Details
-
AllayVibrationListenerConfig
AllayVibrationListenerConfig()
-
-
Method Details
-
shouldListen
public boolean shouldListen(ServerLevel p_239787_, GameEventListener p_239788_, BlockPos p_239789_, GameEvent p_239790_, GameEvent.Context p_239791_) - Specified by:
shouldListen
in interfaceVibrationListener.VibrationListenerConfig
-
onSignalReceive
public void onSignalReceive(ServerLevel p_239108_, GameEventListener p_239109_, BlockPos p_239110_, GameEvent p_239111_, @Nullable @Nullable Entity p_239112_, @Nullable @Nullable Entity p_239113_, float p_239114_) - Specified by:
onSignalReceive
in interfaceVibrationListener.VibrationListenerConfig
-
getListenableEvents
- Specified by:
getListenableEvents
in interfaceVibrationListener.VibrationListenerConfig
-