Class ProfileComponent.Static

java.lang.Object
net.minecraft.component.type.ProfileComponent
net.minecraft.component.type.ProfileComponent.Static
All Implemented Interfaces:
TooltipAppender
Enclosing class:
ProfileComponent

public static final class ProfileComponent.Static extends ProfileComponent
Mappings:
Namespace Name
named net/minecraft/component/type/ProfileComponent$Static
intermediary net/minecraft/class_9296$class_11758
official dkq$c
  • Field Details

    • EMPTY

      public static final ProfileComponent.Static EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/component/type/ProfileComponent$Static;EMPTY:Lnet/minecraft/component/type/ProfileComponent$Static;
      intermediary field_63034 Lnet/minecraft/class_9296$class_11758;field_63034:Lnet/minecraft/class_9296$class_11758;
      official e Ldkq$c;e:Ldkq$c;
    • profileOrData

      private final com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile,ProfileComponent.Data> profileOrData
      Mappings:
      Namespace Name Mixin selector
      named profileOrData Lnet/minecraft/component/type/ProfileComponent$Static;profileOrData:Lcom/mojang/datafixers/util/Either;
      intermediary field_62077 Lnet/minecraft/class_9296$class_11758;field_62077:Lcom/mojang/datafixers/util/Either;
      official f Ldkq$c;f:Lcom/mojang/datafixers/util/Either;
  • Constructor Details

    • Static

      Static(com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile,ProfileComponent.Data> profileOrData, SkinTextures.SkinOverride override)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/ProfileComponent$Static;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/entity/player/SkinTextures$SkinOverride;)V
      intermediary <init> Lnet/minecraft/class_9296$class_11758;<init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/class_8685$class_11892;)V
      official <init> Ldkq$c;<init>(Lcom/mojang/datafixers/util/Either;Lczp$a;)V
  • Method Details

    • resolve

      public CompletableFuture<com.mojang.authlib.GameProfile> resolve(GameProfileResolver resolver)
      Specified by:
      resolve in class ProfileComponent
      Mappings:
      Namespace Name Mixin selector
      named resolve Lnet/minecraft/component/type/ProfileComponent;resolve(Lnet/minecraft/server/GameProfileResolver;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_73306 Lnet/minecraft/class_9296;method_73306(Lnet/minecraft/class_11755;)Ljava/util/concurrent/CompletableFuture;
      official a Ldkq;a(Lbbe;)Ljava/util/concurrent/CompletableFuture;
    • get

      protected com.mojang.datafixers.util.Either<com.mojang.authlib.GameProfile,ProfileComponent.Data> get()
      Specified by:
      get in class ProfileComponent
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/type/ProfileComponent;get()Lcom/mojang/datafixers/util/Either;
      intermediary method_73305 Lnet/minecraft/class_9296;method_73305()Lcom/mojang/datafixers/util/Either;
      official a Ldkq;a()Lcom/mojang/datafixers/util/Either;
    • getName

      public Optional<String> getName()
      Specified by:
      getName in class ProfileComponent
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/component/type/ProfileComponent;getName()Ljava/util/Optional;
      intermediary method_73317 Lnet/minecraft/class_9296;method_73317()Ljava/util/Optional;
      official d Ldkq;d()Ljava/util/Optional;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/component/type/ProfileComponent$Static;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_9296$class_11758;equals(Ljava/lang/Object;)Z
      official equals Ldkq$c;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • appendTooltip

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components)
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)V
      official a Ldkv;a(Ldhl$b;Ljava/util/function/Consumer;Ldje;Lkk;)V