Interface Asset

All Known Implementing Classes:
Atlas, BlockState, CoreShader, Equipment, Font, Icon, IncludeShader, ItemDefinition, JsonAsset, Lang, McMeta, Model, PackMcMeta, PostEffect, Sounds, Texture, WaypointStyle
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Asset
Represents a generic resource pack asset. Assets can emit their file data into a map for resource pack compilation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    emit(@NotNull Map<String,byte[]> files)
    Emits the asset's files into the provided output map.
  • Method Details

    • emit

      void emit(@NotNull @NotNull Map<String,byte[]> files)
      Emits the asset's files into the provided output map.
      Parameters:
      files - the output map where keys are file paths and values are file contents