Class SettingsPresetItem
java.lang.Object
ua.mcchickenstudio.opencreative.settings.items.SettingsPresetItem
- All Implemented Interfaces:
SettingsItem
SettingsSimpleItem
This class represents system item, that will be not modified.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.ItemStackgetItem(@NotNull org.bukkit.entity.Player player) Returns item, that will be given to player.
-
Constructor Details
-
SettingsPresetItem
Creates instance of preset item.- Parameters:
type- type of system item.
-
-
Method Details
-
getItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItem(@NotNull @NotNull org.bukkit.entity.Player player) Description copied from interface:SettingsItemReturns item, that will be given to player.- Specified by:
getItemin interfaceSettingsItem- Parameters:
player- player for parsing item translation, if required.- Returns:
- item to give.
-