Record Class BedrockClassicSkinPack.Skin

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockClassicSkinPack.Skin
Enclosing class:
BedrockClassicSkinPack

public static record BedrockClassicSkinPack.Skin(String name, String texture, boolean slim, BedrockClassicModel model, BedrockClassicOptions options, String cape, String packId, String localizationName, int index) extends Record
  • Constructor Details

    • Skin

      public Skin(String name, String texture, boolean slim, BedrockClassicModel model, BedrockClassicOptions options, String cape, String packId, String localizationName, int index)
      Creates an instance of a Skin record class.
      Parameters:
      name - the value for the name record component
      texture - the value for the texture record component
      slim - the value for the slim record component
      model - the value for the model record component
      options - the value for the options record component
      cape - the value for the cape record component
      packId - the value for the packId record component
      localizationName - the value for the localizationName record component
      index - the value for the index record component
  • Method Details

    • skinId

      public String skinId()
    • recipeId

      public String recipeId()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • texture

      public String texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • slim

      public boolean slim()
      Returns the value of the slim record component.
      Returns:
      the value of the slim record component
    • model

      public BedrockClassicModel model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • options

      public BedrockClassicOptions options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • cape

      public String cape()
      Returns the value of the cape record component.
      Returns:
      the value of the cape record component
    • packId

      public String packId()
      Returns the value of the packId record component.
      Returns:
      the value of the packId record component
    • localizationName

      public String localizationName()
      Returns the value of the localizationName record component.
      Returns:
      the value of the localizationName record component
    • index

      public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component