Record Class DataProviders.ItemModels
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.core.DataProviders.ItemModels
- All Implemented Interfaces:
DataProviders.ModelRequest
- Enclosing class:
DataProviders
public static record DataProviders.ItemModels(net.minecraft.resources.Identifier id, Supplier<DataProviders.ItemAssets> assets)
extends Record
implements DataProviders.ModelRequest
-
Constructor Summary
ConstructorsConstructorDescriptionItemModels(net.minecraft.resources.Identifier id, Supplier<DataProviders.ItemAssets> assets) Creates an instance of aItemModelsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassets()Returns the value of theassetsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemModels
Creates an instance of aItemModelsrecord class.- Parameters:
id- the value for theidrecord componentassets- the value for theassetsrecord 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). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Specified by:
idin interfaceDataProviders.ModelRequest- Returns:
- the value of the
idrecord component
-
assets
Returns the value of theassetsrecord component.- Returns:
- the value of the
assetsrecord component
-