Record Class ArmatureData.TextureData
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.client.armature.ArmatureData.TextureData
- Record Components:
width- ,height the size its faces' coordinates count in (Blockbench's UV size)
- Enclosing class:
ArmatureData
-
Constructor Summary
ConstructorsConstructorDescriptionTextureData(String name, byte @Nullable [] png, @Nullable net.minecraft.resources.Identifier location, int width, int height) Creates an instance of aTextureDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.@Nullable net.minecraft.resources.Identifierlocation()Returns the value of thelocationrecord component.name()Returns the value of thenamerecord component.byte @Nullable []png()Returns the value of thepngrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
TextureData
public TextureData(String name, byte @Nullable [] png, @Nullable @Nullable net.minecraft.resources.Identifier location, int width, int height) Creates an instance of aTextureDatarecord class.- Parameters:
name- the value for thenamerecord componentpng- the value for thepngrecord componentlocation- the value for thelocationrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
png
public byte @Nullable [] png()Returns the value of thepngrecord component.- Returns:
- the value of the
pngrecord component
-
location
@Nullable public @Nullable net.minecraft.resources.Identifier location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
width
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-