Class Equipment

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

public class Equipment extends Object implements Asset
Represents a resource pack equipment JSON: assets/<namespace>/equipment/<id>.json.
  • Constructor Details

    • Equipment

      public Equipment(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String namespace, @NotNull @NotNull String id)
      Autoload existing equipment JSON from plugin JAR resourcepack/<namespace>/equipment/<id>.json.
    • Equipment

      public Equipment(@NotNull @NotNull String namespace, @NotNull @NotNull String id)
      Create empty equipment JSON programmatically.
    • Equipment

      public Equipment(@NotNull @NotNull String namespace, @NotNull @NotNull String id, byte[] data)
  • Method Details

    • addLayer

      public Equipment addLayer(@NotNull @NotNull String layerType, @NotNull @NotNull Equipment.LayerEntry entry)
      Adds a layer entry under the specified entity layer (e.g. "humanoid", "wings").
    • emit

      public void emit(@NotNull @NotNull 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