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 net.minecraft.world.item.component.ResolvableProfile
ResolvableProfile.Dynamic, ResolvableProfile.Partial, ResolvableProfile.Static -
Field Summary
FieldsFields inherited from class net.minecraft.world.item.component.ResolvableProfile
CODEC, partialProfile, skinPatch, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionDynamic(com.mojang.datafixers.util.Either<String, UUID> pNameOrId, PlayerSkin.Patch pPatch) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToTooltip(Item.TooltipContext p_440633_, Consumer<Component> p_439744_, TooltipFlag p_440154_, DataComponentGetter p_440593_) booleaninthashCode()name()CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver p_440138_) protected com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> unpack()Methods inherited from class net.minecraft.world.item.component.ResolvableProfile
createPartialProfile, createResolved, createUnresolved, createUnresolved, partialProfile, skinPatch
-
Field Details
-
DYNAMIC_TOOLTIP
-
nameOrId
-
-
Constructor Details
-
Dynamic
Dynamic(com.mojang.datafixers.util.Either<String, UUID> pNameOrId, PlayerSkin.Patch pPatch)
-
-
Method Details
-
name
- Specified by:
namein classResolvableProfile
-
equals
-
hashCode
public int hashCode() -
unpack
protected com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile,ResolvableProfile.Partial> unpack()- Specified by:
unpackin classResolvableProfile
-
resolveProfile
- Specified by:
resolveProfilein classResolvableProfile
-
addToTooltip
public void addToTooltip(Item.TooltipContext p_440633_, Consumer<Component> p_439744_, TooltipFlag p_440154_, DataComponentGetter p_440593_)
-