Package net.minecraft.client.network
Class ClientPlayerInteractionManager
java.lang.Object
net.minecraft.client.network.ClientPlayerInteractionManager
- Mappings:
Namespace Name named net/minecraft/client/network/ClientPlayerInteractionManagerintermediary net/minecraft/class_636official hel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate floatprivate booleanprivate final MinecraftClientprivate BlockPosprivate floatprivate GameModeprivate intprivate static final Loggerprivate final ClientPlayNetworkHandlerprivate GameModeprivate ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionClientPlayerInteractionManager(MinecraftClient client, ClientPlayNetworkHandler networkHandler) -
Method Summary
Modifier and TypeMethodDescriptionbooleanattackBlock(BlockPos pos, Direction direction) voidattackEntity(PlayerEntity player, Entity target) voidattackWithPiercingWeapon(PiercingWeaponComponent piercingWeaponComponent) booleanbreakBlock(BlockPos pos) voidvoidclickButton(int syncId, int buttonId) voidclickCreativeStack(ItemStack stack, int slotId) voidclickRecipe(int syncId, NetworkRecipeId recipeId, boolean craftAll) voidclickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player) voidcopyAbilities(PlayerEntity player) createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook) createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook, PlayerInput lastPlayerInput, boolean lastSprinting) voiddropCreativeStack(ItemStack stack) int@Nullable GameModebooleanbooleanbooleanbooleaninteractBlock(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) private ActionResultinteractBlockInternal(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) interactEntity(PlayerEntity player, Entity entity, Hand hand) interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) interactItem(PlayerEntity player, Hand hand) booleanprivate booleanbooleanvoidpickItemFromBlock(BlockPos pos, boolean includeData) voidpickItemFromEntity(Entity entity, boolean includeData) private voidsendSequencedPacket(ClientWorld world, SequencedPacketCreator packetCreator) voidsetGameMode(GameMode gameMode) voidsetGameModes(GameMode gameMode, @Nullable GameMode previousGameMode) voidslotChangedState(int slot, int screenHandlerId, boolean newState) voidstopUsingItem(PlayerEntity player) private voidvoidtick()booleanupdateBlockBreakingProgress(BlockPos pos, Direction direction)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/network/ClientPlayerInteractionManager;LOGGER:Lorg/slf4j/Logger;intermediary field_20316Lnet/minecraft/class_636;field_20316:Lorg/slf4j/Logger;official aLhel;a:Lorg/slf4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/network/ClientPlayerInteractionManager;client:Lnet/minecraft/client/MinecraftClient;intermediary field_3712Lnet/minecraft/class_636;field_3712:Lnet/minecraft/class_310;official bLhel;b:Lgec;
-
networkHandler
- Mappings:
Namespace Name Mixin selector named networkHandlerLnet/minecraft/client/network/ClientPlayerInteractionManager;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;intermediary field_3720Lnet/minecraft/class_636;field_3720:Lnet/minecraft/class_634;official cLhel;c:Lhed;
-
currentBreakingPos
- Mappings:
Namespace Name Mixin selector named currentBreakingPosLnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingPos:Lnet/minecraft/util/math/BlockPos;intermediary field_3714Lnet/minecraft/class_636;field_3714:Lnet/minecraft/class_2338;official dLhel;d:Lis;
-
selectedStack
- Mappings:
Namespace Name Mixin selector named selectedStackLnet/minecraft/client/network/ClientPlayerInteractionManager;selectedStack:Lnet/minecraft/item/ItemStack;intermediary field_3718Lnet/minecraft/class_636;field_3718:Lnet/minecraft/class_1799;official eLhel;e:Ldkm;
-
currentBreakingProgress
private float currentBreakingProgress- Mappings:
Namespace Name Mixin selector named currentBreakingProgressLnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingProgress:Fintermediary field_3715Lnet/minecraft/class_636;field_3715:Fofficial fLhel;f:F
-
blockBreakingSoundCooldown
private float blockBreakingSoundCooldown- Mappings:
Namespace Name Mixin selector named blockBreakingSoundCooldownLnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingSoundCooldown:Fintermediary field_3713Lnet/minecraft/class_636;field_3713:Fofficial gLhel;g:F
-
blockBreakingCooldown
private int blockBreakingCooldown- Mappings:
Namespace Name Mixin selector named blockBreakingCooldownLnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:Iintermediary field_3716Lnet/minecraft/class_636;field_3716:Iofficial hLhel;h:I
-
breakingBlock
private boolean breakingBlock- Mappings:
Namespace Name Mixin selector named breakingBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;breakingBlock:Zintermediary field_3717Lnet/minecraft/class_636;field_3717:Zofficial iLhel;i:Z
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;gameMode:Lnet/minecraft/world/GameMode;intermediary field_3719Lnet/minecraft/class_636;field_3719:Lnet/minecraft/class_1934;official jLhel;j:Ldvd;
-
previousGameMode
- Mappings:
Namespace Name Mixin selector named previousGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;previousGameMode:Lnet/minecraft/world/GameMode;intermediary field_24608Lnet/minecraft/class_636;field_24608:Lnet/minecraft/class_1934;official kLhel;k:Ldvd;
-
lastSelectedSlot
private int lastSelectedSlot- Mappings:
Namespace Name Mixin selector named lastSelectedSlotLnet/minecraft/client/network/ClientPlayerInteractionManager;lastSelectedSlot:Iintermediary field_3721Lnet/minecraft/class_636;field_3721:Iofficial lLhel;l:I
-
-
Constructor Details
-
ClientPlayerInteractionManager
public ClientPlayerInteractionManager(MinecraftClient client, ClientPlayNetworkHandler networkHandler) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/network/ClientPlayerInteractionManager;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ClientPlayNetworkHandler;)Vintermediary <init>Lnet/minecraft/class_636;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_634;)Vofficial <init>Lhel;<init>(Lgec;Lhed;)V
-
-
Method Details
-
copyAbilities
- Mappings:
Namespace Name Mixin selector named copyAbilitiesLnet/minecraft/client/network/ClientPlayerInteractionManager;copyAbilities(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_2903Lnet/minecraft/class_636;method_2903(Lnet/minecraft/class_1657;)Vofficial aLhel;a(Ldcm;)V
-
setGameModes
- Mappings:
Namespace Name Mixin selector named setGameModesLnet/minecraft/client/network/ClientPlayerInteractionManager;setGameModes(Lnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;)Vintermediary method_32790Lnet/minecraft/class_636;method_32790(Lnet/minecraft/class_1934;Lnet/minecraft/class_1934;)Vofficial aLhel;a(Ldvd;Ldvd;)V
-
setGameMode
- Mappings:
Namespace Name Mixin selector named setGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;setGameMode(Lnet/minecraft/world/GameMode;)Vintermediary method_2907Lnet/minecraft/class_636;method_2907(Lnet/minecraft/class_1934;)Vofficial aLhel;a(Ldvd;)V
-
hasStatusBars
public boolean hasStatusBars()- Mappings:
Namespace Name Mixin selector named hasStatusBarsLnet/minecraft/client/network/ClientPlayerInteractionManager;hasStatusBars()Zintermediary method_2908Lnet/minecraft/class_636;method_2908()Zofficial aLhel;a()Z
-
breakBlock
- Mappings:
Namespace Name Mixin selector named breakBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;breakBlock(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_2899Lnet/minecraft/class_636;method_2899(Lnet/minecraft/class_2338;)Zofficial aLhel;a(Lis;)Z
-
attackBlock
- Mappings:
Namespace Name Mixin selector named attackBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;attackBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Zintermediary method_2910Lnet/minecraft/class_636;method_2910(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Zofficial aLhel;a(Lis;Liz;)Z
-
cancelBlockBreaking
public void cancelBlockBreaking()- Mappings:
Namespace Name Mixin selector named cancelBlockBreakingLnet/minecraft/client/network/ClientPlayerInteractionManager;cancelBlockBreaking()Vintermediary method_2925Lnet/minecraft/class_636;method_2925()Vofficial bLhel;b()V
-
updateBlockBreakingProgress
- Mappings:
Namespace Name Mixin selector named updateBlockBreakingProgressLnet/minecraft/client/network/ClientPlayerInteractionManager;updateBlockBreakingProgress(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Zintermediary method_2902Lnet/minecraft/class_636;method_2902(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Zofficial bLhel;b(Lis;Liz;)Z
-
sendSequencedPacket
- Mappings:
Namespace Name Mixin selector named sendSequencedPacketLnet/minecraft/client/network/ClientPlayerInteractionManager;sendSequencedPacket(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/network/SequencedPacketCreator;)Vintermediary method_41931Lnet/minecraft/class_636;method_41931(Lnet/minecraft/class_638;Lnet/minecraft/class_7204;)Vofficial aLhel;a(Lhec;Lhfp;)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/network/ClientPlayerInteractionManager;tick()Vintermediary method_2927Lnet/minecraft/class_636;method_2927()Vofficial cLhel;c()V
-
isCurrentlyBreaking
- Mappings:
Namespace Name Mixin selector named isCurrentlyBreakingLnet/minecraft/client/network/ClientPlayerInteractionManager;isCurrentlyBreaking(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_2922Lnet/minecraft/class_636;method_2922(Lnet/minecraft/class_2338;)Zofficial bLhel;b(Lis;)Z
-
syncSelectedSlot
private void syncSelectedSlot()- Mappings:
Namespace Name Mixin selector named syncSelectedSlotLnet/minecraft/client/network/ClientPlayerInteractionManager;syncSelectedSlot()Vintermediary method_2911Lnet/minecraft/class_636;method_2911()Vofficial lLhel;l()V
-
interactBlock
- Mappings:
Namespace Name Mixin selector named interactBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;interactBlock(Lnet/minecraft/client/network/ClientPlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_2896Lnet/minecraft/class_636;method_2896(Lnet/minecraft/class_746;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official aLhel;a(Lhje;Lccz;Lfsa;)Lcda;
-
interactBlockInternal
private ActionResult interactBlockInternal(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) - Mappings:
Namespace Name Mixin selector named interactBlockInternalLnet/minecraft/client/network/ClientPlayerInteractionManager;interactBlockInternal(Lnet/minecraft/client/network/ClientPlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_41934Lnet/minecraft/class_636;method_41934(Lnet/minecraft/class_746;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official bLhel;b(Lhje;Lccz;Lfsa;)Lcda;
-
interactItem
- Mappings:
Namespace Name Mixin selector named interactItemLnet/minecraft/client/network/ClientPlayerInteractionManager;interactItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_2919Lnet/minecraft/class_636;method_2919(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLhel;a(Ldcm;Lccz;)Lcda;
-
createPlayer
public ClientPlayerEntity createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook) - Mappings:
Namespace Name Mixin selector 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;intermediary method_29357Lnet/minecraft/class_636;method_29357(Lnet/minecraft/class_638;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;)Lnet/minecraft/class_746;official aLhel;a(Lhec;Lbdk;Lgdn;)Lhje;
-
createPlayer
public ClientPlayerEntity createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook, PlayerInput lastPlayerInput, boolean lastSprinting) - Mappings:
Namespace Name Mixin selector named createPlayerLnet/minecraft/client/network/ClientPlayerInteractionManager;createPlayer(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/stat/StatHandler;Lnet/minecraft/client/recipebook/ClientRecipeBook;Lnet/minecraft/util/PlayerInput;Z)Lnet/minecraft/client/network/ClientPlayerEntity;intermediary method_2901Lnet/minecraft/class_636;method_2901(Lnet/minecraft/class_638;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;Lnet/minecraft/class_10185;Z)Lnet/minecraft/class_746;official aLhel;a(Lhec;Lbdk;Lgdn;Ldck;Z)Lhje;
-
attackEntity
- Mappings:
Namespace Name Mixin selector named attackEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;attackEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;)Vintermediary method_2918Lnet/minecraft/class_636;method_2918(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;)Vofficial aLhel;a(Ldcm;Lcgi;)V
-
interactEntity
- Mappings:
Namespace Name Mixin selector named interactEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_2905Lnet/minecraft/class_636;method_2905(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLhel;a(Ldcm;Lcgi;Lccz;)Lcda;
-
interactEntityAtLocation
public ActionResult interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) - Mappings:
Namespace Name Mixin selector 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;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;official aLhel;a(Ldcm;Lcgi;Lfsb;Lccz;)Lcda;
-
clickSlot
public void clickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player) - See Also:
- Mappings:
Namespace Name Mixin selector named clickSlotLnet/minecraft/client/network/ClientPlayerInteractionManager;clickSlot(IIILnet/minecraft/screen/slot/SlotActionType;Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_2906Lnet/minecraft/class_636;method_2906(IIILnet/minecraft/class_1713;Lnet/minecraft/class_1657;)Vofficial aLhel;a(IIILdgo;Ldcm;)V
-
clickRecipe
- Mappings:
Namespace Name Mixin selector named clickRecipeLnet/minecraft/client/network/ClientPlayerInteractionManager;clickRecipe(ILnet/minecraft/recipe/NetworkRecipeId;Z)Vintermediary method_2912Lnet/minecraft/class_636;method_2912(ILnet/minecraft/class_10298;Z)Vofficial aLhel;a(ILdqs;Z)V
-
clickButton
public void clickButton(int syncId, int buttonId) - Mappings:
Namespace Name Mixin selector named clickButtonLnet/minecraft/client/network/ClientPlayerInteractionManager;clickButton(II)Vintermediary method_2900Lnet/minecraft/class_636;method_2900(II)Vofficial aLhel;a(II)V
-
clickCreativeStack
- Mappings:
Namespace Name Mixin selector named clickCreativeStackLnet/minecraft/client/network/ClientPlayerInteractionManager;clickCreativeStack(Lnet/minecraft/item/ItemStack;I)Vintermediary method_2909Lnet/minecraft/class_636;method_2909(Lnet/minecraft/class_1799;I)Vofficial aLhel;a(Ldkm;I)V
-
dropCreativeStack
- Mappings:
Namespace Name Mixin selector named dropCreativeStackLnet/minecraft/client/network/ClientPlayerInteractionManager;dropCreativeStack(Lnet/minecraft/item/ItemStack;)Vintermediary method_2915Lnet/minecraft/class_636;method_2915(Lnet/minecraft/class_1799;)Vofficial aLhel;a(Ldkm;)V
-
stopUsingItem
- Mappings:
Namespace Name Mixin selector named stopUsingItemLnet/minecraft/client/network/ClientPlayerInteractionManager;stopUsingItem(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_2897Lnet/minecraft/class_636;method_2897(Lnet/minecraft/class_1657;)Vofficial bLhel;b(Ldcm;)V
-
attackWithPiercingWeapon
- Mappings:
Namespace Name Mixin selector named attackWithPiercingWeaponLnet/minecraft/client/network/ClientPlayerInteractionManager;attackWithPiercingWeapon(Lnet/minecraft/component/type/PiercingWeaponComponent;)Vintermediary method_75407Lnet/minecraft/class_636;method_75407(Lnet/minecraft/class_12125;)Vofficial aLhel;a(Ldno;)V
-
hasExperienceBar
public boolean hasExperienceBar()- Mappings:
Namespace Name Mixin selector named hasExperienceBarLnet/minecraft/client/network/ClientPlayerInteractionManager;hasExperienceBar()Zintermediary method_2913Lnet/minecraft/class_636;method_2913()Zofficial dLhel;d()Z
-
hasLimitedAttackSpeed
public boolean hasLimitedAttackSpeed()- Mappings:
Namespace Name Mixin selector named hasLimitedAttackSpeedLnet/minecraft/client/network/ClientPlayerInteractionManager;hasLimitedAttackSpeed()Zintermediary method_2924Lnet/minecraft/class_636;method_2924()Zofficial eLhel;e()Z
-
hasRidingInventory
public boolean hasRidingInventory()- Mappings:
Namespace Name Mixin selector named hasRidingInventoryLnet/minecraft/client/network/ClientPlayerInteractionManager;hasRidingInventory()Zintermediary method_2895Lnet/minecraft/class_636;method_2895()Zofficial fLhel;f()Z
-
isFlyingLocked
public boolean isFlyingLocked()- Mappings:
Namespace Name Mixin selector named isFlyingLockedLnet/minecraft/client/network/ClientPlayerInteractionManager;isFlyingLocked()Zintermediary method_2928Lnet/minecraft/class_636;method_2928()Zofficial gLhel;g()Z
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector named getPreviousGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;getPreviousGameMode()Lnet/minecraft/world/GameMode;intermediary method_28107Lnet/minecraft/class_636;method_28107()Lnet/minecraft/class_1934;official hLhel;h()Ldvd;
-
getCurrentGameMode
- Mappings:
Namespace Name Mixin selector named getCurrentGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;getCurrentGameMode()Lnet/minecraft/world/GameMode;intermediary method_2920Lnet/minecraft/class_636;method_2920()Lnet/minecraft/class_1934;official iLhel;i()Ldvd;
-
isBreakingBlock
public boolean isBreakingBlock()- Mappings:
Namespace Name Mixin selector named isBreakingBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;isBreakingBlock()Zintermediary method_2923Lnet/minecraft/class_636;method_2923()Zofficial jLhel;j()Z
-
getBlockBreakingProgress
public int getBlockBreakingProgress()- Mappings:
Namespace Name Mixin selector named getBlockBreakingProgressLnet/minecraft/client/network/ClientPlayerInteractionManager;getBlockBreakingProgress()Iintermediary method_51888Lnet/minecraft/class_636;method_51888()Iofficial kLhel;k()I
-
pickItemFromBlock
- Mappings:
Namespace Name Mixin selector named pickItemFromBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;pickItemFromBlock(Lnet/minecraft/util/math/BlockPos;Z)Vintermediary method_65193Lnet/minecraft/class_636;method_65193(Lnet/minecraft/class_2338;Z)Vofficial aLhel;a(Lis;Z)V
-
pickItemFromEntity
- Mappings:
Namespace Name Mixin selector named pickItemFromEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;pickItemFromEntity(Lnet/minecraft/entity/Entity;Z)Vintermediary method_2916Lnet/minecraft/class_636;method_2916(Lnet/minecraft/class_1297;Z)Vofficial aLhel;a(Lcgi;Z)V
-
slotChangedState
public void slotChangedState(int slot, int screenHandlerId, boolean newState) - Mappings:
Namespace Name Mixin selector named slotChangedStateLnet/minecraft/client/network/ClientPlayerInteractionManager;slotChangedState(IIZ)Vintermediary method_54634Lnet/minecraft/class_636;method_54634(IIZ)Vofficial aLhel;a(IIZ)V
-