Class ItemModsPack

    • Field Detail

      • NAME_PATTERN

        public static final java.util.regex.Pattern NAME_PATTERN
    • Constructor Detail

      • ItemModsPack

        public ItemModsPack​(@NotNull
                            @NotNull java.lang.String name,
                            boolean editable)
                     throws java.lang.UnsupportedOperationException,
                            java.io.IOException
        Throws:
        java.lang.UnsupportedOperationException
        java.io.IOException
      • ItemModsPack

        public ItemModsPack​(@NotNull
                            @NotNull java.lang.String name)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • ItemModsPack

        public ItemModsPack​(@NotNull
                            @NotNull java.nio.file.Path path)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • reload

        public void reload()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getCollection

        public <T extends PackAssetAssetCollection<T> getCollection​(@NotNull
                                                                      @NotNull java.lang.Class<T> type)
      • setName

        public void setName​(@NotNull
                            @NotNull java.lang.String name)
                     throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException
      • getDependencies

        @NotNull
        public @NotNull java.util.List<java.lang.String> getDependencies()
      • registerDependency

        public void registerDependency​(@NotNull
                                       @NotNull java.lang.String name)
      • unregisterDependency

        public void unregisterDependency​(java.lang.String name)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • isEditable

        public boolean isEditable()
      • getIcon

        @NotNull
        public @NotNull org.bukkit.inventory.ItemStack getIcon()
      • setIcon

        public void setIcon​(@NotNull
                            @NotNull org.bukkit.Material icon)
      • export

        public void export​(java.lang.String variation,
                           @NotNull
                           @NotNull java.nio.file.Path path)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getAsset

        public <T extends PackAsset> T getAsset​(java.lang.Class<T> type,
                                                java.lang.String name)
      • register

        public <T extends PackAsset> void register​(T asset)
      • unregister

        public <T extends PackAsset> void unregister​(T asset)
      • getBlocks

        public java.util.List<BlockAsset> getBlocks()
      • getItems

        public java.util.List<ItemAsset> getItems()
      • getModels

        public java.util.List<ModelAsset> getModels()
      • getTextures

        public java.util.List<TextureAsset> getTextures()
      • getSounds

        public java.util.List<SoundAsset> getSounds()
      • getBlock

        public BlockAsset getBlock​(java.lang.String name)
      • getItem

        public ItemAsset getItem​(java.lang.String name)
      • getModel

        public ModelAsset getModel​(java.lang.String name)
      • getTexture

        public TextureAsset getTexture​(java.lang.String name)
      • getSound

        public SoundAsset getSound​(java.lang.String name)
      • getTemplate

        public CustomTemplate getTemplate​(java.lang.String name)