Class ResolvableProfile
java.lang.Object
net.minecraft.world.item.component.ResolvableProfile
- All Implemented Interfaces:
TooltipProvider
- Direct Known Subclasses:
ResolvableProfile.Dynamic,ResolvableProfile.Static
public abstract sealed class ResolvableProfile
extends Object
implements TooltipProvider
permits ResolvableProfile.Static, ResolvableProfile.Dynamic
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classprotected static final recordstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResolvableProfile> private static final com.mojang.serialization.Codec<ResolvableProfile> protected final com.mojang.authlib.GameProfileprotected final PlayerSkin.Patchstatic final StreamCodec<io.netty.buffer.ByteBuf, ResolvableProfile> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResolvableProfile(com.mojang.authlib.GameProfile pPartialProfile, PlayerSkin.Patch pSkinPatch) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ResolvableProfilecreate(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> pPartialProfile, PlayerSkin.Patch pSkinPatch) (package private) static com.mojang.authlib.GameProfilecreatePartialProfile(Optional<String> pUsername, Optional<UUID> pId, com.mojang.authlib.properties.PropertyMap pProperties) static ResolvableProfilecreateResolved(com.mojang.authlib.GameProfile pGameProfile) static ResolvableProfilecreateUnresolved(String pName) static ResolvableProfilecreateUnresolved(UUID pId) name()com.mojang.authlib.GameProfileabstract CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver pResolver) protected abstract com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> unpack()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.component.TooltipProvider
addToTooltip
-
Field Details
-
FULL_CODEC
-
CODEC
-
STREAM_CODEC
-
partialProfile
protected final com.mojang.authlib.GameProfile partialProfile -
skinPatch
-
-
Constructor Details
-
ResolvableProfile
protected ResolvableProfile(com.mojang.authlib.GameProfile pPartialProfile, PlayerSkin.Patch pSkinPatch)
-
-
Method Details
-
create
private static ResolvableProfile create(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> pPartialProfile, PlayerSkin.Patch pSkinPatch) -
createResolved
-
createUnresolved
-
createUnresolved
-
unpack
protected abstract com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile,ResolvableProfile.Partial> unpack() -
resolveProfile
public abstract CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver pResolver) -
partialProfile
public com.mojang.authlib.GameProfile partialProfile() -
skinPatch
-
createPartialProfile
-
name
-