Package net.litetex.capes.provider
Record Class ResolvedTextureInfo.Base64TextureInfo
java.lang.Object
java.lang.Record
net.litetex.capes.provider.ResolvedTextureInfo.Base64TextureInfo
- All Implemented Interfaces:
ResolvedTextureInfo
- Enclosing interface:
ResolvedTextureInfo
public static record ResolvedTextureInfo.Base64TextureInfo(String base64Texture, 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
ConstructorsConstructorDescriptionBase64TextureInfo(String base64Texture) Base64TextureInfo(String base64Texture, String textureResolverId) Creates an instance of aBase64TextureInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebase64Texturerecord component.final 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 thetextureResolverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Base64TextureInfo
-
Base64TextureInfo
Creates an instance of aBase64TextureInforecord class.- Parameters:
base64Texture- the value for thebase64Texturerecord componenttextureResolverId- the value for thetextureResolverIdrecord component
-
-
Method Details
-
imageBytes
public byte[] imageBytes()- Specified by:
imageBytesin interfaceResolvedTextureInfo
-
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). -
base64Texture
Returns the value of thebase64Texturerecord component.- Returns:
- the value of the
base64Texturerecord component
-
textureResolverId
Returns the value of thetextureResolverIdrecord component.- Specified by:
textureResolverIdin interfaceResolvedTextureInfo- Returns:
- the value of the
textureResolverIdrecord component
-