类 SculkSensorBlockEntity.VibrationUser
java.lang.Object
net.minecraft.world.level.block.entity.SculkSensorBlockEntity.VibrationUser
- 所有已实现的接口:
VibrationSystem.User
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canReceiveVibration
(ServerLevel pLevel, BlockPos pPos, GameEvent pGameEvent, GameEvent.Context pContext) boolean
int
void
void
onReceiveVibration
(ServerLevel pLevel, BlockPos pPos, GameEvent pGameEvent, Entity pEntity, Entity pPlayerEntity, float pDistance) boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
calculateTravelTimeInTicks, getListenableEvents, isValidVibration
-
字段详细资料
-
LISTENER_RANGE
public static final int LISTENER_RANGE- 另请参阅:
-
blockPos
-
positionSource
-
-
构造器详细资料
-
VibrationUser
-
-
方法详细资料
-
getListenerRadius
public int getListenerRadius()- 指定者:
getListenerRadius
在接口中VibrationSystem.User
-
getPositionSource
- 指定者:
getPositionSource
在接口中VibrationSystem.User
-
canTriggerAvoidVibration
public boolean canTriggerAvoidVibration()- 指定者:
canTriggerAvoidVibration
在接口中VibrationSystem.User
-
canReceiveVibration
public boolean canReceiveVibration(ServerLevel pLevel, BlockPos pPos, GameEvent pGameEvent, @Nullable GameEvent.Context pContext) - 指定者:
canReceiveVibration
在接口中VibrationSystem.User
-
onReceiveVibration
public void onReceiveVibration(ServerLevel pLevel, BlockPos pPos, GameEvent pGameEvent, @Nullable Entity pEntity, @Nullable Entity pPlayerEntity, float pDistance) - 指定者:
onReceiveVibration
在接口中VibrationSystem.User
-
onDataChanged
public void onDataChanged()- 指定者:
onDataChanged
在接口中VibrationSystem.User
-
requiresAdjacentChunksToBeTicking
public boolean requiresAdjacentChunksToBeTicking()
-