Package net.minecraft.client.multiplayer
Class PlayerController
java.lang.Object
net.minecraft.client.multiplayer.PlayerController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final ClientPlayNetHandlerprivate BlockPosprivate intprivate ItemStackprivate floatprivate floatprivate booleanprivate GameTypeprivate static final org.apache.logging.log4j.Loggerprivate final Minecraftprivate GameTypeprivate final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,CPlayerDiggingPacket.Action>, Vector3d> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustPlayer(PlayerEntity p_78748_1_) voidattack(PlayerEntity p_78764_1_, Entity p_78764_2_) booleanbooleancontinueDestroyBlock(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_) booleandestroyBlock(BlockPos p_187103_1_) private voidfloatvoidhandleBlockBreakAck(ClientWorld p_225323_1_, BlockPos p_225323_2_, BlockState p_225323_3_, CPlayerDiggingPacket.Action p_225323_4_, boolean p_225323_5_) voidhandleCreativeModeItemAdd(ItemStack p_78761_1_, int p_78761_2_) voidhandleCreativeModeItemDrop(ItemStack p_78752_1_) voidhandleInventoryButtonClick(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_) voidhandlePickItem(int p_187100_1_) voidhandlePlaceRecipe(int p_203413_1_, IRecipe<?> p_203413_2_, boolean p_203413_3_) booleanbooleanbooleanbooleaninteract(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_) booleanbooleanbooleanvoidreleaseUsingItem(PlayerEntity p_78766_1_) private booleansameDestroyTarget(BlockPos p_178893_1_) private voidsendBlockAction(CPlayerDiggingPacket.Action p_225324_1_, BlockPos p_225324_2_, Direction p_225324_3_) voidsetLocalMode(GameType p_78746_1_) voidsetPreviousLocalMode(GameType p_241675_1_) booleanstartDestroyBlock(BlockPos p_180511_1_, Direction p_180511_2_) voidvoidtick()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_)
-