Class Allay.VibrationUser
java.lang.Object
net.minecraft.world.entity.animal.allay.Allay.VibrationUser
- All Implemented Interfaces:
- VibrationSystem.User
- Enclosing class:
- Allay
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem.UsercalculateTravelTimeInTicks, canTriggerAvoidVibration, isValidVibration, onDataChanged, requiresAdjacentChunksToBeTicking
- 
Field Details- 
VIBRATION_EVENT_LISTENER_RANGEprivate static final int VIBRATION_EVENT_LISTENER_RANGE- See Also:
 
- 
positionSource
 
- 
- 
Constructor Details- 
VibrationUserVibrationUser()
 
- 
- 
Method Details- 
getListenerRadiuspublic int getListenerRadius()- Specified by:
- getListenerRadiusin interface- VibrationSystem.User
 
- 
getPositionSource- Specified by:
- getPositionSourcein interface- VibrationSystem.User
 
- 
canReceiveVibrationpublic boolean canReceiveVibration(ServerLevel p_282038_, BlockPos p_283385_, GameEvent p_283669_, GameEvent.Context p_282208_) - Specified by:
- canReceiveVibrationin interface- VibrationSystem.User
 
- 
onReceiveVibrationpublic 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 interface- VibrationSystem.User
 
- 
getListenableEvents- Specified by:
- getListenableEventsin interface- VibrationSystem.User
 
 
-