Package net.minecraft.client.resources
Record Class SkinManager.TextureInfo
java.lang.Object
java.lang.Record
net.minecraft.client.resources.SkinManager.TextureInfo
- Enclosing class:
- SkinManager
static record SkinManager.TextureInfo(@Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture skin, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture cape, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.authlib.minecraft.MinecraftProfileTexture
The field for thecape
record component.private final com.mojang.authlib.minecraft.MinecraftProfileTexture
The field for theelytra
record component.static final SkinManager.TextureInfo
private final boolean
The field for thesecure
record component.private final com.mojang.authlib.minecraft.MinecraftProfileTexture
The field for theskin
record component. -
Constructor Summary
ConstructorDescriptionTextureInfo
(com.mojang.authlib.minecraft.MinecraftProfileTexture skin, com.mojang.authlib.minecraft.MinecraftProfileTexture cape, com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure) Creates an instance of aTextureInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.authlib.minecraft.MinecraftProfileTexture
cape()
Returns the value of thecape
record component.com.mojang.authlib.minecraft.MinecraftProfileTexture
elytra()
Returns the value of theelytra
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
secure()
Returns the value of thesecure
record component.com.mojang.authlib.minecraft.MinecraftProfileTexture
skin()
Returns the value of theskin
record component.final String
toString()
Returns a string representation of this record class.static SkinManager.TextureInfo
unpack
(Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type, com.mojang.authlib.minecraft.MinecraftProfileTexture> p_297479_, boolean p_297713_)
-
Field Details
-
skin
@Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture skinThe field for theskin
record component. -
cape
@Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture capeThe field for thecape
record component. -
elytra
@Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture elytraThe field for theelytra
record component. -
secure
private final boolean secureThe field for thesecure
record component. -
EMPTY
-
-
Constructor Details
-
TextureInfo
TextureInfo(@Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture skin, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture cape, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure) Creates an instance of aTextureInfo
record class.- Parameters:
skin
- the value for theskin
record componentcape
- the value for thecape
record componentelytra
- the value for theelytra
record componentsecure
- the value for thesecure
record component
-
-
Method Details
-
unpack
public static SkinManager.TextureInfo unpack(Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type, com.mojang.authlib.minecraft.MinecraftProfileTexture> p_297479_, boolean p_297713_) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
skin
@Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture skin()Returns the value of theskin
record component.- Returns:
- the value of the
skin
record component
-
cape
@Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture cape()Returns the value of thecape
record component.- Returns:
- the value of the
cape
record component
-
elytra
@Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture elytra()Returns the value of theelytra
record component.- Returns:
- the value of the
elytra
record component
-
secure
public boolean secure()Returns the value of thesecure
record component.- Returns:
- the value of the
secure
record component
-