类 PathPackResources

java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraftforge.resource.PathPackResources
所有已实现的接口:
AutoCloseable, PackResources, IForgePackResources

public class PathPackResources extends AbstractPackResources
Defines a resource pack from an arbitrary Path.

This is primarily intended to support including optional resource packs inside a mod, such as to have alternative textures to use along with Programmer Art, or optional alternative recipes for compatibility ot to replace vanilla recipes.

  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • source

      private final Path source
  • 构造器详细资料

    • PathPackResources

      public PathPackResources(String packId, boolean isBuiltin, Path source)
      Constructs a java.nio.Path-based resource pack.
      参数:
      packId - the identifier of the pack. This identifier should be unique within the pack finder, preferably the name of the file or folder containing the resources.
      isBuiltin - whether this pack resources should be considered builtin
      source - the root path of the pack. This needs to point to the folder that contains "assets" and/or "data", not the asset folder itself!
  • 方法详细资料