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 net.minecraft.world.item.component.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 net.minecraft.world.item.component.ResolvableProfile
CODEC, partialProfile, skinPatch, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionStatic(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> pContents, PlayerSkin.Patch pPatch) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToTooltip(Item.TooltipContext p_440498_, Consumer<Component> p_440705_, TooltipFlag p_439909_, DataComponentGetter p_439256_) booleaninthashCode()name()CompletableFuture<com.mojang.authlib.GameProfile> resolveProfile(ProfileResolver p_440395_) 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
-
EMPTY
-
contents
private final com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile,ResolvableProfile.Partial> contents
-
-
Constructor Details
-
Static
Static(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile, ResolvableProfile.Partial> pContents, PlayerSkin.Patch pPatch)
-
-
Method Details
-
resolveProfile
- 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
public int hashCode() -
addToTooltip
public void addToTooltip(Item.TooltipContext p_440498_, Consumer<Component> p_440705_, TooltipFlag p_439909_, DataComponentGetter p_439256_)
-