Class ResolvableProfile.Dynamic
java.lang.Object
net.minecraft.world.item.component.ResolvableProfile
net.minecraft.world.item.component.ResolvableProfile.Dynamic
- 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
FieldsFields inherited from class ResolvableProfile
CODEC, partialProfile, skinPatch, STREAM_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDynamic(com.mojang.datafixers.util.Either<String, UUID> nameOrId, 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
-
DYNAMIC_TOOLTIP
-
nameOrId
-
-
Constructor Details
-
Dynamic
private Dynamic(com.mojang.datafixers.util.Either<String, UUID> nameOrId, PlayerSkin.Patch skinPatch)
-
-
Method Details
-
name
- Specified by:
namein classResolvableProfile
-
equals
-
hashCode
-
unpack
protected com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> unpack()- Specified by:
unpackin classResolvableProfile
-
resolveProfile
public CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver profileResolver) - Specified by:
resolveProfilein classResolvableProfile
-
addToTooltip
public void addToTooltip(Item.TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components)
-