Class SettingsPresetItem

java.lang.Object
ua.mcchickenstudio.opencreative.settings.items.SettingsPresetItem
All Implemented Interfaces:
SettingsItem

public class SettingsPresetItem extends Object implements SettingsItem

SettingsSimpleItem

This class represents system item, that will be not modified.
  • Constructor Details

    • SettingsPresetItem

      public SettingsPresetItem(@NotNull @NotNull Items type)
      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: SettingsItem
      Returns item, that will be given to player.
      Specified by:
      getItem in interface SettingsItem
      Parameters:
      player - player for parsing item translation, if required.
      Returns:
      item to give.