Class MultiPlayerGameMode

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

public class MultiPlayerGameMode extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.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
    • 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_)
    • startPrediction

      private void startPrediction(ClientLevel p_233730_, PredictiveAction p_233731_)
    • 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_233733_, InteractionHand p_233734_, BlockHitResult p_233735_)
    • performUseItemOn

      private InteractionResult performUseItemOn(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_)
    • useItem

      public InteractionResult useItem(Player p_233722_, InteractionHand p_233723_)
    • 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_, RecipeHolder<?> p_300726_, 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()
    • getDestroyStage

      public int getDestroyStage()
    • handlePickItem

      public void handlePickItem(int p_105207_)
    • handleSlotStateChanged

      public void handleSlotStateChanged(int p_312970_, int p_309738_, boolean p_310073_)