Class ItemFixerSettings

java.lang.Object
ua.mcchickenstudio.opencreative.settings.items.ItemFixerSettings

public final class ItemFixerSettings extends Object

ItemFixerSettings

This class represents a settings of item fixer.
  • Constructor Details

    • ItemFixerSettings

      public ItemFixerSettings()
  • Method Details

    • load

      public void load()
      Loads settings of item fixer from configuration.
    • getContainerBigItemsLimit

      public int getContainerBigItemsLimit()
      Returns maximum amount of heavy items inside container (chest, shulker).
      Returns:
      limit of big in container.
    • getMaxBookPagesAmount

      public int getMaxBookPagesAmount()
      Returns maximum amount of pages in a book.
      Returns:
      limit of pages in book.
    • getMaxEnchantLevel

      public int getMaxEnchantLevel()
      Returns maximum level of enchantment in item.
      Returns:
      maximum level of enchantment.
    • isRemoveAttributes

      public boolean isRemoveAttributes()
      Checks whether attribute modifiers should be removed from item.
      Returns:
      true - will be removed, false - not.
    • isRemoveClickableBooks

      public boolean isRemoveClickableBooks()
      Checks whether clickable components should be removed from book's content.
      Returns:
      true - will be removed, false - not.
    • isRemoveCustomSpawnEggs

      public boolean isRemoveCustomSpawnEggs()
      Checks whether custom eggs should be destroyed, because they may contain malicious entity data.
      Returns:
      true - will be removed, false - not.
    • isRemoveBossSpawnEggs

      public boolean isRemoveBossSpawnEggs()
      Checks whether boss spawn eggs (for ender dragon and wither) should be destroyed, because they're often used to grief worlds.
      Returns:
      true - will be removed, false - not.
    • getMaxEntityNameLength

      public int getMaxEntityNameLength()
      Returns maximum length of entity's name.
      Returns:
      limit of entity's name length.
    • getMaxPersistentDataSize

      public int getMaxPersistentDataSize()
      Returns maximum size (symbols amount) of persistent data container.
      Returns:
      limit of persistent data container's size.
    • getEntitiesMaxAmount

      public int getEntitiesMaxAmount()
      Returns maximum amount of entities inside block, that can spawn a lot of entities.
      Returns:
      limit of entities inside block.
    • getDisplayNameMaxLength

      public int getDisplayNameMaxLength()
      Returns maximum length of item's display name.
      Returns:
      limit of display name's length.
    • getLoreLineMaxLength

      public int getLoreLineMaxLength()
      Returns maximum length of item's lore one line length.
      Returns:
      limit of item lore line's length
    • getLoreLinesMaxAmount

      public int getLoreLinesMaxAmount()
      Returns maximum amount of lines in item's lore.
      Returns:
      limit of item lore lines amount.
    • isClearCommandBlocksData

      public boolean isClearCommandBlocksData()
      Checks whether command blocks data should be cleared.
      Returns:
      true - will be removed, false - not.
    • isEnabled

      public boolean isEnabled()
      Checks whether item fixer is enabled.
      Returns:
      true - enabled, false - disabled.