Class PlayerController


  • public class PlayerController
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

        private final Minecraft minecraft
      • 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
      • carriedIndex

        private int carriedIndex
    • Method Detail

      • 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()
      • 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_)