Record Class BedrockClassicSkinPack
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockClassicSkinPack
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBedrockClassicSkinPack(String name, List<BedrockClassicSkinPack.Skin> skins, Map<String, byte[]> files) Creates an instance of aBedrockClassicSkinPackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static BedrockClassicSkinPackread(String fallbackName, Map<String, byte[]> files, BedrockClassicModel.ModelSource source) static BedrockClassicSkinPackstatic BedrockClassicSkinPackread(Path path, BedrockClassicModel.ModelSource source) skins()Returns the value of theskinsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BedrockClassicSkinPack
public BedrockClassicSkinPack(String name, List<BedrockClassicSkinPack.Skin> skins, Map<String, byte[]> files) Creates an instance of aBedrockClassicSkinPackrecord class.- Parameters:
name- the value for thenamerecord componentskins- the value for theskinsrecord componentfiles- the value for thefilesrecord component
-
-
Method Details
-
read
- Throws:
IOException
-
read
public static BedrockClassicSkinPack read(Path path, BedrockClassicModel.ModelSource source) throws IOException - Throws:
IOException
-
read
public static BedrockClassicSkinPack read(String fallbackName, Map<String, byte[]> files, BedrockClassicModel.ModelSource source) throws IOException- Throws:
IOException
-
image
- Throws:
IOException
-
cape
- Throws:
IOException
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
skins
Returns the value of theskinsrecord component.- Returns:
- the value of the
skinsrecord component
-
files
-