Package net.minecraft.core
Record Class ClientAsset.DownloadedTexture
java.lang.Object
java.lang.Record
net.minecraft.core.ClientAsset.DownloadedTexture
- All Implemented Interfaces:
ClientAsset,ClientAsset.Texture
- Enclosing interface:
ClientAsset
public static record ClientAsset.DownloadedTexture(Identifier texturePath, String url)
extends Record
implements ClientAsset.Texture
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.ClientAsset
ClientAsset.DownloadedTexture, ClientAsset.ResourceTexture, ClientAsset.Texture -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thetexturePathrecord component.private final StringThe field for theurlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDownloadedTexture(Identifier texturePath, String url) Creates an instance of aDownloadedTexturerecord 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.id()Returns the value of thetexturePathrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
texturePath
The field for thetexturePathrecord component. -
url
The field for theurlrecord component.
-
-
Constructor Details
-
DownloadedTexture
Creates an instance of aDownloadedTexturerecord class.- Parameters:
texturePath- the value for thetexturePathrecord componenturl- the value for theurlrecord component
-
-
Method Details
-
id
- Specified by:
idin interfaceClientAsset
-
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). -
texturePath
Returns the value of thetexturePathrecord component.- Specified by:
texturePathin interfaceClientAsset.Texture- Returns:
- the value of the
texturePathrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-