Package net.minecraft.client.network
Class ClientPlayerInteractionManager
java.lang.Object
net.minecraft.client.network.ClientPlayerInteractionManager
@Environment(CLIENT) public class ClientPlayerInteractionManager extends Object
- Mappings:
Namespace Name official eebintermediary net/minecraft/class_636named net/minecraft/client/network/ClientPlayerInteractionManager
-
Field Summary
Fields Modifier and Type Field Description private intblockBreakingCooldownprivate floatblockBreakingSoundCooldownprivate booleanbreakingBlockprivate MinecraftClientclientprivate BlockPoscurrentBreakingPosprivate floatcurrentBreakingProgressprivate GameModegameModeprivate intlastSelectedSlotprivate static LoggerLOGGERprivate ClientPlayNetworkHandlernetworkHandlerprivate GameModepreviousGameModeprivate ItemStackselectedStackprivate Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,PlayerActionC2SPacket.Action>,Vec3d>unacknowledgedPlayerActions -
Constructor Summary
Constructors Constructor Description ClientPlayerInteractionManager(MinecraftClient client, ClientPlayNetworkHandler networkHandler) -
Method Summary
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLeeb;a:Lorg/apache/logging/log4j/Logger;intermediary field_20316Lnet/minecraft/class_636;field_20316:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/network/ClientPlayerInteractionManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector official bLeeb;b:Ldqk;intermediary field_3712Lnet/minecraft/class_636;field_3712:Lnet/minecraft/class_310;named clientLnet/minecraft/client/network/ClientPlayerInteractionManager;client:Lnet/minecraft/client/MinecraftClient;
-
networkHandler
- Mappings:
Namespace Name Mixin selector official cLeeb;c:Ledz;intermediary field_3720Lnet/minecraft/class_636;field_3720:Lnet/minecraft/class_634;named networkHandlerLnet/minecraft/client/network/ClientPlayerInteractionManager;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
-
currentBreakingPos
- Mappings:
Namespace Name Mixin selector official dLeeb;d:Lfx;intermediary field_3714Lnet/minecraft/class_636;field_3714:Lnet/minecraft/class_2338;named currentBreakingPosLnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingPos:Lnet/minecraft/util/math/BlockPos;
-
selectedStack
- Mappings:
Namespace Name Mixin selector official eLeeb;e:Lbnv;intermediary field_3718Lnet/minecraft/class_636;field_3718:Lnet/minecraft/class_1799;named selectedStackLnet/minecraft/client/network/ClientPlayerInteractionManager;selectedStack:Lnet/minecraft/item/ItemStack;
-
currentBreakingProgress
private float currentBreakingProgress- Mappings:
Namespace Name Mixin selector official fLeeb;f:Fintermediary field_3715Lnet/minecraft/class_636;field_3715:Fnamed currentBreakingProgressLnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingProgress:F
-
blockBreakingSoundCooldown
private float blockBreakingSoundCooldown- Mappings:
Namespace Name Mixin selector official gLeeb;g:Fintermediary field_3713Lnet/minecraft/class_636;field_3713:Fnamed blockBreakingSoundCooldownLnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingSoundCooldown:F
-
blockBreakingCooldown
private int blockBreakingCooldown- Mappings:
Namespace Name Mixin selector official hLeeb;h:Iintermediary field_3716Lnet/minecraft/class_636;field_3716:Inamed blockBreakingCooldownLnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I
-
breakingBlock
private boolean breakingBlock- Mappings:
Namespace Name Mixin selector official iLeeb;i:Zintermediary field_3717Lnet/minecraft/class_636;field_3717:Znamed breakingBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;breakingBlock:Z
-
gameMode
- Mappings:
Namespace Name Mixin selector official jLeeb;j:Lbts;intermediary field_3719Lnet/minecraft/class_636;field_3719:Lnet/minecraft/class_1934;named gameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;gameMode:Lnet/minecraft/world/GameMode;
-
previousGameMode
- Mappings:
Namespace Name Mixin selector official kLeeb;k:Lbts;intermediary field_24608Lnet/minecraft/class_636;field_24608:Lnet/minecraft/class_1934;named previousGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;previousGameMode:Lnet/minecraft/world/GameMode;
-
unacknowledgedPlayerActions
private final Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,PlayerActionC2SPacket.Action>,Vec3d> unacknowledgedPlayerActions- Mappings:
Namespace Name Mixin selector official lLeeb;l:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;intermediary field_20317Lnet/minecraft/class_636;field_20317:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;named unacknowledgedPlayerActionsLnet/minecraft/client/network/ClientPlayerInteractionManager;unacknowledgedPlayerActions:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
-
lastSelectedSlot
private int lastSelectedSlot- Mappings:
Namespace Name Mixin selector official mLeeb;m:Iintermediary field_3721Lnet/minecraft/class_636;field_3721:Inamed lastSelectedSlotLnet/minecraft/client/network/ClientPlayerInteractionManager;lastSelectedSlot:I
-
-
Constructor Details
-
ClientPlayerInteractionManager
public ClientPlayerInteractionManager(MinecraftClient client, ClientPlayNetworkHandler networkHandler)- Mappings:
Namespace Name Mixin selector official <init>Leeb;<init>(Ldqk;Ledz;)Vintermediary <init>Lnet/minecraft/class_636;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_634;)Vnamed <init>Lnet/minecraft/client/network/ClientPlayerInteractionManager;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ClientPlayNetworkHandler;)V
-
-
Method Details
-
copyAbilities
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbhl;)Vintermediary method_2903Lnet/minecraft/class_636;method_2903(Lnet/minecraft/class_1657;)Vnamed copyAbilitiesLnet/minecraft/client/network/ClientPlayerInteractionManager;copyAbilities(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_32790
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbts;Lbts;)Vintermediary method_32790Lnet/minecraft/class_636;method_32790(Lnet/minecraft/class_1934;Lnet/minecraft/class_1934;)Vnamed method_32790Lnet/minecraft/client/network/ClientPlayerInteractionManager;method_32790(Lnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;)V
-
setGameMode
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbts;)Vintermediary method_2907Lnet/minecraft/class_636;method_2907(Lnet/minecraft/class_1934;)Vnamed setGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;setGameMode(Lnet/minecraft/world/GameMode;)V
-
hasStatusBars
public boolean hasStatusBars()- Mappings:
Namespace Name Mixin selector official aLeeb;a()Zintermediary method_2908Lnet/minecraft/class_636;method_2908()Znamed hasStatusBarsLnet/minecraft/client/network/ClientPlayerInteractionManager;hasStatusBars()Z
-
breakBlock
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lfx;)Zintermediary method_2899Lnet/minecraft/class_636;method_2899(Lnet/minecraft/class_2338;)Znamed breakBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;breakBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
attackBlock
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lfx;Lgc;)Zintermediary method_2910Lnet/minecraft/class_636;method_2910(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed attackBlockLnet/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 bLeeb;b()Vintermediary method_2925Lnet/minecraft/class_636;method_2925()Vnamed cancelBlockBreakingLnet/minecraft/client/network/ClientPlayerInteractionManager;cancelBlockBreaking()V
-
updateBlockBreakingProgress
- Mappings:
Namespace Name Mixin selector official bLeeb;b(Lfx;Lgc;)Zintermediary method_2902Lnet/minecraft/class_636;method_2902(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed updateBlockBreakingProgressLnet/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 cLeeb;c()Fintermediary method_2904Lnet/minecraft/class_636;method_2904()Fnamed getReachDistanceLnet/minecraft/client/network/ClientPlayerInteractionManager;getReachDistance()F
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official dLeeb;d()Vintermediary method_2927Lnet/minecraft/class_636;method_2927()Vnamed tickLnet/minecraft/client/network/ClientPlayerInteractionManager;tick()V
-
isCurrentlyBreaking
- Mappings:
Namespace Name Mixin selector official bLeeb;b(Lfx;)Zintermediary method_2922Lnet/minecraft/class_636;method_2922(Lnet/minecraft/class_2338;)Znamed isCurrentlyBreakingLnet/minecraft/client/network/ClientPlayerInteractionManager;isCurrentlyBreaking(Lnet/minecraft/util/math/BlockPos;)Z
-
syncSelectedSlot
private void syncSelectedSlot()- Mappings:
Namespace Name Mixin selector official nLeeb;n()Vintermediary method_2911Lnet/minecraft/class_636;method_2911()Vnamed syncSelectedSlotLnet/minecraft/client/network/ClientPlayerInteractionManager;syncSelectedSlot()V
-
interactBlock
public ActionResult interactBlock(ClientPlayerEntity player, ClientWorld world, Hand hand, BlockHitResult hitResult)- Mappings:
Namespace Name Mixin selector official aLeeb;a(Legw;Ledy;Lapp;Ldiq;)Lapq;intermediary method_2896Lnet/minecraft/class_636;method_2896(Lnet/minecraft/class_746;Lnet/minecraft/class_638;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;named interactBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;interactBlock(Lnet/minecraft/client/network/ClientPlayerEntity;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
interactItem
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbhl;Lbtv;Lapp;)Lapq;intermediary method_2919Lnet/minecraft/class_636;method_2919(Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactItemLnet/minecraft/client/network/ClientPlayerInteractionManager;interactItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
createPlayer
public ClientPlayerEntity createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook)- Mappings:
Namespace Name Mixin selector official aLeeb;a(Ledy;Laer;Ldpx;)Legw;intermediary method_29357Lnet/minecraft/class_636;method_29357(Lnet/minecraft/class_638;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;)Lnet/minecraft/class_746;named createPlayerLnet/minecraft/client/network/ClientPlayerInteractionManager;createPlayer(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/stat/StatHandler;Lnet/minecraft/client/recipebook/ClientRecipeBook;)Lnet/minecraft/client/network/ClientPlayerEntity;
-
createPlayer
public ClientPlayerEntity createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook, boolean lastSneaking, boolean lastSprinting)- Mappings:
Namespace Name Mixin selector official aLeeb;a(Ledy;Laer;Ldpx;ZZ)Legw;intermediary method_2901Lnet/minecraft/class_636;method_2901(Lnet/minecraft/class_638;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;ZZ)Lnet/minecraft/class_746;named createPlayerLnet/minecraft/client/network/ClientPlayerInteractionManager;createPlayer(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/stat/StatHandler;Lnet/minecraft/client/recipebook/ClientRecipeBook;ZZ)Lnet/minecraft/client/network/ClientPlayerEntity;
-
attackEntity
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbhl;Laqv;)Vintermediary method_2918Lnet/minecraft/class_636;method_2918(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;)Vnamed attackEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;attackEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;)V
-
interactEntity
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbhl;Laqv;Lapp;)Lapq;intermediary method_2905Lnet/minecraft/class_636;method_2905(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
interactEntityAtLocation
public ActionResult interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbhl;Laqv;Ldir;Lapp;)Lapq;intermediary method_2917Lnet/minecraft/class_636;method_2917(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_3966;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactEntityAtLocationLnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntityAtLocation(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/hit/EntityHitResult;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
clickSlot
public ItemStack clickSlot(int syncId, int slotId, int clickData, SlotActionType actionType, PlayerEntity player)- See Also:
ScreenHandler.onSlotClick(int, int, net.minecraft.screen.slot.SlotActionType, net.minecraft.entity.player.PlayerEntity)- Mappings:
Namespace Name Mixin selector official aLeeb;a(IIILbka;Lbhl;)Lbnv;intermediary method_2906Lnet/minecraft/class_636;method_2906(IIILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;named clickSlotLnet/minecraft/client/network/ClientPlayerInteractionManager;clickSlot(IIILnet/minecraft/screen/slot/SlotActionType;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
clickRecipe
- Mappings:
Namespace Name Mixin selector official aLeeb;a(ILbqn;Z)Vintermediary method_2912Lnet/minecraft/class_636;method_2912(ILnet/minecraft/class_1860;Z)Vnamed clickRecipeLnet/minecraft/client/network/ClientPlayerInteractionManager;clickRecipe(ILnet/minecraft/recipe/Recipe;Z)V
-
clickButton
public void clickButton(int syncId, int buttonId)- Mappings:
Namespace Name Mixin selector official aLeeb;a(II)Vintermediary method_2900Lnet/minecraft/class_636;method_2900(II)Vnamed clickButtonLnet/minecraft/client/network/ClientPlayerInteractionManager;clickButton(II)V
-
clickCreativeStack
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbnv;I)Vintermediary method_2909Lnet/minecraft/class_636;method_2909(Lnet/minecraft/class_1799;I)Vnamed clickCreativeStackLnet/minecraft/client/network/ClientPlayerInteractionManager;clickCreativeStack(Lnet/minecraft/item/ItemStack;I)V
-
dropCreativeStack
- Mappings:
Namespace Name Mixin selector official aLeeb;a(Lbnv;)Vintermediary method_2915Lnet/minecraft/class_636;method_2915(Lnet/minecraft/class_1799;)Vnamed dropCreativeStackLnet/minecraft/client/network/ClientPlayerInteractionManager;dropCreativeStack(Lnet/minecraft/item/ItemStack;)V
-
stopUsingItem
- Mappings:
Namespace Name Mixin selector official bLeeb;b(Lbhl;)Vintermediary method_2897Lnet/minecraft/class_636;method_2897(Lnet/minecraft/class_1657;)Vnamed stopUsingItemLnet/minecraft/client/network/ClientPlayerInteractionManager;stopUsingItem(Lnet/minecraft/entity/player/PlayerEntity;)V
-
hasExperienceBar
public boolean hasExperienceBar()- Mappings:
Namespace Name Mixin selector official eLeeb;e()Zintermediary method_2913Lnet/minecraft/class_636;method_2913()Znamed hasExperienceBarLnet/minecraft/client/network/ClientPlayerInteractionManager;hasExperienceBar()Z
-
hasLimitedAttackSpeed
public boolean hasLimitedAttackSpeed()- Mappings:
Namespace Name Mixin selector official fLeeb;f()Zintermediary method_2924Lnet/minecraft/class_636;method_2924()Znamed hasLimitedAttackSpeedLnet/minecraft/client/network/ClientPlayerInteractionManager;hasLimitedAttackSpeed()Z
-
hasCreativeInventory
public boolean hasCreativeInventory()- Mappings:
Namespace Name Mixin selector official gLeeb;g()Zintermediary method_2914Lnet/minecraft/class_636;method_2914()Znamed hasCreativeInventoryLnet/minecraft/client/network/ClientPlayerInteractionManager;hasCreativeInventory()Z
-
hasExtendedReach
public boolean hasExtendedReach()- Mappings:
Namespace Name Mixin selector official hLeeb;h()Zintermediary method_2926Lnet/minecraft/class_636;method_2926()Znamed hasExtendedReachLnet/minecraft/client/network/ClientPlayerInteractionManager;hasExtendedReach()Z
-
hasRidingInventory
public boolean hasRidingInventory()- Mappings:
Namespace Name Mixin selector official iLeeb;i()Zintermediary method_2895Lnet/minecraft/class_636;method_2895()Znamed hasRidingInventoryLnet/minecraft/client/network/ClientPlayerInteractionManager;hasRidingInventory()Z
-
isFlyingLocked
public boolean isFlyingLocked()- Mappings:
Namespace Name Mixin selector official jLeeb;j()Zintermediary method_2928Lnet/minecraft/class_636;method_2928()Znamed isFlyingLockedLnet/minecraft/client/network/ClientPlayerInteractionManager;isFlyingLocked()Z
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector official kLeeb;k()Lbts;intermediary method_28107Lnet/minecraft/class_636;method_28107()Lnet/minecraft/class_1934;named getPreviousGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;getPreviousGameMode()Lnet/minecraft/world/GameMode;
-
getCurrentGameMode
- Mappings:
Namespace Name Mixin selector official lLeeb;l()Lbts;intermediary method_2920Lnet/minecraft/class_636;method_2920()Lnet/minecraft/class_1934;named getCurrentGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;getCurrentGameMode()Lnet/minecraft/world/GameMode;
-
isBreakingBlock
public boolean isBreakingBlock()- Mappings:
Namespace Name Mixin selector official mLeeb;m()Zintermediary method_2923Lnet/minecraft/class_636;method_2923()Znamed isBreakingBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;isBreakingBlock()Z
-
pickFromInventory
public void pickFromInventory(int slot)- Mappings:
Namespace Name Mixin selector official aLeeb;a(I)Vintermediary method_2916Lnet/minecraft/class_636;method_2916(I)Vnamed pickFromInventoryLnet/minecraft/client/network/ClientPlayerInteractionManager;pickFromInventory(I)V
-
sendPlayerAction
private void sendPlayerAction(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction)- Mappings:
Namespace Name Mixin selector official aLeeb;a(Ltr$a;Lfx;Lgc;)Vintermediary method_21706Lnet/minecraft/class_636;method_21706(Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Vnamed sendPlayerActionLnet/minecraft/client/network/ClientPlayerInteractionManager;sendPlayerAction(Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-
processPlayerActionResponse
public void processPlayerActionResponse(ClientWorld world, BlockPos pos, BlockState state, PlayerActionC2SPacket.Action action, boolean approved)- Mappings:
Namespace Name Mixin selector official aLeeb;a(Ledy;Lfx;Lcht;Ltr$a;Z)Vintermediary method_21705Lnet/minecraft/class_636;method_21705(Lnet/minecraft/class_638;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2846$class_2847;Z)Vnamed processPlayerActionResponseLnet/minecraft/client/network/ClientPlayerInteractionManager;processPlayerActionResponse(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;Z)V
-