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 aModelWeaponPartBuilder
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachParent
record component.Returns the value of theattachSelf
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.item()
Returns the value of theitem
record component.model()
Returns the value of themodel
record component.static ModelWeaponPartBuilder
static ModelWeaponPartBuilder
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ModelWeaponPartBuilder
Creates an instance of aModelWeaponPartBuilder
record class.- Parameters:
item
- the value for theitem
record componentmodel
- the value for themodel
record componentattachSelf
- the value for theattachSelf
record componentattachParent
- the value for theattachParent
record 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 theitem
record component.- Returns:
- the value of the
item
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
attachSelf
Returns the value of theattachSelf
record component.- Returns:
- the value of the
attachSelf
record component
-
attachParent
Returns the value of theattachParent
record component.- Returns:
- the value of the
attachParent
record component
-