Interface IForgePackResources

All Known Subinterfaces:
PackResources
All Known Implementing Classes:
AbstractPackResources, DelegatingPackResources, FilePackResources, PathPackResources, PathPackResources, VanillaPackResources

public interface IForgePackResources
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable Collection<PackResources>
    Gets a collection of PackResource instances nested inside this pack.
    default boolean
    Returns true if the pack should be hidden from any user interfaces.
  • Method Details

    • isHidden

      default boolean isHidden()
      Returns true if the pack should be hidden from any user interfaces.
      Returns:
      true if the pack should be hidden from any user interfaces
    • getChildren

      @Nullable default @Nullable Collection<PackResources> getChildren()
      Gets a collection of PackResource instances nested inside this pack. Used to merge several packs into one entry in the resource pack selection UI without losing the ability for each pack to return a resource in ResourceManager.getResourceStack(ResourceLocation)
      Returns:
      Collection of nested PackResource, or null if this pack has no children
      See Also: