Class ResolvableProfile.Static
java.lang.Object
net.minecraft.world.item.component.ResolvableProfile
net.minecraft.world.item.component.ResolvableProfile.Static
- All Implemented Interfaces:
TooltipProvider
- Enclosing class:
ResolvableProfile
-
Nested Class Summary
Nested classes/interfaces inherited from class ResolvableProfile
ResolvableProfile.Dynamic, ResolvableProfile.Partial, ResolvableProfile.Static -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> static final ResolvableProfile.StaticFields inherited from class ResolvableProfile
CODEC, partialProfile, skinPatch, STREAM_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStatic(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> contents, PlayerSkin.Patch skinPatch) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToTooltip(Item.TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components) booleaninthashCode()name()CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver profileResolver) protected com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> unpack()Methods inherited from class ResolvableProfile
createResolved, createUnresolved, createUnresolved, partialProfile, skinPatch
-
Field Details
-
EMPTY
-
contents
private final com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> contents
-
-
Constructor Details
-
Static
private Static(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> contents, PlayerSkin.Patch skinPatch)
-
-
Method Details
-
resolveProfile
public CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver profileResolver) - Specified by:
resolveProfilein classResolvableProfile
-
unpack
protected com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> unpack()- Specified by:
unpackin classResolvableProfile
-
name
- Specified by:
namein classResolvableProfile
-
equals
-
hashCode
-
addToTooltip
public void addToTooltip(Item.TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components)
-