net.minecraft.client.network

public class ClientPlayerInteractionManager

net.minecraft.client.multiplayer.MultiPlayerGameMode
net.minecraft.class_636
net.minecraft.client.network.ClientPlayerInteractionManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_20316
LOGGER
private final MinecraftClient
minecraft
field_3712
client
private final ClientPlayNetworkHandler
connection
field_3720
networkHandler
private BlockPos
destroyBlockPos
field_3714
currentBreakingPos
private ItemStack
destroyingItem
field_3718
selectedStack
private float
destroyProgress
field_3715
currentBreakingProgress
private float
destroyTicks
field_3713
blockBreakingSoundCooldown
private int
destroyDelay
field_3716
blockBreakingCooldown
private boolean
isDestroying
field_3717
breakingBlock
private GameMode
localPlayerMode
field_3719
gameMode
private GameMode
previousLocalPlayerMode
field_24608
previousGameMode
private int
carriedIndex
field_3721
lastSelectedSlot

Constructor summary

ModifierConstructor
public (MinecraftClient client, ClientPlayNetworkHandler networkHandler)

Method summary

Modifier and TypeMethod
public void
adjustPlayer(Player player)
method_2903(class_1657 arg0)
copyAbilities(PlayerEntity player)
public void
setLocalMode(GameType mode, GameType previousMode)
method_32790(class_1934 arg0, class_1934 arg1)
setGameModes(GameMode gameMode, GameMode previousGameMode)
public void
setLocalMode(GameType mode)
method_2907(class_1934 arg0)
setGameMode(GameMode gameMode)
public boolean
canHurtPlayer()
method_2908()
hasStatusBars()
public boolean
destroyBlock(BlockPos pos)
method_2899(class_2338 arg0)
breakBlock(BlockPos pos)
public boolean
startDestroyBlock(BlockPos pos, Direction direction)
method_2910(class_2338 arg0, class_2350 arg1)
attackBlock(BlockPos pos, Direction direction)
public void
stopDestroyBlock()
method_2925()
cancelBlockBreaking()
public boolean
continueDestroyBlock(BlockPos pos, Direction direction)
method_2902(class_2338 arg0, class_2350 arg1)
updateBlockBreakingProgress(BlockPos pos, Direction direction)
private void
startPrediction(ClientLevel level, PredictiveAction predictiveAction)
method_41931(class_638 arg0, class_7204 arg1)
sendSequencedPacket(ClientWorld world, SequencedPacketCreator packetCreator)
public void
tick()
method_2927()
tick()
private boolean
sameDestroyTarget(BlockPos pos)
method_2922(class_2338 arg0)
isCurrentlyBreaking(BlockPos pos)
private void
ensureHasSentCarriedItem()
method_2911()
syncSelectedSlot()
public ActionResult
useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit)
method_2896(class_746 arg0, class_1268 arg1, class_3965 arg2)
interactBlock(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult)
private ActionResult
performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit)
method_41934(class_746 arg0, class_1268 arg1, class_3965 arg2)
interactBlockInternal(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult)
public ActionResult
useItem(Player player, InteractionHand hand)
method_2919(class_1657 arg0, class_1268 arg1)
interactItem(PlayerEntity player, Hand hand)
public ClientPlayerEntity
createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook)
method_29357(class_638 arg0, class_3469 arg1, class_299 arg2)
createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook)
public ClientPlayerEntity
createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook, Input lastSentInput, boolean wasSprinting)
method_2901(class_638 arg0, class_3469 arg1, class_299 arg2, class_10185 arg3, boolean arg4)
createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook, PlayerInput lastPlayerInput, boolean lastSprinting)
public void
attack(Player player, Entity entity)
method_2918(class_1657 arg0, class_1297 arg1)
attackEntity(PlayerEntity player, Entity target)
public ActionResult
interact(Player player, Entity entity, InteractionHand hand)
method_2905(class_1657 arg0, class_1297 arg1, class_1268 arg2)
interactEntity(PlayerEntity player, Entity entity, Hand hand)
public ActionResult
interactAt(Player player, Entity entity, EntityHitResult hitResult, InteractionHand hand)
method_2917(class_1657 arg0, class_1297 arg1, class_3966 arg2, class_1268 arg3)
interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)
public void
handleInventoryMouseClick(int containerId, int slotNum, int buttonNum, ClickType clickType, Player player)
method_2906(int arg0, int arg1, int arg2, class_1713 arg3, class_1657 arg4)
clickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player)
public void
handlePlaceRecipe(int containerId, RecipeDisplayId recipe, boolean useMaxItems)
method_2912(int arg0, class_10298 arg1, boolean arg2)
clickRecipe(int syncId, NetworkRecipeId recipeId, boolean craftAll)
public void
handleInventoryButtonClick(int containerId, int buttonId)
method_2900(int arg0, int arg1)
clickButton(int syncId, int buttonId)
public void
handleCreativeModeItemAdd(ItemStack clicked, int slot)
method_2909(class_1799 arg0, int arg1)
clickCreativeStack(ItemStack stack, int slotId)
public void
handleCreativeModeItemDrop(ItemStack clicked)
method_2915(class_1799 arg0)
dropCreativeStack(ItemStack stack)
public void
releaseUsingItem(Player player)
method_2897(class_1657 arg0)
stopUsingItem(PlayerEntity player)
public void
piercingAttack(PiercingWeapon weapon)
method_75407(class_12125 arg0)
attackWithPiercingWeapon(PiercingWeaponComponent piercingWeaponComponent)
public boolean
hasExperience()
method_2913()
hasExperienceBar()
public boolean
hasMissTime()
method_2924()
hasLimitedAttackSpeed()
public boolean
isServerControlledInventory()
method_2895()
hasRidingInventory()
public boolean
isSpectator()
method_2928()
isFlyingLocked()
public GameMode
getPreviousPlayerMode()
method_28107()
getPreviousGameMode()
public GameMode
getPlayerMode()
method_2920()
getCurrentGameMode()
public boolean
isDestroying()
method_2923()
isBreakingBlock()
public int
getDestroyStage()
method_51888()
getBlockBreakingProgress()
public void
handlePickItemFromBlock(BlockPos pos, boolean includeData)
method_65193(class_2338 arg0, boolean arg1)
pickItemFromBlock(BlockPos pos, boolean includeData)
public void
handlePickItemFromEntity(Entity entity, boolean includeData)
method_2916(class_1297 arg0, boolean arg1)
pickItemFromEntity(Entity entity, boolean includeData)
public void
handleSlotStateChanged(int slotId, int containerId, boolean newState)
method_54634(int arg0, int arg1, boolean arg2)
slotChangedState(int slot, int screenHandlerId, boolean newState)
private Packet
lambda$useItem$6(InteractionHand arg0, Player arg1, org.apache.commons.lang3.mutable.MutableObject arg2, int arg3)
method_41929(class_1268 arg0, class_1657 arg1, org.apache.commons.lang3.mutable.MutableObject arg2, int arg3)
method_41929(Hand arg0, PlayerEntity arg1, org.apache.commons.lang3.mutable.MutableObject arg2, int sequence)
private static ItemStack
lambda$useItem$5(Player arg0, InteractionHand arg1)
method_62152(class_1657 arg0, class_1268 arg1)
method_62152(PlayerEntity arg0, Hand arg1)
private Packet
lambda$useItemOn$4(org.apache.commons.lang3.mutable.MutableObject arg0, LocalPlayer arg1, InteractionHand arg2, BlockHitResult arg3, int arg4)
method_41933(org.apache.commons.lang3.mutable.MutableObject arg0, class_746 arg1, class_1268 arg2, class_3965 arg3, int arg4)
method_41933(org.apache.commons.lang3.mutable.MutableObject arg0, ClientPlayerEntity arg1, Hand arg2, BlockHitResult arg3, int sequence)
private Packet
lambda$continueDestroyBlock$3(BlockPos arg0, Direction arg1, int arg2)
method_41932(class_2338 arg0, class_2350 arg1, int arg2)
method_41932(BlockPos arg0, Direction arg1, int sequence)
private Packet
lambda$continueDestroyBlock$2(BlockPos arg0, Direction arg1, int arg2)
method_41935(class_2338 arg0, class_2350 arg1, int arg2)
method_41935(BlockPos arg0, Direction arg1, int sequence)
private Packet
lambda$startDestroyBlock$1(BlockState arg0, BlockPos arg1, Direction arg2, int arg3)
method_41930(class_2680 arg0, class_2338 arg1, class_2350 arg2, int arg3)
method_41930(BlockState arg0, BlockPos arg1, Direction arg2, int sequence)
private Packet
lambda$startDestroyBlock$0(BlockPos arg0, Direction arg1, int arg2)
method_41936(class_2338 arg0, class_2350 arg1, int arg2)
method_41936(BlockPos arg0, Direction arg1, int sequence)