Package net.minecraft.client.multiplayer
Class PlayerController
java.lang.Object
net.minecraft.client.multiplayer.PlayerController
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final ClientPlayNetHandler
private BlockPos
private int
private ItemStack
private float
private float
private boolean
private GameType
private static final org.apache.logging.log4j.Logger
private final Minecraft
private GameType
private final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,
CPlayerDiggingPacket.Action>, Vector3d> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustPlayer
(PlayerEntity p_78748_1_) void
attack
(PlayerEntity p_78764_1_, Entity p_78764_2_) boolean
boolean
continueDestroyBlock
(BlockPos p_180512_1_, Direction p_180512_2_) createPlayer
(ClientWorld p_199681_1_, StatisticsManager p_199681_2_, ClientRecipeBook p_199681_3_) createPlayer
(ClientWorld p_239167_1_, StatisticsManager p_239167_2_, ClientRecipeBook p_239167_3_, boolean p_239167_4_, boolean p_239167_5_) boolean
destroyBlock
(BlockPos p_187103_1_) private void
float
void
handleBlockBreakAck
(ClientWorld p_225323_1_, BlockPos p_225323_2_, BlockState p_225323_3_, CPlayerDiggingPacket.Action p_225323_4_, boolean p_225323_5_) void
handleCreativeModeItemAdd
(ItemStack p_78761_1_, int p_78761_2_) void
handleCreativeModeItemDrop
(ItemStack p_78752_1_) void
handleInventoryButtonClick
(int p_78756_1_, int p_78756_2_) handleInventoryMouseClick
(int p_187098_1_, int p_187098_2_, int p_187098_3_, ClickType p_187098_4_, PlayerEntity p_187098_5_) void
handlePickItem
(int p_187100_1_) void
handlePlaceRecipe
(int p_203413_1_, IRecipe<?> p_203413_2_, boolean p_203413_3_) boolean
boolean
boolean
boolean
interact
(PlayerEntity p_187097_1_, Entity p_187097_2_, Hand p_187097_3_) interactAt
(PlayerEntity p_187102_1_, Entity p_187102_2_, EntityRayTraceResult p_187102_3_, Hand p_187102_4_) boolean
boolean
boolean
void
releaseUsingItem
(PlayerEntity p_78766_1_) private boolean
sameDestroyTarget
(BlockPos p_178893_1_) private void
sendBlockAction
(CPlayerDiggingPacket.Action p_225324_1_, BlockPos p_225324_2_, Direction p_225324_3_) void
setLocalMode
(GameType p_78746_1_) void
setPreviousLocalMode
(GameType p_241675_1_) boolean
startDestroyBlock
(BlockPos p_180511_1_, Direction p_180511_2_) void
void
tick()
useItem
(PlayerEntity p_187101_1_, World p_187101_2_, Hand p_187101_3_) useItemOn
(ClientPlayerEntity p_217292_1_, ClientWorld p_217292_2_, Hand p_217292_3_, BlockRayTraceResult p_217292_4_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
minecraft
-
connection
-
destroyBlockPos
-
destroyingItem
-
destroyProgress
private float destroyProgress -
destroyTicks
private float destroyTicks -
destroyDelay
private int destroyDelay -
isDestroying
private boolean isDestroying -
localPlayerMode
-
previousLocalPlayerMode
-
unAckedActions
private final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,CPlayerDiggingPacket.Action>, unAckedActionsVector3d> -
carriedIndex
private int carriedIndex
-
-
Constructor Details
-
PlayerController
-
-
Method Details
-
adjustPlayer
-
setPreviousLocalMode
-
setLocalMode
-
canHurtPlayer
public boolean canHurtPlayer() -
destroyBlock
-
startDestroyBlock
-
stopDestroyBlock
public void stopDestroyBlock() -
continueDestroyBlock
-
getPickRange
public float getPickRange() -
tick
public void tick() -
sameDestroyTarget
-
ensureHasSentCarriedItem
private void ensureHasSentCarriedItem() -
useItemOn
public ActionResultType useItemOn(ClientPlayerEntity p_217292_1_, ClientWorld p_217292_2_, Hand p_217292_3_, BlockRayTraceResult p_217292_4_) -
useItem
-
createPlayer
public ClientPlayerEntity createPlayer(ClientWorld p_199681_1_, StatisticsManager p_199681_2_, ClientRecipeBook p_199681_3_) -
createPlayer
public ClientPlayerEntity createPlayer(ClientWorld p_239167_1_, StatisticsManager p_239167_2_, ClientRecipeBook p_239167_3_, boolean p_239167_4_, boolean p_239167_5_) -
attack
-
interact
-
interactAt
public ActionResultType interactAt(PlayerEntity p_187102_1_, Entity p_187102_2_, EntityRayTraceResult p_187102_3_, Hand p_187102_4_) -
handleInventoryMouseClick
public ItemStack handleInventoryMouseClick(int p_187098_1_, int p_187098_2_, int p_187098_3_, ClickType p_187098_4_, PlayerEntity p_187098_5_) -
handlePlaceRecipe
-
handleInventoryButtonClick
public void handleInventoryButtonClick(int p_78756_1_, int p_78756_2_) -
handleCreativeModeItemAdd
-
handleCreativeModeItemDrop
-
releaseUsingItem
-
hasExperience
public boolean hasExperience() -
hasMissTime
public boolean hasMissTime() -
hasInfiniteItems
public boolean hasInfiniteItems() -
hasFarPickRange
public boolean hasFarPickRange() -
isServerControlledInventory
public boolean isServerControlledInventory() -
isAlwaysFlying
public boolean isAlwaysFlying() -
getPreviousPlayerMode
-
getPlayerMode
-
isDestroying
public boolean isDestroying() -
handlePickItem
public void handlePickItem(int p_187100_1_) -
sendBlockAction
private void sendBlockAction(CPlayerDiggingPacket.Action p_225324_1_, BlockPos p_225324_2_, Direction p_225324_3_) -
handleBlockBreakAck
public void handleBlockBreakAck(ClientWorld p_225323_1_, BlockPos p_225323_2_, BlockState p_225323_3_, CPlayerDiggingPacket.Action p_225323_4_, boolean p_225323_5_)
-