Class PlayerController

java.lang.Object
net.minecraft.client.multiplayer.PlayerController

public class PlayerController extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • minecraft

      private final Minecraft minecraft
    • connection

      private final ClientPlayNetHandler connection
    • destroyBlockPos

      private BlockPos destroyBlockPos
    • destroyingItem

      private ItemStack destroyingItem
    • destroyProgress

      private float destroyProgress
    • destroyTicks

      private float destroyTicks
    • destroyDelay

      private int destroyDelay
    • isDestroying

      private boolean isDestroying
    • localPlayerMode

      private GameType localPlayerMode
    • previousLocalPlayerMode

      private GameType previousLocalPlayerMode
    • unAckedActions

      private final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,CPlayerDiggingPacket.Action>,Vector3d> unAckedActions
    • carriedIndex

      private int carriedIndex
  • Constructor Details

  • Method Details

    • adjustPlayer

      public void adjustPlayer(PlayerEntity p_78748_1_)
    • setPreviousLocalMode

      public void setPreviousLocalMode(GameType p_241675_1_)
    • setLocalMode

      public void setLocalMode(GameType p_78746_1_)
    • canHurtPlayer

      public boolean canHurtPlayer()
    • destroyBlock

      public boolean destroyBlock(BlockPos p_187103_1_)
    • startDestroyBlock

      public boolean startDestroyBlock(BlockPos p_180511_1_, Direction p_180511_2_)
    • stopDestroyBlock

      public void stopDestroyBlock()
    • continueDestroyBlock

      public boolean continueDestroyBlock(BlockPos p_180512_1_, Direction p_180512_2_)
    • getPickRange

      public float getPickRange()
    • tick

      public void tick()
    • sameDestroyTarget

      private boolean sameDestroyTarget(BlockPos p_178893_1_)
    • 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

      public ActionResultType useItem(PlayerEntity p_187101_1_, World p_187101_2_, Hand p_187101_3_)
    • 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

      public void attack(PlayerEntity p_78764_1_, Entity p_78764_2_)
    • interact

      public ActionResultType interact(PlayerEntity p_187097_1_, Entity p_187097_2_, Hand p_187097_3_)
    • 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

      public void handlePlaceRecipe(int p_203413_1_, IRecipe<?> p_203413_2_, boolean p_203413_3_)
    • handleInventoryButtonClick

      public void handleInventoryButtonClick(int p_78756_1_, int p_78756_2_)
    • handleCreativeModeItemAdd

      public void handleCreativeModeItemAdd(ItemStack p_78761_1_, int p_78761_2_)
    • handleCreativeModeItemDrop

      public void handleCreativeModeItemDrop(ItemStack p_78752_1_)
    • releaseUsingItem

      public void releaseUsingItem(PlayerEntity p_78766_1_)
    • 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

      public GameType getPreviousPlayerMode()
    • getPlayerMode

      public GameType 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_)