Class Allay.VibrationUser
java.lang.Object
net.minecraft.world.entity.animal.allay.Allay.VibrationUser
- All Implemented Interfaces:
 VibrationSystem.User
- Enclosing class:
 - Allay
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanReceiveVibration(ServerLevel p_282038_, BlockPos p_283385_, GameEvent p_283669_, GameEvent.Context p_282208_) intvoidonReceiveVibration(ServerLevel p_281422_, BlockPos p_281449_, GameEvent p_281488_, 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, waitMethods 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:
 getListenerRadiusin interfaceVibrationSystem.User
 - 
getPositionSource
- Specified by:
 getPositionSourcein interfaceVibrationSystem.User
 - 
canReceiveVibration
public boolean canReceiveVibration(ServerLevel p_282038_, BlockPos p_283385_, GameEvent p_283669_, GameEvent.Context p_282208_) - Specified by:
 canReceiveVibrationin interfaceVibrationSystem.User
 - 
onReceiveVibration
public void onReceiveVibration(ServerLevel p_281422_, BlockPos p_281449_, GameEvent p_281488_, @Nullable Entity p_281794_, @Nullable Entity p_281864_, float p_281642_) - Specified by:
 onReceiveVibrationin interfaceVibrationSystem.User
 - 
getListenableEvents
- Specified by:
 getListenableEventsin interfaceVibrationSystem.User
 
 -