Class Allay.VibrationUser
java.lang.Object
net.minecraft.world.entity.animal.allay.Allay.VibrationUser
- All Implemented Interfaces:
VibrationSystem.User
- Enclosing class:
Allay
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canReceiveVibration
(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) int
void
onReceiveVibration
(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) 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, canTriggerAvoidVibration, isValidVibration, onDataChanged, requiresAdjacentChunksToBeTicking
-
Field Details
-
VIBRATION_EVENT_LISTENER_RANGE
private static final int VIBRATION_EVENT_LISTENER_RANGE- See Also:
-
positionSource
-
-
Constructor Details
-
VibrationUser
VibrationUser()
-
-
Method Details
-
getListenerRadius
public int getListenerRadius()- Specified by:
getListenerRadius
in interfaceVibrationSystem.User
-
getPositionSource
- Specified by:
getPositionSource
in interfaceVibrationSystem.User
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) - Specified by:
canReceiveVibration
in interfaceVibrationSystem.User
-
onReceiveVibration
public void onReceiveVibration(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, @Nullable Entity p_281794_, @Nullable Entity p_281864_, float p_281642_) - Specified by:
onReceiveVibration
in interfaceVibrationSystem.User
-
getListenableEvents
- Specified by:
getListenableEvents
in interfaceVibrationSystem.User
-