Class ClientPlayerInteractionManager

java.lang.Object
net.minecraft.client.network.ClientPlayerInteractionManager

@Environment(CLIENT)
public class ClientPlayerInteractionManager
extends Object
Mappings:
Namespace Name
official bda
intermediary net/minecraft/class_906
named net/minecraft/client/network/ClientPlayerInteractionManager
  • Field Details

    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a:Lave;
      intermediary field_3988 Lnet/minecraft/class_906;field_3988:Lnet/minecraft/class_669;
      named client Lnet/minecraft/client/network/ClientPlayerInteractionManager;client:Lnet/minecraft/client/MinecraftClient;
    • networkHandler

      private final ClientPlayNetworkHandler networkHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lbda;b:Lbcy;
      intermediary field_3989 Lnet/minecraft/class_906;field_3989:Lnet/minecraft/class_903;
      named networkHandler Lnet/minecraft/client/network/ClientPlayerInteractionManager;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
    • currentBreakingPos

      private BlockPos currentBreakingPos
      Mappings:
      Namespace Name Mixin selector
      official c Lbda;c:Lcj;
      intermediary field_3990 Lnet/minecraft/class_906;field_3990:Lnet/minecraft/class_1372;
      named currentBreakingPos Lnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingPos:Lnet/minecraft/util/math/BlockPos;
    • selectedStack

      private ItemStack selectedStack
      Mappings:
      Namespace Name Mixin selector
      official d Lbda;d:Lzx;
      intermediary field_3991 Lnet/minecraft/class_906;field_3991:Lnet/minecraft/class_2056;
      named selectedStack Lnet/minecraft/client/network/ClientPlayerInteractionManager;selectedStack:Lnet/minecraft/item/ItemStack;
    • currentBreakingProgress

      private float currentBreakingProgress
      Mappings:
      Namespace Name Mixin selector
      official e Lbda;e:F
      intermediary field_3992 Lnet/minecraft/class_906;field_3992:F
      named currentBreakingProgress Lnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingProgress:F
    • blockBreakingSoundCooldown

      private float blockBreakingSoundCooldown
      Mappings:
      Namespace Name Mixin selector
      official f Lbda;f:F
      intermediary field_3993 Lnet/minecraft/class_906;field_3993:F
      named blockBreakingSoundCooldown Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingSoundCooldown:F
    • blockBreakingCooldown

      private int blockBreakingCooldown
      Mappings:
      Namespace Name Mixin selector
      official g Lbda;g:I
      intermediary field_3994 Lnet/minecraft/class_906;field_3994:I
      named blockBreakingCooldown Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I
    • breakingBlock

      private boolean breakingBlock
      Mappings:
      Namespace Name Mixin selector
      official h Lbda;h:Z
      intermediary field_3995 Lnet/minecraft/class_906;field_3995:Z
      named breakingBlock Lnet/minecraft/client/network/ClientPlayerInteractionManager;breakingBlock:Z
    • gameMode

      private LevelInfo.GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      official i Lbda;i:Ladp$a;
      intermediary field_3996 Lnet/minecraft/class_906;field_3996:Lnet/minecraft/class_102$class_103;
      named gameMode Lnet/minecraft/client/network/ClientPlayerInteractionManager;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • lastSelectedSlot

      private int lastSelectedSlot
      Mappings:
      Namespace Name Mixin selector
      official j Lbda;j:I
      intermediary field_3997 Lnet/minecraft/class_906;field_3997:I
      named lastSelectedSlot Lnet/minecraft/client/network/ClientPlayerInteractionManager;lastSelectedSlot:I
  • Constructor Details

    • ClientPlayerInteractionManager

      public ClientPlayerInteractionManager​(MinecraftClient client, ClientPlayNetworkHandler clientPlayNetworkHandler)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbda;<init>(Lave;Lbcy;)V
      intermediary <init> Lnet/minecraft/class_906;<init>(Lnet/minecraft/class_669;Lnet/minecraft/class_903;)V
      named <init> Lnet/minecraft/client/network/ClientPlayerInteractionManager;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ClientPlayNetworkHandler;)V
  • Method Details

    • breakBlockOrFire

      public static void breakBlockOrFire​(MinecraftClient client, ClientPlayerInteractionManager interactionManager, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lave;Lbda;Lcj;Lcq;)V
      intermediary method_3127 Lnet/minecraft/class_906;method_3127(Lnet/minecraft/class_669;Lnet/minecraft/class_906;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)V
      named breakBlockOrFire Lnet/minecraft/client/network/ClientPlayerInteractionManager;breakBlockOrFire(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ClientPlayerInteractionManager;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
    • copyAbilities

      public void copyAbilities​(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lwn;)V
      intermediary method_3131 Lnet/minecraft/class_906;method_3131(Lnet/minecraft/class_1963;)V
      named copyAbilities Lnet/minecraft/client/network/ClientPlayerInteractionManager;copyAbilities(Lnet/minecraft/entity/player/PlayerEntity;)V
    • isSpectator

      public boolean isSpectator()
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a()Z
      intermediary method_3122 Lnet/minecraft/class_906;method_3122()Z
      named isSpectator Lnet/minecraft/client/network/ClientPlayerInteractionManager;isSpectator()Z
    • setGameMode

      public void setGameMode​(LevelInfo.GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Ladp$a;)V
      intermediary method_3126 Lnet/minecraft/class_906;method_3126(Lnet/minecraft/class_102$class_103;)V
      named setGameMode Lnet/minecraft/client/network/ClientPlayerInteractionManager;setGameMode(Lnet/minecraft/world/level/LevelInfo$GameMode;)V
    • method_3139

      public void method_3139​(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbda;b(Lwn;)V
      intermediary method_3139 Lnet/minecraft/class_906;method_3139(Lnet/minecraft/class_1963;)V
      named method_3139 Lnet/minecraft/client/network/ClientPlayerInteractionManager;method_3139(Lnet/minecraft/entity/player/PlayerEntity;)V
    • hasStatusBars

      public boolean hasStatusBars()
      Mappings:
      Namespace Name Mixin selector
      official b Lbda;b()Z
      intermediary method_3137 Lnet/minecraft/class_906;method_3137()Z
      named hasStatusBars Lnet/minecraft/client/network/ClientPlayerInteractionManager;hasStatusBars()Z
    • breakBlock

      public boolean breakBlock​(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lcj;Lcq;)Z
      intermediary method_3130 Lnet/minecraft/class_906;method_3130(Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named breakBlock Lnet/minecraft/client/network/ClientPlayerInteractionManager;breakBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • attackBlock

      public boolean attackBlock​(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lbda;b(Lcj;Lcq;)Z
      intermediary method_3138 Lnet/minecraft/class_906;method_3138(Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named attackBlock Lnet/minecraft/client/network/ClientPlayerInteractionManager;attackBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • cancelBlockBreaking

      public void cancelBlockBreaking()
      Mappings:
      Namespace Name Mixin selector
      official c Lbda;c()V
      intermediary method_3141 Lnet/minecraft/class_906;method_3141()V
      named cancelBlockBreaking Lnet/minecraft/client/network/ClientPlayerInteractionManager;cancelBlockBreaking()V
    • updateBlockBreakingProgress

      public boolean updateBlockBreakingProgress​(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Lbda;c(Lcj;Lcq;)Z
      intermediary method_3142 Lnet/minecraft/class_906;method_3142(Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named updateBlockBreakingProgress Lnet/minecraft/client/network/ClientPlayerInteractionManager;updateBlockBreakingProgress(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • getReachDistance

      public float getReachDistance()
      Mappings:
      Namespace Name Mixin selector
      official d Lbda;d()F
      intermediary method_3144 Lnet/minecraft/class_906;method_3144()F
      named getReachDistance Lnet/minecraft/client/network/ClientPlayerInteractionManager;getReachDistance()F
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official e Lbda;e()V
      intermediary method_3145 Lnet/minecraft/class_906;method_3145()V
      named tick Lnet/minecraft/client/network/ClientPlayerInteractionManager;tick()V
    • isCurrentlyBreaking

      private boolean isCurrentlyBreaking​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lcj;)Z
      intermediary method_3129 Lnet/minecraft/class_906;method_3129(Lnet/minecraft/class_1372;)Z
      named isCurrentlyBreaking Lnet/minecraft/client/network/ClientPlayerInteractionManager;isCurrentlyBreaking(Lnet/minecraft/util/math/BlockPos;)Z
    • syncSelectedSlot

      private void syncSelectedSlot()
      Mappings:
      Namespace Name Mixin selector
      official n Lbda;n()V
      intermediary method_3154 Lnet/minecraft/class_906;method_3154()V
      named syncSelectedSlot Lnet/minecraft/client/network/ClientPlayerInteractionManager;syncSelectedSlot()V
    • onRightClick

      public boolean onRightClick​(ClientPlayerEntity player, ClientWorld world, ItemStack stack, BlockPos pos, Direction direction, Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lbew;Lbdb;Lzx;Lcj;Lcq;Laui;)Z
      intermediary method_3128 Lnet/minecraft/class_906;method_3128(Lnet/minecraft/class_996;Lnet/minecraft/class_907;Lnet/minecraft/class_2056;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;Lnet/minecraft/class_649;)Z
      named onRightClick Lnet/minecraft/client/network/ClientPlayerInteractionManager;onRightClick(Lnet/minecraft/client/network/ClientPlayerEntity;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Vec3d;)Z
    • method_3132

      public boolean method_3132​(PlayerEntity playerEntity, World world, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lwn;Ladm;Lzx;)Z
      intermediary method_3132 Lnet/minecraft/class_906;method_3132(Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_2056;)Z
      named method_3132 Lnet/minecraft/client/network/ClientPlayerInteractionManager;method_3132(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Z
    • createPlayer

      public ClientPlayerEntity createPlayer​(World world, StatHandler statHandler)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Ladm;Lnb;)Lbew;
      intermediary method_3125 Lnet/minecraft/class_906;method_3125(Lnet/minecraft/class_99;Lnet/minecraft/class_1688;)Lnet/minecraft/class_996;
      named createPlayer Lnet/minecraft/client/network/ClientPlayerInteractionManager;createPlayer(Lnet/minecraft/world/World;Lnet/minecraft/stat/StatHandler;)Lnet/minecraft/client/network/ClientPlayerEntity;
    • attackEntity

      public void attackEntity​(PlayerEntity player, Entity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lwn;Lpk;)V
      intermediary method_3133 Lnet/minecraft/class_906;method_3133(Lnet/minecraft/class_1963;Lnet/minecraft/class_1745;)V
      named attackEntity Lnet/minecraft/client/network/ClientPlayerInteractionManager;attackEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;)V
    • interactEntity

      public boolean interactEntity​(PlayerEntity playerEntity, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbda;b(Lwn;Lpk;)Z
      intermediary method_3140 Lnet/minecraft/class_906;method_3140(Lnet/minecraft/class_1963;Lnet/minecraft/class_1745;)Z
      named interactEntity Lnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;)Z
    • interactEntityAtLocation

      public boolean interactEntityAtLocation​(PlayerEntity player, Entity entity, HitResult hitResult)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lwn;Lpk;Lauh;)Z
      intermediary method_3134 Lnet/minecraft/class_906;method_3134(Lnet/minecraft/class_1963;Lnet/minecraft/class_1745;Lnet/minecraft/class_647;)Z
      named interactEntityAtLocation Lnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntityAtLocation(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/hit/HitResult;)Z
    • clickSlot

      public ItemStack clickSlot​(int syncId, int slotId, int mouseButton, int actionType, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(IIIILwn;)Lzx;
      intermediary method_3124 Lnet/minecraft/class_906;method_3124(IIIILnet/minecraft/class_1963;)Lnet/minecraft/class_2056;
      named clickSlot Lnet/minecraft/client/network/ClientPlayerInteractionManager;clickSlot(IIIILnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • clickButton

      public void clickButton​(int syncId, int buttonId)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(II)V
      intermediary method_3123 Lnet/minecraft/class_906;method_3123(II)V
      named clickButton Lnet/minecraft/client/network/ClientPlayerInteractionManager;clickButton(II)V
    • clickCreativeStack

      public void clickCreativeStack​(ItemStack stack, int slotId)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lzx;I)V
      intermediary method_3136 Lnet/minecraft/class_906;method_3136(Lnet/minecraft/class_2056;I)V
      named clickCreativeStack Lnet/minecraft/client/network/ClientPlayerInteractionManager;clickCreativeStack(Lnet/minecraft/item/ItemStack;I)V
    • dropCreativeStack

      public void dropCreativeStack​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(Lzx;)V
      intermediary method_3135 Lnet/minecraft/class_906;method_3135(Lnet/minecraft/class_2056;)V
      named dropCreativeStack Lnet/minecraft/client/network/ClientPlayerInteractionManager;dropCreativeStack(Lnet/minecraft/item/ItemStack;)V
    • stopUsingItem

      public void stopUsingItem​(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official c Lbda;c(Lwn;)V
      intermediary method_3143 Lnet/minecraft/class_906;method_3143(Lnet/minecraft/class_1963;)V
      named stopUsingItem Lnet/minecraft/client/network/ClientPlayerInteractionManager;stopUsingItem(Lnet/minecraft/entity/player/PlayerEntity;)V
    • hasExperienceBar

      public boolean hasExperienceBar()
      Mappings:
      Namespace Name Mixin selector
      official f Lbda;f()Z
      intermediary method_3146 Lnet/minecraft/class_906;method_3146()Z
      named hasExperienceBar Lnet/minecraft/client/network/ClientPlayerInteractionManager;hasExperienceBar()Z
    • hasLimitedAttackSpeed

      public boolean hasLimitedAttackSpeed()
      Mappings:
      Namespace Name Mixin selector
      official g Lbda;g()Z
      intermediary method_3147 Lnet/minecraft/class_906;method_3147()Z
      named hasLimitedAttackSpeed Lnet/minecraft/client/network/ClientPlayerInteractionManager;hasLimitedAttackSpeed()Z
    • hasCreativeInventory

      public boolean hasCreativeInventory()
      Mappings:
      Namespace Name Mixin selector
      official h Lbda;h()Z
      intermediary method_3148 Lnet/minecraft/class_906;method_3148()Z
      named hasCreativeInventory Lnet/minecraft/client/network/ClientPlayerInteractionManager;hasCreativeInventory()Z
    • hasExtendedReach

      public boolean hasExtendedReach()
      Mappings:
      Namespace Name Mixin selector
      official i Lbda;i()Z
      intermediary method_3149 Lnet/minecraft/class_906;method_3149()Z
      named hasExtendedReach Lnet/minecraft/client/network/ClientPlayerInteractionManager;hasExtendedReach()Z
    • hasRidingInventory

      public boolean hasRidingInventory()
      Mappings:
      Namespace Name Mixin selector
      official j Lbda;j()Z
      intermediary method_3150 Lnet/minecraft/class_906;method_3150()Z
      named hasRidingInventory Lnet/minecraft/client/network/ClientPlayerInteractionManager;hasRidingInventory()Z
    • isFlyingLocked

      public boolean isFlyingLocked()
      Mappings:
      Namespace Name Mixin selector
      official k Lbda;k()Z
      intermediary method_3151 Lnet/minecraft/class_906;method_3151()Z
      named isFlyingLocked Lnet/minecraft/client/network/ClientPlayerInteractionManager;isFlyingLocked()Z
    • getCurrentGameMode

      public LevelInfo.GameMode getCurrentGameMode()
      Mappings:
      Namespace Name Mixin selector
      official l Lbda;l()Ladp$a;
      intermediary method_3152 Lnet/minecraft/class_906;method_3152()Lnet/minecraft/class_102$class_103;
      named getCurrentGameMode Lnet/minecraft/client/network/ClientPlayerInteractionManager;getCurrentGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
    • isBreakingBlock

      public boolean isBreakingBlock()
      Mappings:
      Namespace Name Mixin selector
      official m Lbda;m()Z
      intermediary method_3153 Lnet/minecraft/class_906;method_3153()Z
      named isBreakingBlock Lnet/minecraft/client/network/ClientPlayerInteractionManager;isBreakingBlock()Z