Class MultiPlayerGameMode

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

public class MultiPlayerGameMode extends Object
  • Field Details

    • LOGGER

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

      private final Minecraft minecraft
    • connection

      private final ClientPacketListener 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

      @Nullable private GameType previousLocalPlayerMode
    • unAckedActions

      private final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,​ServerboundPlayerActionPacket.Action>,​Vec3> unAckedActions
    • MAX_ACTIONS_SIZE

      private static final int MAX_ACTIONS_SIZE
      See Also:
      Constant Field Values
    • carriedIndex

      private int carriedIndex
  • Constructor Details

  • Method Details

    • adjustPlayer

      public void adjustPlayer(Player p_105222_)
    • setLocalMode

      public void setLocalMode(GameType p_171806_, @Nullable GameType p_171807_)
    • setLocalMode

      public void setLocalMode(GameType p_105280_)
    • canHurtPlayer

      public boolean canHurtPlayer()
    • destroyBlock

      public boolean destroyBlock(BlockPos p_105268_)
    • startDestroyBlock

      public boolean startDestroyBlock(BlockPos p_105270_, Direction p_105271_)
    • stopDestroyBlock

      public void stopDestroyBlock()
    • continueDestroyBlock

      public boolean continueDestroyBlock(BlockPos p_105284_, Direction p_105285_)
    • getPickRange

      public float getPickRange()
    • tick

      public void tick()
    • sameDestroyTarget

      private boolean sameDestroyTarget(BlockPos p_105282_)
    • ensureHasSentCarriedItem

      private void ensureHasSentCarriedItem()
    • useItemOn

      public InteractionResult useItemOn(LocalPlayer p_105263_, ClientLevel p_105264_, InteractionHand p_105265_, BlockHitResult p_105266_)
    • useItem

      public InteractionResult useItem(Player p_105236_, Level p_105237_, InteractionHand p_105238_)
    • createPlayer

      public LocalPlayer createPlayer(ClientLevel p_105247_, StatsCounter p_105248_, ClientRecipeBook p_105249_)
    • createPlayer

      public LocalPlayer createPlayer(ClientLevel p_105251_, StatsCounter p_105252_, ClientRecipeBook p_105253_, boolean p_105254_, boolean p_105255_)
    • attack

      public void attack(Player p_105224_, Entity p_105225_)
    • interact

      public InteractionResult interact(Player p_105227_, Entity p_105228_, InteractionHand p_105229_)
    • interactAt

      public InteractionResult interactAt(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_)
    • handleInventoryMouseClick

      public void handleInventoryMouseClick(int p_171800_, int p_171801_, int p_171802_, ClickType p_171803_, Player p_171804_)
    • handlePlaceRecipe

      public void handlePlaceRecipe(int p_105218_, Recipe<?> p_105219_, boolean p_105220_)
    • handleInventoryButtonClick

      public void handleInventoryButtonClick(int p_105209_, int p_105210_)
    • handleCreativeModeItemAdd

      public void handleCreativeModeItemAdd(ItemStack p_105242_, int p_105243_)
    • handleCreativeModeItemDrop

      public void handleCreativeModeItemDrop(ItemStack p_105240_)
    • releaseUsingItem

      public void releaseUsingItem(Player p_105278_)
    • 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

      @Nullable public GameType getPreviousPlayerMode()
    • getPlayerMode

      public GameType getPlayerMode()
    • isDestroying

      public boolean isDestroying()
    • handlePickItem

      public void handlePickItem(int p_105207_)
    • sendBlockAction

      private void sendBlockAction(ServerboundPlayerActionPacket.Action p_105273_, BlockPos p_105274_, Direction p_105275_)
    • handleBlockBreakAck

      public void handleBlockBreakAck(ClientLevel p_105257_, BlockPos p_105258_, BlockState p_105259_, ServerboundPlayerActionPacket.Action p_105260_, boolean p_105261_)