类 Constants

java.lang.Object
net.minecraftforge.gradle.common.Constants

public class Constants extends Object
  • 字段详细资料

  • 构造器详细资料

    • Constants

      public Constants()
  • 方法详细资料

    • cacheFile

      public static File cacheFile(org.gradle.api.Project project, String... otherFiles)
    • file

      public static File file(File file, String... otherFiles)
    • file

      public static File file(String... otherFiles)
    • getClassPath

      public static List<String> getClassPath()
    • getMinecraftDirectory

      public static File getMinecraftDirectory()
    • hash

      public static String hash(File file)
    • hashAll

      public static List<String> hashAll(File file)
    • hash

      public static String hash(File file, String function)
    • hashZip

      public static String hashZip(File file, String function)
    • hash

      public static String hash(String str)
    • hash

      public static String hash(byte[] bytes)
    • hash

      public static String hash(byte[] bytes, String function)
    • getTaskLogStream

      public static PrintStream getTaskLogStream(org.gradle.api.Project project, String name)
    • getResource

      public static URL getResource(String resource)
      Throws a null runtime exception if the resource isnt found.
      参数:
      resource - String name of the resource your looking for
      返回:
      URL
    • resolveString

      public static String resolveString(Object obj)
      Resolves the supplied object to a string. If the input is null, this will return null. Closures and Callables are called with no arguments. Arrays use Arrays.toString(). File objects return their absolute paths. All other objects have their toString run.
      参数:
      obj - Object to resolve
      返回:
      resolved string