net.minecraft.server.level

public class ServerPlayerGameMode

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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_20325
LOGGER
protected ServerLevel
c
level
field_14007
world
protected final ServerPlayer
d
player
field_14008
player
private GameType
b
gameModeForPlayer
field_14005
gameMode
private GameType
e
previousGameModeForPlayer
field_25715
previousGameMode
private boolean
f
isDestroyingBlock
field_14003
mining
private int
g
destroyProgressStart
field_20326
startMiningTime
private BlockPos
h
destroyPos
field_20327
miningPos
private int
i
gameTicks
field_14000
tickCounter
private boolean
j
hasDelayedDestroy
field_20328
failedToMine
private BlockPos
k
delayedDestroyPos
field_20329
failedMiningPos
private int
l
delayedTickStart
field_20330
failedStartMiningTime
private int
m
lastSentState
field_20331
blockBreakingProgress

Constructor summary

ModifierConstructor
public (ServerPlayer player)

Method summary

Modifier and TypeMethod
public boolean
a(dhf arg0)
changeGameModeForPlayer(GameType arg0)
method_30118(class_1934 arg0)
changeGameMode(GameMode gameMode)
protected void
a(dhf arg0, dhf arg1)
setGameModeForPlayer(GameType arg0, GameType arg1)
method_14261(class_1934 arg0, class_1934 arg1)
setGameMode(GameMode gameMode, GameMode previousGameMode)
public GameType
b()
getGameModeForPlayer()
method_14257()
getGameMode()
public GameType
c()
getPreviousGameModeForPlayer()
method_30119()
getPreviousGameMode()
public boolean
d()
isSurvival()
method_14267()
isSurvivalLike()
public boolean
e()
isCreative()
method_14268()
isCreative()
public void
a()
tick()
method_14264()
update()
private float
a(dxv arg0, jh arg1, int arg2)
incrementDestroyProgress(BlockState arg0, BlockPos arg1, int arg2)
method_21716(class_2680 arg0, class_2338 arg1, int arg2)
continueMining(BlockState state, BlockPos pos, int failedStartMiningTime)
private void
a(jh arg0, boolean arg1, int arg2, String arg3)
debugLogging(BlockPos arg0, boolean arg1, int arg2, String arg3)
method_41250(class_2338 arg0, boolean arg1, int arg2, String arg3)
onBlockBreakingAction(BlockPos pos, boolean success, int sequence, String reason)
public void
a(jh arg0, air$a arg1, jm arg2, int arg3, int arg4)
handleBlockBreakAction(BlockPos arg0, ServerboundPlayerActionPacket$Action arg1, Direction arg2, int arg3, int arg4)
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
a(jh arg0, int arg1, String arg2)
destroyAndAck(BlockPos arg0, int arg1, String arg2)
method_21717(class_2338 arg0, int arg1, String arg2)
finishMining(BlockPos pos, int sequence, String reason)
public boolean
a(jh arg0)
destroyBlock(BlockPos arg0)
method_14266(class_2338 arg0)
tryBreakBlock(BlockPos pos)
public InteractionResult
a(asi arg0, dhi arg1, cxp arg2, bti arg3)
useItem(ServerPlayer arg0, Level arg1, ItemStack arg2, InteractionHand arg3)
method_14256(class_3222 arg0, class_1937 arg1, class_1799 arg2, class_1268 arg3)
interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
public InteractionResult
a(asi arg0, dhi arg1, cxp arg2, bti arg3, fbu arg4)
useItemOn(ServerPlayer arg0, Level arg1, ItemStack arg2, InteractionHand arg3, BlockHitResult arg4)
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
a(ash arg0)
setLevel(ServerLevel arg0)
method_14259(class_3218 arg0)
setWorld(ServerWorld world)