Class Warden.VibrationUser
java.lang.Object
net.minecraft.world.entity.monster.warden.Warden.VibrationUser
- All Implemented Interfaces:
VibrationSystem.User
- Enclosing class:
- Warden
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canReceiveVibration
(ServerLevel p_282574_, BlockPos p_282323_, GameEvent p_283003_, GameEvent.Context p_282515_) boolean
int
void
onReceiveVibration
(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, wait
Methods 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:
getListenerRadius
in interfaceVibrationSystem.User
-
getPositionSource
- Specified by:
getPositionSource
in interfaceVibrationSystem.User
-
getListenableEvents
- Specified by:
getListenableEvents
in interfaceVibrationSystem.User
-
canTriggerAvoidVibration
public boolean canTriggerAvoidVibration()- Specified by:
canTriggerAvoidVibration
in interfaceVibrationSystem.User
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel p_282574_, BlockPos p_282323_, GameEvent p_283003_, GameEvent.Context p_282515_) - Specified by:
canReceiveVibration
in 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:
onReceiveVibration
in interfaceVibrationSystem.User
-