Package net.minecraft.client.multiplayer
Class MultiPlayerGameMode
java.lang.Object
net.minecraft.client.multiplayer.MultiPlayerGameMode
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadjustPlayer(Player p_105222_) voidbooleanbooleancontinueDestroyBlock(BlockPos p_105284_, Direction p_105285_) createPlayer(ClientLevel p_105247_, StatsCounter p_105248_, ClientRecipeBook p_105249_) createPlayer(ClientLevel p_105251_, StatsCounter p_105252_, ClientRecipeBook p_105253_, boolean p_105254_, boolean p_105255_) booleandestroyBlock(BlockPos p_105268_) private voidintfloatvoidhandleCreativeModeItemAdd(ItemStack p_105242_, int p_105243_) voidhandleCreativeModeItemDrop(ItemStack p_105240_) voidhandleInventoryButtonClick(int p_105209_, int p_105210_) voidhandleInventoryMouseClick(int p_171800_, int p_171801_, int p_171802_, ClickType p_171803_, Player p_171804_) voidhandlePickItem(int p_105207_) voidhandlePlaceRecipe(int p_105218_, RecipeHolder<?> p_301105_, boolean p_105220_) voidhandleSlotStateChanged(int p_307527_, int p_307194_, boolean p_307559_) booleanbooleanbooleanbooleaninteract(Player p_105227_, Entity p_105228_, InteractionHand p_105229_) interactAt(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) booleanbooleanbooleanprivate InteractionResultperformUseItemOn(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_) voidreleaseUsingItem(Player p_105278_) private booleansameDestroyTarget(BlockPos p_105282_) voidsetLocalMode(GameType p_105280_) voidsetLocalMode(GameType p_171806_, GameType p_171807_) booleanstartDestroyBlock(BlockPos p_105270_, Direction p_105271_) private voidstartPrediction(ClientLevel p_233730_, PredictiveAction p_233731_) voidvoidtick()useItem(Player p_233722_, InteractionHand p_233723_) useItemOn(LocalPlayer p_233733_, InteractionHand p_233734_, BlockHitResult p_233735_) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
minecraft
- 
connection
- 
destroyBlockPos
- 
destroyingItem
- 
destroyProgressprivate float destroyProgress
- 
destroyTicksprivate float destroyTicks
- 
destroyDelayprivate int destroyDelay
- 
isDestroyingprivate boolean isDestroying
- 
localPlayerMode
- 
previousLocalPlayerMode
- 
carriedIndexprivate int carriedIndex
 
- 
- 
Constructor Details- 
MultiPlayerGameMode
 
- 
- 
Method Details- 
adjustPlayer
- 
setLocalMode
- 
setLocalMode
- 
canHurtPlayerpublic boolean canHurtPlayer()
- 
destroyBlock
- 
startDestroyBlock
- 
stopDestroyBlockpublic void stopDestroyBlock()
- 
continueDestroyBlock
- 
startPrediction
- 
getPickRangepublic float getPickRange()
- 
tickpublic void tick()
- 
sameDestroyTarget
- 
ensureHasSentCarriedItemprivate void ensureHasSentCarriedItem()
- 
useItemOnpublic InteractionResult useItemOn(LocalPlayer p_233733_, InteractionHand p_233734_, BlockHitResult p_233735_) 
- 
performUseItemOnprivate InteractionResult performUseItemOn(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_) 
- 
useItem
- 
createPlayerpublic LocalPlayer createPlayer(ClientLevel p_105247_, StatsCounter p_105248_, ClientRecipeBook p_105249_) 
- 
createPlayerpublic LocalPlayer createPlayer(ClientLevel p_105251_, StatsCounter p_105252_, ClientRecipeBook p_105253_, boolean p_105254_, boolean p_105255_) 
- 
attack
- 
interact
- 
interactAtpublic InteractionResult interactAt(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) 
- 
handleInventoryMouseClick
- 
handlePlaceRecipe
- 
handleInventoryButtonClickpublic void handleInventoryButtonClick(int p_105209_, int p_105210_) 
- 
handleCreativeModeItemAdd
- 
handleCreativeModeItemDrop
- 
releaseUsingItem
- 
hasExperiencepublic boolean hasExperience()
- 
hasMissTimepublic boolean hasMissTime()
- 
hasInfiniteItemspublic boolean hasInfiniteItems()
- 
hasFarPickRangepublic boolean hasFarPickRange()
- 
isServerControlledInventorypublic boolean isServerControlledInventory()
- 
isAlwaysFlyingpublic boolean isAlwaysFlying()
- 
getPreviousPlayerMode
- 
getPlayerMode
- 
isDestroyingpublic boolean isDestroying()
- 
getDestroyStagepublic int getDestroyStage()
- 
handlePickItempublic void handlePickItem(int p_105207_) 
- 
handleSlotStateChangedpublic void handleSlotStateChanged(int p_307527_, int p_307194_, boolean p_307559_) 
 
-