net.acomputerdog.BlazeLoader.util.java
Class ClassPath

java.lang.Object
  extended by net.acomputerdog.BlazeLoader.util.java.ClassPath

public class ClassPath
extends java.lang.Object

Tools for working with the java Class Path


Constructor Summary
ClassPath()
           
 
Method Summary
static java.io.File getClassPath()
          Gets a file representing the current .jar
static java.lang.String getPath()
          Gets the .jar location
static java.io.File getResource(java.lang.String pack, java.lang.String name)
          Gets a file from the internal assets folder .jar/assets/{pack}/{name}
static java.net.URI getResourceURI(java.lang.String pack, java.lang.String name)
          Gets a URI path to a file in the internal assets folder .jar/assets/{pack}/{name}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPath

public ClassPath()
Method Detail

getPath

public static java.lang.String getPath()
Gets the .jar location


getClassPath

public static java.io.File getClassPath()
Gets a file representing the current .jar


getResource

public static java.io.File getResource(java.lang.String pack,
                                       java.lang.String name)
Gets a file from the internal assets folder .jar/assets/{pack}/{name}

Parameters:
pack - Name of resource pack
name - Name/Path to file
Returns:
File object representing the file found in the .jar or null if not found

getResourceURI

public static java.net.URI getResourceURI(java.lang.String pack,
                                          java.lang.String name)
Gets a URI path to a file in the internal assets folder .jar/assets/{pack}/{name}

Parameters:
pack - Name of resource pack
name - Name/Path to file
Returns:
URI object pointing to the file found in the .jar or null if not found