Package net.minecraft.server.management
Class PlayerInteractionManager
java.lang.Object
net.minecraft.server.management.PlayerInteractionManager
- Direct Known Subclasses:
DemoPlayerInteractionManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroyAndAck
(BlockPos p_229860_1_, CPlayerDiggingPacket.Action p_229860_2_, String p_229860_3_) boolean
destroyBlock
(BlockPos p_180237_1_) void
handleBlockBreakAction
(BlockPos p_225416_1_, CPlayerDiggingPacket.Action p_225416_2_, Direction p_225416_3_, int p_225416_4_) private float
incrementDestroyProgress
(BlockState p_229859_1_, BlockPos p_229859_2_, int p_229859_3_) boolean
boolean
private boolean
removeBlock
(BlockPos p_180235_1_, boolean canHarvest) void
setGameModeForPlayer
(GameType p_73076_1_) void
setGameModeForPlayer
(GameType p_241820_1_, GameType p_241820_2_) void
setLevel
(ServerWorld p_73080_1_) void
tick()
void
updateGameMode
(GameType p_73077_1_) useItem
(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_) useItemOn
(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
level
-
player
-
gameModeForPlayer
-
previousGameModeForPlayer
-
isDestroyingBlock
private boolean isDestroyingBlock -
destroyProgressStart
private int destroyProgressStart -
destroyPos
-
gameTicks
private int gameTicks -
hasDelayedDestroy
private boolean hasDelayedDestroy -
delayedDestroyPos
-
delayedTickStart
private int delayedTickStart -
lastSentState
private int lastSentState
-
-
Constructor Details
-
PlayerInteractionManager
-
-
Method Details
-
setGameModeForPlayer
-
setGameModeForPlayer
-
getGameModeForPlayer
-
getPreviousGameModeForPlayer
-
isSurvival
public boolean isSurvival() -
isCreative
public boolean isCreative() -
updateGameMode
-
tick
public void tick() -
incrementDestroyProgress
private float incrementDestroyProgress(BlockState p_229859_1_, BlockPos p_229859_2_, int p_229859_3_) -
handleBlockBreakAction
public void handleBlockBreakAction(BlockPos p_225416_1_, CPlayerDiggingPacket.Action p_225416_2_, Direction p_225416_3_, int p_225416_4_) -
destroyAndAck
public void destroyAndAck(BlockPos p_229860_1_, CPlayerDiggingPacket.Action p_229860_2_, String p_229860_3_) -
destroyBlock
-
removeBlock
-
useItem
public ActionResultType useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_) -
useItemOn
public ActionResultType useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_) -
setLevel
-