Class SettingsItemsGroup
java.lang.Object
ua.mcchickenstudio.opencreative.settings.items.SettingsItemsGroup
SettingsItemsGroup
This class represents custom items group, that will be used for overriding pairs of items.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItems()Returns map of slots and settings items.voidremoveItem(int slot) Removes settings item by slot.voidsetItem(int slot, @NotNull SettingsItem item) Sets settings item in slot.
-
Constructor Details
-
SettingsItemsGroup
public SettingsItemsGroup()
-
-
Method Details
-
setItem
Sets settings item in slot.- Parameters:
slot- slot of settings item.item- settings item.
-
getItems
Returns map of slots and settings items.- Returns:
- map of slots and settings items.
-
removeItem
public void removeItem(int slot) Removes settings item by slot.- Parameters:
slot- slot to remove item.
-