Record Class ModelWeaponPartBuilder
java.lang.Object
java.lang.Record
generation.builders.ModelWeaponPartBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionModelWeaponPartBuilder(ItemKey item, ModelKey model, String attachSelf, String attachParent) Creates an instance of aModelWeaponPartBuilderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachParentrecord component.Returns the value of theattachSelfrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.model()Returns the value of themodelrecord component.static ModelWeaponPartBuilderstatic ModelWeaponPartBuildertoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelWeaponPartBuilder
Creates an instance of aModelWeaponPartBuilderrecord class.- Parameters:
item- the value for theitemrecord componentmodel- the value for themodelrecord componentattachSelf- the value for theattachSelfrecord componentattachParent- the value for theattachParentrecord component
-
-
Method Details
-
of
-
of
public static ModelWeaponPartBuilder of(ItemKey itemKey, ModelKey modelKey, String string0, String string1) -
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). -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
attachSelf
Returns the value of theattachSelfrecord component.- Returns:
- the value of the
attachSelfrecord component
-
attachParent
Returns the value of theattachParentrecord component.- Returns:
- the value of the
attachParentrecord component
-