Record Class InventoryConfiguration.ItemLayoutHolder
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.InventoryConfiguration.ItemLayoutHolder
- Enclosing class:
InventoryConfiguration
public static record InventoryConfiguration.ItemLayoutHolder(@NonNull ItemLayout emptyLayout, @NonNull ItemLayout onlineLayout, @NonNull ItemLayout fullLayout, @NonNull ItemLayout ingameLayout)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull ItemLayoutThe field for theemptyLayoutrecord component.private final @NonNull ItemLayoutThe field for thefullLayoutrecord component.private final @NonNull ItemLayoutThe field for theingameLayoutrecord component.private final @NonNull ItemLayoutThe field for theonlineLayoutrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionItemLayoutHolder(@NonNull ItemLayout emptyLayout, @NonNull ItemLayout onlineLayout, @NonNull ItemLayout fullLayout, @NonNull ItemLayout ingameLayout) Creates an instance of aItemLayoutHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemptyLayoutrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullLayoutrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theingameLayoutrecord component.Returns the value of theonlineLayoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
emptyLayout
The field for theemptyLayoutrecord component. -
onlineLayout
The field for theonlineLayoutrecord component. -
fullLayout
The field for thefullLayoutrecord component. -
ingameLayout
The field for theingameLayoutrecord component.
-
-
Constructor Details
-
ItemLayoutHolder
public ItemLayoutHolder(@NonNull @NonNull ItemLayout emptyLayout, @NonNull @NonNull ItemLayout onlineLayout, @NonNull @NonNull ItemLayout fullLayout, @NonNull @NonNull ItemLayout ingameLayout) Creates an instance of aItemLayoutHolderrecord class.- Parameters:
emptyLayout- the value for theemptyLayoutrecord componentonlineLayout- the value for theonlineLayoutrecord componentfullLayout- the value for thefullLayoutrecord componentingameLayout- the value for theingameLayoutrecord 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). -
emptyLayout
Returns the value of theemptyLayoutrecord component.- Returns:
- the value of the
emptyLayoutrecord component
-
onlineLayout
Returns the value of theonlineLayoutrecord component.- Returns:
- the value of the
onlineLayoutrecord component
-
fullLayout
Returns the value of thefullLayoutrecord component.- Returns:
- the value of the
fullLayoutrecord component
-
ingameLayout
Returns the value of theingameLayoutrecord component.- Returns:
- the value of the
ingameLayoutrecord component
-