Class SculkShriekerBlockEntity.VibrationUser
java.lang.Object
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity.VibrationUser
- All Implemented Interfaces:
VibrationSystem.User
- Enclosing class:
SculkShriekerBlockEntity
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canReceiveVibration
(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_335342_, GameEvent.Context p_282914_) int
void
void
onReceiveVibration
(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_330622_, Entity p_282286_, Entity p_281384_, float p_283119_) boolean
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
-
Field Details
-
LISTENER_RADIUS
private static final int LISTENER_RADIUS- See Also:
-
positionSource
-
-
Constructor Details
-
VibrationUser
public 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
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_335342_, GameEvent.Context p_282914_) - Specified by:
canReceiveVibration
in interfaceVibrationSystem.User
-
onReceiveVibration
public void onReceiveVibration(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_330622_, @Nullable Entity p_282286_, @Nullable Entity p_281384_, float p_283119_) - Specified by:
onReceiveVibration
in interfaceVibrationSystem.User
-
onDataChanged
public void onDataChanged()- Specified by:
onDataChanged
in interfaceVibrationSystem.User
-
requiresAdjacentChunksToBeTicking
public boolean requiresAdjacentChunksToBeTicking()- Specified by:
requiresAdjacentChunksToBeTicking
in interfaceVibrationSystem.User
-