Package net.litetex.capes.provider
Record Class ResolvedTextureInfo.UrlTextureInfo
java.lang.Object
java.lang.Record
net.litetex.capes.provider.ResolvedTextureInfo.UrlTextureInfo
- All Implemented Interfaces:
ResolvedTextureInfo
- Enclosing interface:
ResolvedTextureInfo
public static record ResolvedTextureInfo.UrlTextureInfo(String textureURL, 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
ConstructorsConstructorDescriptionUrlTextureInfo(String textureURL) UrlTextureInfo(String textureURL, String textureResolverId) Creates an instance of aUrlTextureInforecord 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 thetextureResolverIdrecord component.Returns the value of thetextureURLrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UrlTextureInfo
-
UrlTextureInfo
Creates an instance of aUrlTextureInforecord class.- Parameters:
textureURL- the value for thetextureURLrecord 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). -
textureURL
Returns the value of thetextureURLrecord component.- Returns:
- the value of the
textureURLrecord component
-
textureResolverId
Returns the value of thetextureResolverIdrecord component.- Specified by:
textureResolverIdin interfaceResolvedTextureInfo- Returns:
- the value of the
textureResolverIdrecord component
-