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 Either<GameProfile, ResolvableProfile.Partial> static final ResolvableProfile.StaticFields inherited from class ResolvableProfile
CODEC, partialProfile, skinPatch, STREAM_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStatic(Either<GameProfile, ResolvableProfile.Partial> contents, 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
-
EMPTY
-
contents
-
-
Constructor Details
-
Static
-
-
Method Details
-
resolveProfile
- Specified by:
resolveProfilein classResolvableProfile
-
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)
-