Record Class ItemLayout
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.ItemLayout
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thedisplayNamerecord component.The field for thelorerecord component.The field for thematerialrecord component.private final intThe field for thesubIdrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ItemLayout.Builderbuilder()static @NonNull ItemLayout.Builderbuilder(@NonNull ItemLayout layout) Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lore()Returns the value of thelorerecord component.material()Returns the value of thematerialrecord component.intsubId()Returns the value of thesubIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
material
-
subId
private final int subIdThe field for thesubIdrecord component. -
displayName
-
lore
-
-
Constructor Details
-
ItemLayout
public ItemLayout(@NonNull @NonNull String material, int subId, @NonNull @NonNull String displayName, @NonNull @NonNull List<String> lore) Creates an instance of aItemLayoutrecord class.- Parameters:
material- the value for thematerialrecord componentsubId- the value for thesubIdrecord componentdisplayName- the value for thedisplayNamerecord componentlore- the value for thelorerecord component
-
-
Method Details
-
builder
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
material
-
subId
public int subId()Returns the value of thesubIdrecord component.- Returns:
- the value of the
subIdrecord component
-
displayName
-
lore
-