Class SculkShriekerBlockEntity.VibrationUser
java.lang.Object
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity.VibrationUser
- All Implemented Interfaces:
VibrationSystem.User
- Enclosing class:
SculkShriekerBlockEntity
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> event, GameEvent.Context context) intvoidvoidonReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity projectileOwner, float receivingDistance) booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
getListenerRadiusin interfaceVibrationSystem.User
-
getPositionSource
- Specified by:
getPositionSourcein interfaceVibrationSystem.User
-
getListenableEvents
- Specified by:
getListenableEventsin interfaceVibrationSystem.User
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> event, GameEvent.Context context) - Specified by:
canReceiveVibrationin interfaceVibrationSystem.User
-
onReceiveVibration
public void onReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity projectileOwner, float receivingDistance) - Specified by:
onReceiveVibrationin interfaceVibrationSystem.User
-
onDataChanged
public void onDataChanged()- Specified by:
onDataChangedin interfaceVibrationSystem.User
-
requiresAdjacentChunksToBeTicking
public boolean requiresAdjacentChunksToBeTicking()- Specified by:
requiresAdjacentChunksToBeTickingin interfaceVibrationSystem.User
-