Class ItemsAdder.Advanced

java.lang.Object
dev.lone.itemsadder.api.ItemsAdder.Advanced
Enclosing class:
ItemsAdder

public static class ItemsAdder.Advanced extends Object
Advanced static API utilities.
  • Constructor Details

    • Advanced

      public Advanced()
  • Method Details

    • getBlockDataByInternalId

      @Nullable public static @Nullable BlockData getBlockDataByInternalId(int id)
      Gets Bukkit block data from an ItemsAdder internal custom block id.
      Parameters:
      id - the internal block id.
      Returns:
      the block data, or null if the id is not a supported placed model type.
    • injectItemModifier

      public static void injectItemModifier(Plugin plugin, String namespacedId, ItemsAdder.Advanced.ModifierHandler modifier)
      Injects a modifier for a specific custom item.
      Parameters:
      plugin - the plugin registering the modifier.
      namespacedId - the custom item namespaced id.
      modifier - the modifier handler.
    • injectItemModifier

      public static void injectItemModifier(Plugin plugin, ItemsAdder.Advanced.ModifierHandler modifier)
      Injects a modifier for every custom item.
      Parameters:
      plugin - the plugin registering the modifier.
      modifier - the modifier handler.
    • getItemModelResourceLocation

      @Nullable public static @Nullable String getItemModelResourceLocation(String namespacedId)
      Gets the model resource location of a registered custom item.
      Parameters:
      namespacedId - the custom item namespaced id.
      Returns:
      the model resource location, or null if the item does not exist.