Uses of Class
net.minecraft.client.player.LocalPlayer
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of LocalPlayer in net.minecraft.client
-
Uses of LocalPlayer in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionMultiPlayerGameMode.createPlayer
(ClientLevel p_105247_, StatsCounter p_105248_, ClientRecipeBook p_105249_) MultiPlayerGameMode.createPlayer
(ClientLevel p_105251_, StatsCounter p_105252_, ClientRecipeBook p_105253_, boolean p_105254_, boolean p_105255_) Modifier and TypeMethodDescriptionprivate InteractionResult
MultiPlayerGameMode.performUseItemOn
(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_) MultiPlayerGameMode.useItemOn
(LocalPlayer p_233733_, InteractionHand p_233734_, BlockHitResult p_233735_) -
Uses of LocalPlayer in net.minecraft.client.multiplayer.prediction
Modifier and TypeMethodDescriptionvoid
BlockStatePredictionHandler.retainKnownServerState
(BlockPos p_233868_, BlockState p_233869_, LocalPlayer p_233870_) -
Uses of LocalPlayer in net.minecraft.client.player
-
Uses of LocalPlayer in net.minecraft.client.renderer
Modifier and TypeMethodDescription(package private) static ItemInHandRenderer.HandRenderSelection
ItemInHandRenderer.evaluateWhichHandsToRender
(LocalPlayer p_172915_) void
ItemInHandRenderer.renderHandsWithItems
(float p_109315_, PoseStack p_109316_, MultiBufferSource.BufferSource p_109317_, LocalPlayer p_109318_, int p_109319_) private static ItemInHandRenderer.HandRenderSelection
ItemInHandRenderer.selectionUsingItemWhileHoldingBowLike
(LocalPlayer p_172917_) -
Uses of LocalPlayer in net.minecraft.client.resources.sounds
Modifier and TypeFieldDescriptionprivate final LocalPlayer
BiomeAmbientSoundsHandler.player
private final LocalPlayer
BubbleColumnAmbientSoundHandler.player
private final LocalPlayer
ElytraOnPlayerSoundInstance.player
private final LocalPlayer
UnderwaterAmbientSoundHandler.player
private final LocalPlayer
UnderwaterAmbientSoundInstances.SubSound.player
private final LocalPlayer
UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance.player
ModifierConstructorDescriptionBiomeAmbientSoundsHandler
(LocalPlayer p_119639_, SoundManager p_119640_, BiomeManager p_119641_) BubbleColumnAmbientSoundHandler
(LocalPlayer p_119666_) ElytraOnPlayerSoundInstance
(LocalPlayer p_119673_) protected
SubSound
(LocalPlayer p_119861_, SoundEvent p_119862_) UnderwaterAmbientSoundHandler
(LocalPlayer p_119856_, SoundManager p_119857_) UnderwaterAmbientSoundInstance
(LocalPlayer p_119867_) -
Uses of LocalPlayer in net.minecraft.client.tutorial
Modifier and TypeMethodDescriptionprivate static boolean
FindTreeTutorialStepInstance.hasCollectedTreeItems
(LocalPlayer p_235272_) static boolean
CraftPlanksTutorialStep.hasCraftedPlanksPreviously
(LocalPlayer p_205663_, TagKey<Item> p_205664_) static boolean
FindTreeTutorialStepInstance.hasPunchedTreesPreviously
(LocalPlayer p_120504_) -
Uses of LocalPlayer in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic void
ForgeHooksClient.firePlayerLogin
(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager) static void
ForgeHooksClient.firePlayerLogout
(@Nullable MultiPlayerGameMode pc, @Nullable LocalPlayer player) static void
ForgeHooksClient.firePlayerRespawn
(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) -
Uses of LocalPlayer in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final LocalPlayer
ClientPlayerNetworkEvent.Clone.oldPlayer
private final LocalPlayer
ClientPlayerNetworkEvent.player
Modifier and TypeMethodDescriptionClientPlayerNetworkEvent.Clone.getNewPlayer()
Returns the newly created player instance.ClientPlayerNetworkEvent.Clone.getOldPlayer()
Returns the previous player instance.ClientPlayerNetworkEvent.Clone.getPlayer()
Returns the newly created player instance.ClientPlayerNetworkEvent.getPlayer()
Returns the player instance.@Nullable LocalPlayer
ClientPlayerNetworkEvent.LoggingOut.getPlayer()
Returns the player instance, may benull
.ModifierConstructorDescriptionprotected
ClientPlayerNetworkEvent
(MultiPlayerGameMode multiPlayerGameMode, LocalPlayer player, Connection connection) Clone
(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) LoggingIn
(MultiPlayerGameMode controller, LocalPlayer player, Connection networkManager) LoggingOut
(@Nullable MultiPlayerGameMode controller, @Nullable LocalPlayer player, @Nullable Connection networkManager) -
Uses of LocalPlayer in net.minecraftforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault boolean
IClientItemExtensions.applyForgeHandTransform
(PoseStack poseStack, LocalPlayer player, HumanoidArm arm, ItemStack itemInHand, float partialTick, float equipProcess, float swingProcess) Called right before when client applies transformations to item in hand and render it.