net.minecraft.client.network

public class ClientPlayerInteractionManager

net.minecraft.client.multiplayer.MultiPlayerGameMode
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
LOGGER
field_20316
LOGGER
private static final int
DEFAULT_DESTROY_COOLDOWN_TICKS
DEFAULT_DESTROY_COOLDOWN_TICKS
field_1_7542
BLOCK_BREAKING_COOLDOWN
private final MinecraftClient
minecraft
minecraft
field_3712
client
private final ClientPlayNetworkHandler
connection
connection
field_3720
networkHandler
private BlockPos
destroyBlockPos
destroyBlockPos
field_3714
currentBreakingPos
private ItemStack
destroyingItem
destroyingItem
field_3718
selectedStack
private float
destroyProgress
destroyProgress
field_3715
currentBreakingProgress
private float
destroyTicks
destroyTicks
field_3713
blockBreakingSoundCooldown
private int
destroyDelay
destroyDelay
field_3716
blockBreakingCooldown
private Direction
destroyDirection
destroyDirection
field_1_10523
field_1_10523
private boolean
isDestroying
isDestroying
field_3717
breakingBlock
private GameMode
localPlayerMode
localPlayerMode
field_3719
gameMode
private GameMode
previousLocalPlayerMode
previousLocalPlayerMode
field_24608
previousGameMode
private int
carriedIndex
carriedIndex
field_3721
lastSelectedSlot

Constructor summary

ModifierConstructor
public (MinecraftClient client, ClientPlayNetworkHandler networkHandler)

Method summary

