net.minecraft.server.network

public class ServerPlayerInteractionManager

net.minecraft.server.level.ServerPlayerGameMode
net.minecraft.class_3225
net.minecraft.server.network.ServerPlayerInteractionManager

Field summary

Modifier and TypeField
private static final double
FLIGHT_DISABLE_RANGE
field_62843
field_62843
private static final org.slf4j.Logger
LOGGER
field_20325
LOGGER
protected ServerWorld
level
field_14007
world
protected final ServerPlayerEntity
player
field_14008
player
private GameMode
gameModeForPlayer
field_14005
gameMode
private GameMode
previousGameModeForPlayer
field_25715
previousGameMode
private boolean
isDestroyingBlock
field_14003
mining
private int
destroyProgressStart
field_20326
startMiningTime
private BlockPos
destroyPos
field_20327
miningPos
private int
gameTicks
field_14000
tickCounter
private boolean
hasDelayedDestroy
field_20328
failedToMine
private BlockPos
delayedDestroyPos
field_20329
failedMiningPos
private int
delayedTickStart
field_20330
failedStartMiningTime
private int
lastSentState
field_20331
blockBreakingProgress

Constructor summary

ModifierConstructor
public (ServerPlayerEntity player)

Method summary

Modifier and TypeMethod
public boolean
changeGameModeForPlayer(GameType gameModeForPlayer)
method_30118(class_1934 arg0)
changeGameMode(GameMode gameMode)
protected void
setGameModeForPlayer(GameType gameModeForPlayer, GameType previousGameModeForPlayer)
method_14261(class_1934 arg0, class_1934 arg1)
setGameMode(GameMode gameMode, GameMode previousGameMode)
private boolean
isInRangeOfGround()
method_74539()
isHoveringOnGround()
public GameMode
getGameModeForPlayer()
method_14257()
getGameMode()
public GameMode
getPreviousGameModeForPlayer()
method_30119()
getPreviousGameMode()
public boolean
isSurvival()
method_14267()
isSurvivalLike()
public boolean
isCreative()
method_14268()
isCreative()
public void
tick()
method_14264()
update()
private float
incrementDestroyProgress(BlockState blockState, BlockPos delayedDestroyPos, int destroyStartTick)
method_21716(class_2680 arg0, class_2338 arg1, int arg2)
continueMining(BlockState state, BlockPos pos, int failedStartMiningTime)
private void
debugLogging(BlockPos pos, boolean allGood, int sequence, String message)
method_41250(class_2338 arg0, boolean arg1, int arg2, String arg3)
onBlockBreakingAction(BlockPos pos, boolean success, int sequence, String reason)
public void
handleBlockBreakAction(BlockPos pos, ServerboundPlayerActionPacket$Action action, Direction direction, int maxY, int sequence)
method_14263(class_2338 arg0, class_2846$class_2847 arg1, class_2350 arg2, int arg3, int arg4)
processBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket$Action action, Direction direction, int worldHeight, int sequence)
public void
destroyAndAck(BlockPos pos, int sequence, String exitId)
method_21717(class_2338 arg0, int arg1, String arg2)
finishMining(BlockPos pos, int sequence, String reason)
public boolean
destroyBlock(BlockPos pos)
method_14266(class_2338 arg0)
tryBreakBlock(BlockPos pos)
public ActionResult
useItem(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand)
method_14256(class_3222 arg0, class_1937 arg1, class_1799 arg2, class_1268 arg3)
interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
public ActionResult
useItemOn(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand, BlockHitResult hitResult)
method_14262(class_3222 arg0, class_1937 arg1, class_1799 arg2, class_1268 arg3, class_3965 arg4)
interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
public void
setLevel(ServerLevel newLevel)
method_14259(class_3218 arg0)
setWorld(ServerWorld world)
private void
lambda$handleBlockBreakAction$0(Item arg0)
method_59904(class_1792 arg0)
method_59904(Item item)