Class Warden.VibrationUser
java.lang.Object
net.minecraft.world.entity.monster.warden.Warden.VibrationUser
- All Implemented Interfaces:
 VibrationSystem.User
- Enclosing class:
 - Warden
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanReceiveVibration(ServerLevel p_282574_, BlockPos p_282323_, GameEvent p_283003_, GameEvent.Context p_282515_) booleanintvoidonReceiveVibration(ServerLevel p_281325_, BlockPos p_282386_, GameEvent p_282261_, Entity p_281438_, Entity p_282582_, float p_283699_) 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, isValidVibration, onDataChanged, requiresAdjacentChunksToBeTicking 
- 
Field Details
- 
GAME_EVENT_LISTENER_RANGE
private static final int GAME_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
 - 
getListenableEvents
- Specified by:
 getListenableEventsin interfaceVibrationSystem.User
 - 
canTriggerAvoidVibration
public boolean canTriggerAvoidVibration()- Specified by:
 canTriggerAvoidVibrationin interfaceVibrationSystem.User
 - 
canReceiveVibration
public boolean canReceiveVibration(ServerLevel p_282574_, BlockPos p_282323_, GameEvent p_283003_, GameEvent.Context p_282515_) - Specified by:
 canReceiveVibrationin interfaceVibrationSystem.User
 - 
onReceiveVibration
public void onReceiveVibration(ServerLevel p_281325_, BlockPos p_282386_, GameEvent p_282261_, @Nullable Entity p_281438_, @Nullable Entity p_282582_, float p_283699_) - Specified by:
 onReceiveVibrationin interfaceVibrationSystem.User
 
 -