Class ItemDefinition

java.lang.Object
com.github.darksoulq.abyssallib.server.resource.asset.ItemDefinition
All Implemented Interfaces:
Asset

public class ItemDefinition extends Object implements Asset
  • Constructor Details

    • ItemDefinition

      public ItemDefinition(org.bukkit.plugin.Plugin plugin, String namespace, String id)
    • ItemDefinition

      public ItemDefinition(String namespace, String id, byte[] data)
    • ItemDefinition

      public ItemDefinition(String namespace, String id, Selector selector, boolean handAnimationOnSwap, boolean oversizedInGui, double swapAnimationScale)
  • Method Details

    • file

      public String file()
    • emit

      public void emit(Map<String,byte[]> files)
      Description copied from interface: Asset
      Emits the asset's files into the provided output map.
      Specified by:
      emit in interface Asset
      Parameters:
      files - the output map where keys are file paths and values are file contents