Package net.minecraft.client.network
Class ClientPlayerInteractionManager
java.lang.Object
net.minecraft.client.network.ClientPlayerInteractionManager
- Mappings:
Namespace Name official bdaintermediary net/minecraft/class_477named net/minecraft/client/network/ClientPlayerInteractionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate floatprivate booleanprivate final MinecraftClientprivate BlockPosprivate floatprivate LevelInfo.GameModeprivate intprivate final ClientPlayNetworkHandlerprivate ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionClientPlayerInteractionManager(MinecraftClient client, ClientPlayNetworkHandler clientPlayNetworkHandler) -
Method Summary
Modifier and TypeMethodDescriptionbooleanattackBlock(BlockPos pos, Direction direction) voidattackEntity(PlayerEntity player, Entity target) booleanbreakBlock(BlockPos pos, Direction direction) static voidbreakBlockOrFire(MinecraftClient client, ClientPlayerInteractionManager interactionManager, BlockPos pos, Direction direction) voidvoidclickButton(int syncId, int buttonId) voidclickCreativeStack(ItemStack stack, int slotId) clickSlot(int syncId, int slotId, int mouseButton, int actionType, PlayerEntity player) voidcopyAbilities(PlayerEntity player) voiddropCreativeStack(ItemStack stack) floatbooleanbooleanbooleanbooleanbooleanbooleanbooleaninteractEntity(PlayerEntity playerEntity, Entity entity) booleaninteractEntityAtLocation(PlayerEntity player, Entity entity, BlockHitResult blockHitResult) booleanprivate booleanbooleanbooleanbooleanmethod_1228(PlayerEntity playerEntity, World world, ItemStack itemStack) voidmethod_1236(PlayerEntity playerEntity) method_9658(World world, StatHandler statHandler) booleanonRightClick(ClientPlayerEntity player, ClientWorld world, ItemStack stack, BlockPos pos, Direction direction, Vec3d vec) voidsetGameMode(LevelInfo.GameMode gameMode) voidstopUsingItem(PlayerEntity player) private voidvoidtick()booleanupdateBlockBreakingProgress(BlockPos pos, Direction direction)
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official aLbda;a:Lave;intermediary field_1646Lnet/minecraft/class_477;field_1646:Lnet/minecraft/class_1600;named clientLnet/minecraft/client/network/ClientPlayerInteractionManager;client:Lnet/minecraft/client/MinecraftClient;
-
networkHandler
- Mappings:
Namespace Name Mixin selector official bLbda;b:Lbcy;intermediary field_1647Lnet/minecraft/class_477;field_1647:Lnet/minecraft/class_1845;named networkHandlerLnet/minecraft/client/network/ClientPlayerInteractionManager;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
-
currentBreakingPos
- Mappings:
Namespace Name Mixin selector official cLbda;c:Lcj;intermediary field_10593Lnet/minecraft/class_477;field_10593:Lnet/minecraft/class_2552;named currentBreakingPosLnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingPos:Lnet/minecraft/util/math/BlockPos;
-
selectedStack
- Mappings:
Namespace Name Mixin selector official dLbda;d:Lzx;intermediary field_5147Lnet/minecraft/class_477;field_5147:Lnet/minecraft/class_1071;named selectedStackLnet/minecraft/client/network/ClientPlayerInteractionManager;selectedStack:Lnet/minecraft/item/ItemStack;
-
currentBreakingProgress
private float currentBreakingProgress- Mappings:
Namespace Name Mixin selector official eLbda;e:Fintermediary field_1651Lnet/minecraft/class_477;field_1651:Fnamed currentBreakingProgressLnet/minecraft/client/network/ClientPlayerInteractionManager;currentBreakingProgress:F
-
blockBreakingSoundCooldown
private float blockBreakingSoundCooldown- Mappings:
Namespace Name Mixin selector official fLbda;f:Fintermediary field_1653Lnet/minecraft/class_477;field_1653:Fnamed blockBreakingSoundCooldownLnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingSoundCooldown:F
-
blockBreakingCooldown
private int blockBreakingCooldown- Mappings:
Namespace Name Mixin selector official gLbda;g:Iintermediary field_1654Lnet/minecraft/class_477;field_1654:Inamed blockBreakingCooldownLnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I
-
breakingBlock
private boolean breakingBlock- Mappings:
Namespace Name Mixin selector official hLbda;h:Zintermediary field_1655Lnet/minecraft/class_477;field_1655:Znamed breakingBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;breakingBlock:Z
-
gameMode
- Mappings:
Namespace Name Mixin selector official iLbda;i:Ladp$a;intermediary field_1656Lnet/minecraft/class_477;field_1656:Lnet/minecraft/class_1156$class_1157;named gameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
lastSelectedSlot
private int lastSelectedSlot- Mappings:
Namespace Name Mixin selector official jLbda;j:Iintermediary field_1657Lnet/minecraft/class_477;field_1657:Inamed lastSelectedSlotLnet/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;)Vintermediary <init>Lnet/minecraft/class_477;<init>(Lnet/minecraft/class_1600;Lnet/minecraft/class_1845;)Vnamed <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 aLbda;a(Lave;Lbda;Lcj;Lcq;)Vintermediary method_9659Lnet/minecraft/class_477;method_9659(Lnet/minecraft/class_1600;Lnet/minecraft/class_477;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Vnamed breakBlockOrFireLnet/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
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lwn;)Vintermediary method_1226Lnet/minecraft/class_477;method_1226(Lnet/minecraft/class_988;)Vnamed copyAbilitiesLnet/minecraft/client/network/ClientPlayerInteractionManager;copyAbilities(Lnet/minecraft/entity/player/PlayerEntity;)V
-
isSpectator
public boolean isSpectator()- Mappings:
Namespace Name Mixin selector official aLbda;a()Zintermediary method_1221Lnet/minecraft/class_477;method_1221()Znamed isSpectatorLnet/minecraft/client/network/ClientPlayerInteractionManager;isSpectator()Z
-
setGameMode
- Mappings:
Namespace Name Mixin selector official aLbda;a(Ladp$a;)Vintermediary method_1233Lnet/minecraft/class_477;method_1233(Lnet/minecraft/class_1156$class_1157;)Vnamed setGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;setGameMode(Lnet/minecraft/world/level/LevelInfo$GameMode;)V
-
method_1236
- Mappings:
Namespace Name Mixin selector official bLbda;b(Lwn;)Vintermediary method_1236Lnet/minecraft/class_477;method_1236(Lnet/minecraft/class_988;)Vnamed method_1236Lnet/minecraft/client/network/ClientPlayerInteractionManager;method_1236(Lnet/minecraft/entity/player/PlayerEntity;)V
-
hasStatusBars
public boolean hasStatusBars()- Mappings:
Namespace Name Mixin selector official bLbda;b()Zintermediary method_1234Lnet/minecraft/class_477;method_1234()Znamed hasStatusBarsLnet/minecraft/client/network/ClientPlayerInteractionManager;hasStatusBars()Z
-
breakBlock
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lcj;Lcq;)Zintermediary method_9662Lnet/minecraft/class_477;method_9662(Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed breakBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;breakBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
attackBlock
- Mappings:
Namespace Name Mixin selector official bLbda;b(Lcj;Lcq;)Zintermediary method_9664Lnet/minecraft/class_477;method_9664(Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)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 cLbda;c()Vintermediary method_1238Lnet/minecraft/class_477;method_1238()Vnamed cancelBlockBreakingLnet/minecraft/client/network/ClientPlayerInteractionManager;cancelBlockBreaking()V
-
updateBlockBreakingProgress
- Mappings:
Namespace Name Mixin selector official cLbda;c(Lcj;Lcq;)Zintermediary method_9665Lnet/minecraft/class_477;method_9665(Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)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 dLbda;d()Fintermediary method_1241Lnet/minecraft/class_477;method_1241()Fnamed getReachDistanceLnet/minecraft/client/network/ClientPlayerInteractionManager;getReachDistance()F
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official eLbda;e()Vintermediary method_1242Lnet/minecraft/class_477;method_1242()Vnamed tickLnet/minecraft/client/network/ClientPlayerInteractionManager;tick()V
-
isCurrentlyBreaking
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lcj;)Zintermediary method_9661Lnet/minecraft/class_477;method_9661(Lnet/minecraft/class_2552;)Znamed isCurrentlyBreakingLnet/minecraft/client/network/ClientPlayerInteractionManager;isCurrentlyBreaking(Lnet/minecraft/util/math/BlockPos;)Z
-
syncSelectedSlot
private void syncSelectedSlot()- Mappings:
Namespace Name Mixin selector official nLbda;n()Vintermediary method_1247Lnet/minecraft/class_477;method_1247()Vnamed syncSelectedSlotLnet/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 aLbda;a(Lbew;Lbdb;Lzx;Lcj;Lcq;Laui;)Zintermediary method_9660Lnet/minecraft/class_477;method_9660(Lnet/minecraft/class_518;Lnet/minecraft/class_478;Lnet/minecraft/class_1071;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Lnet/minecraft/class_236;)Znamed onRightClickLnet/minecraft/client/network/ClientPlayerInteractionManager;onRightClick(Lnet/minecraft/entity/player/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_1228
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lwn;Ladm;Lzx;)Zintermediary method_1228Lnet/minecraft/class_477;method_1228(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_1071;)Znamed method_1228Lnet/minecraft/client/network/ClientPlayerInteractionManager;method_1228(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Z
-
method_9658
- Mappings:
Namespace Name Mixin selector official aLbda;a(Ladm;Lnb;)Lbew;intermediary method_9658Lnet/minecraft/class_477;method_9658(Lnet/minecraft/class_1150;Lnet/minecraft/class_625;)Lnet/minecraft/class_518;named method_9658Lnet/minecraft/client/network/ClientPlayerInteractionManager;method_9658(Lnet/minecraft/world/World;Lnet/minecraft/stat/StatHandler;)Lnet/minecraft/entity/player/ClientPlayerEntity;
-
attackEntity
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lwn;Lpk;)Vintermediary method_1227Lnet/minecraft/class_477;method_1227(Lnet/minecraft/class_988;Lnet/minecraft/class_864;)Vnamed attackEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;attackEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;)V
-
interactEntity
- Mappings:
Namespace Name Mixin selector official bLbda;b(Lwn;Lpk;)Zintermediary method_1237Lnet/minecraft/class_477;method_1237(Lnet/minecraft/class_988;Lnet/minecraft/class_864;)Znamed interactEntityLnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;)Z
-
interactEntityAtLocation
public boolean interactEntityAtLocation(PlayerEntity player, Entity entity, BlockHitResult blockHitResult) - Mappings:
Namespace Name Mixin selector official aLbda;a(Lwn;Lpk;Lauh;)Zintermediary method_9663Lnet/minecraft/class_477;method_9663(Lnet/minecraft/class_988;Lnet/minecraft/class_864;Lnet/minecraft/class_234;)Znamed interactEntityAtLocationLnet/minecraft/client/network/ClientPlayerInteractionManager;interactEntityAtLocation(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/hit/BlockHitResult;)Z
-
clickSlot
public ItemStack clickSlot(int syncId, int slotId, int mouseButton, int actionType, PlayerEntity player) - Mappings:
Namespace Name Mixin selector official aLbda;a(IIIILwn;)Lzx;intermediary method_1224Lnet/minecraft/class_477;method_1224(IIIILnet/minecraft/class_988;)Lnet/minecraft/class_1071;named clickSlotLnet/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 aLbda;a(II)Vintermediary method_1222Lnet/minecraft/class_477;method_1222(II)Vnamed clickButtonLnet/minecraft/client/network/ClientPlayerInteractionManager;clickButton(II)V
-
clickCreativeStack
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lzx;I)Vintermediary method_1231Lnet/minecraft/class_477;method_1231(Lnet/minecraft/class_1071;I)Vnamed clickCreativeStackLnet/minecraft/client/network/ClientPlayerInteractionManager;clickCreativeStack(Lnet/minecraft/item/ItemStack;I)V
-
dropCreativeStack
- Mappings:
Namespace Name Mixin selector official aLbda;a(Lzx;)Vintermediary method_1230Lnet/minecraft/class_477;method_1230(Lnet/minecraft/class_1071;)Vnamed dropCreativeStackLnet/minecraft/client/network/ClientPlayerInteractionManager;dropCreativeStack(Lnet/minecraft/item/ItemStack;)V
-
stopUsingItem
- Mappings:
Namespace Name Mixin selector official cLbda;c(Lwn;)Vintermediary method_1240Lnet/minecraft/class_477;method_1240(Lnet/minecraft/class_988;)Vnamed stopUsingItemLnet/minecraft/client/network/ClientPlayerInteractionManager;stopUsingItem(Lnet/minecraft/entity/player/PlayerEntity;)V
-
hasExperienceBar
public boolean hasExperienceBar()- Mappings:
Namespace Name Mixin selector official fLbda;f()Zintermediary method_1243Lnet/minecraft/class_477;method_1243()Znamed hasExperienceBarLnet/minecraft/client/network/ClientPlayerInteractionManager;hasExperienceBar()Z
-
hasLimitedAttackSpeed
public boolean hasLimitedAttackSpeed()- Mappings:
Namespace Name Mixin selector official gLbda;g()Zintermediary method_1244Lnet/minecraft/class_477;method_1244()Znamed hasLimitedAttackSpeedLnet/minecraft/client/network/ClientPlayerInteractionManager;hasLimitedAttackSpeed()Z
-
hasCreativeInventory
public boolean hasCreativeInventory()- Mappings:
Namespace Name Mixin selector official hLbda;h()Zintermediary method_1245Lnet/minecraft/class_477;method_1245()Znamed hasCreativeInventoryLnet/minecraft/client/network/ClientPlayerInteractionManager;hasCreativeInventory()Z
-
hasExtendedReach
public boolean hasExtendedReach()- Mappings:
Namespace Name Mixin selector official iLbda;i()Zintermediary method_1246Lnet/minecraft/class_477;method_1246()Znamed hasExtendedReachLnet/minecraft/client/network/ClientPlayerInteractionManager;hasExtendedReach()Z
-
hasRidingInventory
public boolean hasRidingInventory()- Mappings:
Namespace Name Mixin selector official jLbda;j()Zintermediary method_5707Lnet/minecraft/class_477;method_5707()Znamed hasRidingInventoryLnet/minecraft/client/network/ClientPlayerInteractionManager;hasRidingInventory()Z
-
isFlyingLocked
public boolean isFlyingLocked()- Mappings:
Namespace Name Mixin selector official kLbda;k()Zintermediary method_9666Lnet/minecraft/class_477;method_9666()Znamed isFlyingLockedLnet/minecraft/client/network/ClientPlayerInteractionManager;isFlyingLocked()Z
-
getCurrentGameMode
- Mappings:
Namespace Name Mixin selector official lLbda;l()Ladp$a;intermediary method_9667Lnet/minecraft/class_477;method_9667()Lnet/minecraft/class_1156$class_1157;named getCurrentGameModeLnet/minecraft/client/network/ClientPlayerInteractionManager;getCurrentGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
-
isBreakingBlock
public boolean isBreakingBlock()- Mappings:
Namespace Name Mixin selector official mLbda;m()Zintermediary method_9668Lnet/minecraft/class_477;method_9668()Znamed isBreakingBlockLnet/minecraft/client/network/ClientPlayerInteractionManager;isBreakingBlock()Z
-