Modifier and TypeMethod
public void
adjustPlayer(Player player)
adjustPlayer(Player player)
method_2903(class_1657 arg0)
copyAbilities(PlayerEntity player)
public void
setLocalMode(GameType mode, GameType previousMode)
setLocalMode(GameType mode, GameType previousMode)
method_32790(class_1934 arg0, class_1934 arg1)
setGameModes(GameMode gameMode, GameMode previousGameMode)
public void
setLocalMode(GameType mode)
setLocalMode(GameType mode)
method_2907(class_1934 arg0)
setGameMode(GameMode gameMode)
public boolean
canHurtPlayer()
canHurtPlayer()
method_2908()
hasStatusBars()
public boolean
destroyBlock(BlockPos pos)
destroyBlock(BlockPos pos)
method_2899(class_2338 arg0)
breakBlock(BlockPos pos)
public boolean
startDestroyBlock(BlockPos pos, Direction direction)
startDestroyBlock(BlockPos pos, Direction direction)
method_2910(class_2338 arg0, class_2350 arg1)
attackBlock(BlockPos pos, Direction direction)
public void
stopDestroyBlock()
stopDestroyBlock()
method_2925()
cancelBlockBreaking()
public boolean
continueDestroyBlock(BlockPos pos, Direction direction)
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)
startPrediction(ClientLevel level, PredictiveAction predictiveAction)
method_41931(class_638 arg0, class_7204 arg1)
sendSequencedPacket(ClientWorld world, SequencedPacketCreator packetCreator)
public void
tick()
tick()
method_2927()
tick()
private boolean
sameDestroyTarget(BlockPos pos)
sameDestroyTarget(BlockPos pos)
method_2922(class_2338 arg0)
isCurrentlyBreaking(BlockPos pos)
private void
ensureHasSentCarriedItem()
ensureHasSentCarriedItem()
method_2911()
syncSelectedSlot()
public ActionResult
useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit)
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)
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)
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, ItemActivation itemActivation)
createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook, ItemActivation itemActivation)
method_29357(class_638 arg0, class_3469 arg1, class_299 arg2, class_1_1450 arg3)
createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook, FloatingItemAnimationManager arg3)
public ClientPlayerEntity
createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook, Input lastSentInput, boolean wasSprinting, ItemActivation itemActivation)
createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook, Input lastSentInput, boolean wasSprinting, ItemActivation itemActivation)
method_2901(class_638 arg0, class_3469 arg1, class_299 arg2, class_10185 arg3, boolean arg4, class_1_1450 arg5)
createPlayer(ClientWorld world, StatHandler statHandler, ClientRecipeBook recipeBook, PlayerInput lastPlayerInput, boolean lastSprinting, FloatingItemAnimationManager arg5)
public void
attack(Player player, Entity entity)
attack(Player player, Entity entity)
method_2918(class_1657 arg0, class_1297 arg1)
attackEntity(PlayerEntity player, Entity target)
public void
spectate(Entity entity)
spectate(Entity entity)
method_1_1045(class_1297 arg0)
spectate(Entity entity)
public void
spectatorNoAction()
spectatorNoAction()
method_1_5680()
stopSpectatingEntity()
public ActionResult
interact(Player player, Entity entity, EntityHitResult hitResult, InteractionHand hand)
interact(Player player, Entity entity, EntityHitResult hitResult, InteractionHand hand)
method_1_1044(class_1657 arg0, class_1297 arg1, class_3966 arg2, class_1268 arg3)
interactWithEntity(PlayerEntity player, Entity target, EntityHitResult hitResult, Hand hand)
public void
handleContainerInput(int containerId, int slotNum, int buttonNum, ContainerInput containerInput, Player player)
handleContainerInput(int containerId, int slotNum, int buttonNum, ContainerInput containerInput, Player player)
method_2906(int arg0, int arg1, int arg2, class_1713 arg3, class_1657 arg4)
clickSlot(int syncId, int slotId, int button, SlotActionType slotActionType, PlayerEntity player)
public void
handlePlaceRecipe(int containerId, RecipeDisplayId recipe, boolean useMaxItems)
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)
handleInventoryButtonClick(int containerId, int buttonId)
method_2900(int arg0, int arg1)
clickButton(int syncId, int buttonId)
public void
handleCreativeModeItemAdd(ItemStack clicked, int slot)
handleCreativeModeItemAdd(ItemStack clicked, int slot)
method_2909(class_1799 arg0, int arg1)
clickCreativeStack(ItemStack stack, int slotId)
public void
handleCreativeModeItemDrop(ItemStack clicked)
handleCreativeModeItemDrop(ItemStack clicked)
method_2915(class_1799 arg0)
dropCreativeStack(ItemStack stack)
public void
releaseUsingItem(Player player)
releaseUsingItem(Player player)
method_2897(class_1657 arg0)
stopUsingItem(PlayerEntity player)
public void
piercingAttack(SwingAnimation swingAnimation, PiercingWeapon weapon)
piercingAttack(SwingAnimation swingAnimation, PiercingWeapon weapon)
method_75407(class_12126 arg0, class_12125 arg1)
attackWithPiercingWeapon(SwingAnimationComponent arg0, PiercingWeaponComponent arg1)
public boolean
hasExperience()
hasExperience()
method_2913()
hasExperienceBar()
public boolean
hasMissTime()
hasMissTime()
method_2924()
hasLimitedAttackSpeed()
public boolean
isServerControlledInventory()
isServerControlledInventory()
method_2895()
hasRidingInventory()
public boolean
isSpectator()
isSpectator()
method_2928()
isFlyingLocked()
public GameMode
getPreviousPlayerMode()
getPreviousPlayerMode()
method_28107()
getPreviousGameMode()
public GameMode
getPlayerMode()
getPlayerMode()
method_2920()
getCurrentGameMode()
public boolean
isDestroying()
isDestroying()
method_2923()
isBreakingBlock()
public int
getDestroyStage()
getDestroyStage()
method_51888()
getBlockBreakingProgress()
public void
handlePickItemFromBlock(BlockPos pos, boolean includeData)
handlePickItemFromBlock(BlockPos pos, boolean includeData)
method_65193(class_2338 arg0, boolean arg1)
pickItemFromBlock(BlockPos pos, boolean includeData)
public void
handlePickItemFromEntity(Entity entity, boolean includeData)
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)
handleSlotStateChanged(int slotId, int containerId, boolean newState)
method_54634(int arg0, int arg1, boolean arg2)
slotChangedState(int slot, int screenHandlerId, boolean newState)
public void
dropItem(LocalPlayer player, boolean all)
dropItem(LocalPlayer player, boolean all)
method_1_10285(class_746 arg0, boolean arg1)
dropItem(ClientPlayerEntity player, boolean ctrlPressed)