Package net.litetex.capes.provider
Record Class ResolvedTextureInfo.ByteArrayTextureInfo
java.lang.Object
java.lang.Record
net.litetex.capes.provider.ResolvedTextureInfo.ByteArrayTextureInfo
- All Implemented Interfaces:
ResolvedTextureInfo
- Enclosing interface:
ResolvedTextureInfo
public static record ResolvedTextureInfo.ByteArrayTextureInfo(byte[] imageBytes, String textureResolverId)
extends Record
implements ResolvedTextureInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.litetex.capes.provider.ResolvedTextureInfo
ResolvedTextureInfo.Base64TextureInfo, ResolvedTextureInfo.ByteArrayTextureInfo, ResolvedTextureInfo.UrlTextureInfo -
Constructor Summary
ConstructorsConstructorDescriptionByteArrayTextureInfo(byte[] imageBytes) ByteArrayTextureInfo(byte[] imageBytes, String textureResolverId) Creates an instance of aByteArrayTextureInforecord 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.byte[]Returns the value of theimageBytesrecord component.Returns the value of thetextureResolverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ByteArrayTextureInfo
public ByteArrayTextureInfo(byte[] imageBytes) -
ByteArrayTextureInfo
Creates an instance of aByteArrayTextureInforecord class.- Parameters:
imageBytes- the value for theimageBytesrecord componenttextureResolverId- the value for thetextureResolverIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
imageBytes
public byte[] imageBytes()Returns the value of theimageBytesrecord component.- Specified by:
imageBytesin interfaceResolvedTextureInfo- Returns:
- the value of the
imageBytesrecord component
-
textureResolverId
Returns the value of thetextureResolverIdrecord component.- Specified by:
textureResolverIdin interfaceResolvedTextureInfo- Returns:
- the value of the
textureResolverIdrecord component
-