Class InternalResourceLocation

java.lang.Object
net.luis.utils.resources.ResourceLocation
net.luis.utils.resources.InternalResourceLocation

final class InternalResourceLocation extends ResourceLocation
Internal implementation of ResourceLocation.
This class is used to load resources from the classpath.
  • Field Details

    • url

      private final URL url
      The url of the resource on the classpath or null if the resource does not exist.
  • Constructor Details

    • InternalResourceLocation

      InternalResourceLocation(@NotNull @NotNull Pair<String,String> pair)
      Constructs a new internal resource location from the given Pair.
      The first value of the pair is the path, and the second value is the name of the resource.
      Parameters:
      pair - The pair
      Throws:
      NullPointerException - If the pair is null
    • InternalResourceLocation

      InternalResourceLocation(@Nullable @Nullable String path, @NotNull @NotNull String name)
      Constructs a new internal resource location with the given path and name.
      Parameters:
      path - The path of the resource
      name - The name of the resource
      Throws:
      NullPointerException - If the name is null
  • Method Details