Record Class GuiFontSource.Resource
java.lang.Object
java.lang.Record
com.render.api.gui.GuiFontSource.Resource
- Record Components:
asset- asset path relative to the namespace font directory
- All Implemented Interfaces:
GuiFontSource
- Enclosing interface:
GuiFontSource
public static record GuiFontSource.Resource(net.minecraft.resources.Identifier asset)
extends Record
implements GuiFontSource
Packaged client-resource font source.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiFontSource
GuiFontSource.Remote, GuiFontSource.Resource, GuiFontSource.System -
Constructor Summary
ConstructorsConstructorDescriptionResource(net.minecraft.resources.Identifier asset) Creates an instance of aResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.Identifierasset()Returns the value of theassetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resource
public Resource(net.minecraft.resources.Identifier asset) Creates an instance of aResourcerecord class.- Parameters:
asset- the value for theassetrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
asset
-