Package net.litetex.capes.util
Record Class CapeProviderTextureAsset
java.lang.Object
java.lang.Record
net.litetex.capes.util.CapeProviderTextureAsset
- All Implemented Interfaces:
net.minecraft.util.AssetInfo,net.minecraft.util.AssetInfo.TextureAsset
public record CapeProviderTextureAsset(net.minecraft.util.Identifier id)
extends Record
implements net.minecraft.util.AssetInfo.TextureAsset
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.AssetInfo
net.minecraft.util.AssetInfo.SkinAssetInfo, net.minecraft.util.AssetInfo.TextureAsset, net.minecraft.util.AssetInfo.TextureAssetInfo -
Constructor Summary
ConstructorsConstructorDescriptionCapeProviderTextureAsset(net.minecraft.util.Identifier id) Creates an instance of aCapeProviderTextureAssetrecord 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.net.minecraft.util.Identifierid()Returns the value of theidrecord component.net.minecraft.util.Identifierfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CapeProviderTextureAsset
public CapeProviderTextureAsset(net.minecraft.util.Identifier id) Creates an instance of aCapeProviderTextureAssetrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
texturePath
public net.minecraft.util.Identifier texturePath()- Specified by:
texturePathin interfacenet.minecraft.util.AssetInfo.TextureAsset
-
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). -
id
public net.minecraft.util.Identifier id()Returns the value of theidrecord component.- Specified by:
idin interfacenet.minecraft.util.AssetInfo- Returns:
- the value of the
idrecord component
-