Package com.hbm_m.datagen.assets
Record Class MissileItemModelDefinitions.Definition
java.lang.Object
java.lang.Record
com.hbm_m.datagen.assets.MissileItemModelDefinitions.Definition
- Enclosing class:
- MissileItemModelDefinitions
public static record MissileItemModelDefinitions.Definition(String itemPath, MissileFormFactorModels hull, net.minecraft.resources.ResourceLocation texture, MissileItem.MissileFormFactor formFactor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefinition(String itemPath, MissileFormFactorModels hull, net.minecraft.resources.ResourceLocation texture, MissileItem.MissileFormFactor formFactor) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theformFactorrecord component.final inthashCode()Returns a hash code value for this object.hull()Returns the value of thehullrecord component.itemPath()Returns the value of theitemPathrecord component.net.minecraft.resources.ResourceLocationtexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Definition
public Definition(String itemPath, MissileFormFactorModels hull, net.minecraft.resources.ResourceLocation texture, MissileItem.MissileFormFactor formFactor) Creates an instance of aDefinitionrecord class.- Parameters:
itemPath- the value for theitemPathrecord componenthull- the value for thehullrecord componenttexture- the value for thetexturerecord componentformFactor- the value for theformFactorrecord component
-
-
Method Details
-
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). -
itemPath
Returns the value of theitemPathrecord component.- Returns:
- the value of the
itemPathrecord component
-
hull
Returns the value of thehullrecord component.- Returns:
- the value of the
hullrecord component
-
texture
public net.minecraft.resources.ResourceLocation texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
formFactor
Returns the value of theformFactorrecord component.- Returns:
- the value of the
formFactorrecord component
-