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(Either<String, UUID> nameOrId, PlayerSkin.Patch skinPatch) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToTooltip(Item.TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components) booleaninthashCode()name()resolveProfile(ProfileResolver profileResolver) protected Either<GameProfile, ResolvableProfile.Partial> unpack()Methods inherited from class ResolvableProfile
createResolved, createUnresolved, createUnresolved, partialProfile, skinPatch
-
Field Details
-
DYNAMIC_TOOLTIP
-
nameOrId
-
-
Constructor Details
-
Dynamic
-
-
Method Details
-
name
- Specified by:
namein classResolvableProfile
-
equals
-
hashCode
-
unpack
- Specified by:
unpackin classResolvableProfile
-
resolveProfile
- Specified by:
resolveProfilein classResolvableProfile
-
addToTooltip
public void addToTooltip(Item.TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components)
-