Uses of Class
net.minecraft.client.player.LocalPlayer
Packages that use 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
Fields in net.minecraft.client declared as LocalPlayer -
Uses of LocalPlayer in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens declared as LocalPlayerMethods in net.minecraft.client.gui.screens with parameters of type LocalPlayerModifier and TypeMethodDescriptionprotected static voidScreen.clickCommandAction(LocalPlayer player, String command, @Nullable Screen screenAfterCommand) Constructors in net.minecraft.client.gui.screens with parameters of type LocalPlayerModifierConstructorDescriptionDeathScreen(@Nullable Component causeOfDeath, boolean hardcore, LocalPlayer player) -
Uses of LocalPlayer in net.minecraft.client.gui.screens.inventory
Constructors in net.minecraft.client.gui.screens.inventory with parameters of type LocalPlayerModifierConstructorDescriptionCreativeModeInventoryScreen(LocalPlayer player, FeatureFlagSet enabledFeatures, boolean displayOperatorCreativeTab) -
Uses of LocalPlayer in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as LocalPlayerModifier and TypeFieldDescriptionprivate final LocalPlayerLevelLoadTracker.WaitingForPlayerChunk.playerThe field for theplayerrecord component.private final LocalPlayerLevelLoadTracker.WaitingForServer.playerThe field for theplayerrecord component.Methods in net.minecraft.client.multiplayer that return LocalPlayerModifier and TypeMethodDescriptionMultiPlayerGameMode.createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook, ItemActivation itemActivation) MultiPlayerGameMode.createPlayer(ClientLevel level, StatsCounter stats, ClientRecipeBook recipeBook, Input lastSentInput, boolean wasSprinting, ItemActivation itemActivation) LevelLoadTracker.WaitingForPlayerChunk.player()Returns the value of theplayerrecord component.LevelLoadTracker.WaitingForServer.player()Returns the value of theplayerrecord component.Methods in net.minecraft.client.multiplayer with parameters of type LocalPlayerModifier and TypeMethodDescriptionvoidMultiPlayerGameMode.dropItem(LocalPlayer player, boolean all) private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) voidLevelLoadTracker.startClientLoad(LocalPlayer player, ClientLevel level) private voidClientPacketListener.startWaitingForNewLevel(LocalPlayer player, ClientLevel level, LevelLoadingScreen.Reason reason) Deprecated.private voidClientPacketListener.startWaitingForNewLevel(LocalPlayer player, ClientLevel level, LevelLoadingScreen.Reason reason, @Nullable ResourceKey<Level> toDimension, @Nullable ResourceKey<Level> fromDimension) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) Constructors in net.minecraft.client.multiplayer with parameters of type LocalPlayerModifierConstructorDescriptionprivateWaitingForPlayerChunk(LocalPlayer player, ClientLevel level, AtomicBoolean playerSectionReady, long timeoutAfter) Creates an instance of aWaitingForPlayerChunkrecord class.privateWaitingForServer(LocalPlayer player, ClientLevel level, long timeoutAfter) Creates an instance of aWaitingForServerrecord class. -
Uses of LocalPlayer in net.minecraft.client.multiplayer.prediction
Methods in net.minecraft.client.multiplayer.prediction with parameters of type LocalPlayerModifier and TypeMethodDescriptionvoidBlockStatePredictionHandler.retainKnownServerState(BlockPos pos, BlockState state, LocalPlayer player) -
Uses of LocalPlayer in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type LocalPlayerModifier and TypeMethodDescriptionFirstPersonHandsAndItems.evaluateWhichHandsToRender(LocalPlayer player) private booleanFirstPersonHandsAndItems.extractMapRenderState(LocalPlayer player, ItemStack itemStack, MapRenderState state) voidFirstPersonHandsAndItems.extractRenderState(LocalPlayer player, float partialTicks, FirstPersonHandsAndItemsRenderState state) private booleanFirstPersonHandsAndItems.shouldInstantlyReplaceVisibleItem(ItemStack currentlyVisibleItem, ItemStack expectedItem, LocalPlayer player) voidFirstPersonHandsAndItems.tick(LocalPlayer player) -
Uses of LocalPlayer in net.minecraft.client.renderer.extract
Methods in net.minecraft.client.renderer.extract with parameters of type LocalPlayerModifier and TypeMethodDescriptionprivate static @Nullable BlockStateLevelExtractor.getViewBlockingState(LocalPlayer player, Frustum frustum) Deprecated.Neo: useLevelExtractor.getViewBlockingStateAndPos(LocalPlayer, Frustum)insteadprivate static @Nullable org.apache.commons.lang3.tuple.Pair<BlockState, BlockPos> LevelExtractor.getViewBlockingStateAndPos(LocalPlayer player, Frustum frustum) -
Uses of LocalPlayer in net.minecraft.client.resources.sounds
Fields in net.minecraft.client.resources.sounds declared as LocalPlayerModifier and TypeFieldDescriptionprivate final LocalPlayerBiomeAmbientSoundsHandler.playerprivate final LocalPlayerBubbleColumnAmbientSoundHandler.playerprivate final LocalPlayerElytraOnPlayerSoundInstance.playerprivate final LocalPlayerUnderLiquidAmbientSoundInstance.playerprivate final LocalPlayerUnderLiquidSubSound.playerprivate final LocalPlayerUnderwaterAmbientSoundHandler.playerFields in net.minecraft.client.resources.sounds with type parameters of type LocalPlayerModifier and TypeFieldDescriptionprivate final Predicate<LocalPlayer> UnderLiquidAmbientSoundInstance.isUnderLiquidMethods in net.minecraft.client.resources.sounds with parameters of type LocalPlayerConstructors in net.minecraft.client.resources.sounds with parameters of type LocalPlayerModifierConstructorDescriptionBiomeAmbientSoundsHandler(LocalPlayer player, SoundManager soundManager) UnderLiquidAmbientSoundInstance(SoundEvent event, LocalPlayer player, Predicate<LocalPlayer> isUnderLiquid) protectedUnderLiquidSubSound(LocalPlayer player, SoundEvent event) UnderwaterAmbientSoundHandler(LocalPlayer player, SoundManager soundManager) Constructor parameters in net.minecraft.client.resources.sounds with type arguments of type LocalPlayerModifierConstructorDescriptionUnderLiquidAmbientSoundInstance(SoundEvent event, LocalPlayer player, Predicate<LocalPlayer> isUnderLiquid) -
Uses of LocalPlayer in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type LocalPlayerModifier and TypeMethodDescriptionprivate static booleanFindTreeTutorialStepInstance.hasCollectedTreeItems(LocalPlayer player) static booleanCraftPlanksTutorialStep.hasCraftedPlanksPreviously(LocalPlayer player, TagKey<Item> tag) static booleanFindTreeTutorialStepInstance.hasPunchedTreesPreviously(LocalPlayer player) -
Uses of LocalPlayer in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type LocalPlayerModifier and TypeMethodDescriptionstatic booleanClientHooks.extractBlockScreenEffect(LocalPlayer player, PlayerRenderState playerRenderState, BlockPos pos, BlockState state, Camera camera, float worldPartialTick, float playerPartialTick) private static booleanClientHooks.extractBlockScreenEffect(LocalPlayer player, PlayerRenderState playerRenderState, BlockPos pos, BlockState state, Camera camera, float worldPartialTick, float playerPartialTick, ExtractBlockScreenEffectEvent.OverlayType type) static voidClientHooks.extractFireScreenEffect(LocalPlayer player, PlayerRenderState playerRenderState, Camera camera, float worldPartialTick, float playerPartialTick) static booleanClientHooks.extractWaterScreenEffect(LocalPlayer player, PlayerRenderState playerRenderState, Camera camera, float worldPartialTick, float playerPartialTick) static voidClientHooks.firePlayerLogin(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager) static voidClientHooks.firePlayerLogout(@Nullable MultiPlayerGameMode pc, @Nullable LocalPlayer player) static voidClientHooks.firePlayerRespawn(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) -
Uses of LocalPlayer in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as LocalPlayerModifier and TypeFieldDescriptionprivate final LocalPlayerClientPlayerNetworkEvent.Clone.oldPlayerprivate final LocalPlayerClientPlayerNetworkEvent.playerprivate final LocalPlayerExtractBlockScreenEffectEvent.playerMethods in net.neoforged.neoforge.client.event that return LocalPlayerModifier 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.ClientPlayerNetworkEvent.LoggingOut.getPlayer()Returns the player instance, may benull.ExtractBlockScreenEffectEvent.getPlayer()Returns the player which the overlay will apply to.Constructors in net.neoforged.neoforge.client.event with parameters of type LocalPlayerModifierConstructorDescriptionprotectedClientPlayerNetworkEvent(MultiPlayerGameMode multiPlayerGameMode, LocalPlayer player, Connection connection) Clone(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) ExtractBlockScreenEffectEvent(LocalPlayer player, PlayerRenderState playerRenderState, BlockPos pos, BlockState state, Camera camera, float worldPartialTick, float playerPartialTick, ExtractBlockScreenEffectEvent.OverlayType type) LoggingIn(MultiPlayerGameMode controller, LocalPlayer player, Connection networkManager) LoggingOut(@Nullable MultiPlayerGameMode controller, @Nullable LocalPlayer player, @Nullable Connection networkManager) -
Uses of LocalPlayer in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type LocalPlayerModifier and TypeMethodDescriptiondefault voidIClientFluidTypeExtensions.extractOverlay(Minecraft minecraft, LocalPlayer player, PlayerRenderState playerRenderState, BlockPos eyePos, float brightness) Extracts an overlay renderer rendering theIClientFluidTypeExtensions.getRenderOverlayTexture(Minecraft)onto the camera when within the fluid.
ClientPacketListener.startWaitingForNewLevel(LocalPlayer, ClientLevel, LevelLoadingScreen.Reason, ResourceKey, ResourceKey)instead.