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 Codec<ResolvableProfile> private static final Codec<ResolvableProfile> protected final GameProfileprotected final PlayerSkin.Patchstatic final StreamCodec<io.netty.buffer.ByteBuf, ResolvableProfile> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResolvableProfile(GameProfile partialProfile, PlayerSkin.Patch skinPatch) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ResolvableProfilecreate(Either<GameProfile, ResolvableProfile.Partial> value, PlayerSkin.Patch patch) private static GameProfilecreatePartialProfile(Optional<String> maybeName, Optional<UUID> maybeId, PropertyMap properties) static ResolvableProfilecreateResolved(GameProfile gameProfile) static ResolvableProfilecreateUnresolved(String name) static ResolvableProfilecreateUnresolved(UUID id) name()abstract CompletableFuture<GameProfile> resolveProfile(ProfileResolver profileResolver) protected abstract Either<GameProfile, ResolvableProfile.Partial> unpack()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TooltipProvider
addToTooltip
-
Field Details
-
FULL_CODEC
-
CODEC
-
STREAM_CODEC
-
partialProfile
-
skinPatch
-
-
Constructor Details
-
ResolvableProfile
-
-
Method Details
-
create
private static ResolvableProfile create(Either<GameProfile, ResolvableProfile.Partial> value, PlayerSkin.Patch patch) -
createResolved
-
createUnresolved
-
createUnresolved
-
unpack
-
resolveProfile
-
partialProfile
-
skinPatch
-
createPartialProfile
private static GameProfile createPartialProfile(Optional<String> maybeName, Optional<UUID> maybeId, PropertyMap properties) -
name
-