Record Class FabricDatagenProvider.ItemModelContext
java.lang.Object
java.lang.Record
net.rebel459.unified.fabric.datagen.FabricDatagenProvider.ItemModelContext
- Enclosing class:
FabricDatagenProvider
public static record FabricDatagenProvider.ItemModelContext(net.minecraft.resources.Identifier id, net.minecraft.world.item.Item item, net.minecraft.client.data.models.ItemModelGenerators generator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionItemModelContext(net.minecraft.resources.Identifier id, net.minecraft.world.item.Item item, net.minecraft.client.data.models.ItemModelGenerators generator) Creates an instance of aItemModelContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.data.models.ItemModelGeneratorsReturns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.net.minecraft.world.item.Itemitem()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemModelContext
public ItemModelContext(net.minecraft.resources.Identifier id, net.minecraft.world.item.Item item, net.minecraft.client.data.models.ItemModelGenerators generator) Creates an instance of aItemModelContextrecord class.- Parameters:
id- the value for theidrecord componentitem- the value for theitemrecord componentgenerator- the value for thegeneratorrecord 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.- Returns:
- the value of the
idrecord component
-
item
public net.minecraft.world.item.Item item()Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
generator
public net.minecraft.client.data.models.ItemModelGenerators generator()Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-