Record Class AnimatedGIFTextureResolver.MetadataInfo
java.lang.Object
java.lang.Record
net.litetex.capes.handler.textures.AnimatedGIFTextureResolver.MetadataInfo
- Enclosing class:
AnimatedGIFTextureResolver
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetadataInfo(int logicalScreenWidth, int logicalScreenHeight, Color backgroundColor) Creates an instance of aMetadataInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelogicalScreenHeightrecord component.intReturns the value of thelogicalScreenWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetadataInfo
Creates an instance of aMetadataInforecord class.- Parameters:
logicalScreenWidth- the value for thelogicalScreenWidthrecord componentlogicalScreenHeight- the value for thelogicalScreenHeightrecord componentbackgroundColor- the value for thebackgroundColorrecord component
-
-
Method Details
-
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 '=='. -
logicalScreenWidth
public int logicalScreenWidth()Returns the value of thelogicalScreenWidthrecord component.- Returns:
- the value of the
logicalScreenWidthrecord component
-
logicalScreenHeight
public int logicalScreenHeight()Returns the value of thelogicalScreenHeightrecord component.- Returns:
- the value of the
logicalScreenHeightrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-