public class ResourceLocation extends Object
| Modifier and Type | Field and Description |
|---|---|
static ResourceLocation |
NULL |
| Constructor and Description |
|---|
ResourceLocation(@NotNull Class<?> resourceClass,
@NotNull String resourcePath,
@NotNull String fileUrl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
@NotNull String |
getFileDirectoryUrl() |
@NotNull String |
getFileUrl() |
@NotNull String |
getFileUrl(int lineNumber) |
@NotNull String |
getResolvedResourcePath() |
@NotNull Class<?> |
getResourceClass() |
@NotNull InputStream |
getResourceInputStream() |
static @NotNull InputStream |
getResourceInputStream(@NotNull ResourceLocation location) |
@NotNull String |
getResourcePath() |
@NotNull String |
getResourceText() |
static @NotNull String |
getResourceText(@NotNull ResourceLocation location) |
int |
hashCode() |
boolean |
isNull() |
static @NotNull ResourceLocation |
of(@NotNull Class<?> resourceClass,
@NotNull String resourcePath) |
static @NotNull ResourceLocation |
of(@NotNull Class<?> resourceClass,
@NotNull String resourcePath,
@NotNull String fileUrl) |
static @NotNull ResourceLocation |
of(@NotNull String resourcePath) |
String |
toString() |
@NotNull ResourceLocation |
withFileUrl(@NotNull String fileUrl) |
@NotNull ResourceLocation |
withResolvedResourcePath(@NotNull String resolvedResourcePath) |
@NotNull ResourceLocation |
withResourceClass(@NotNull Class<?> resourceClass) |
@NotNull ResourceLocation |
withResourcePath(@NotNull String resourcePath) |
public static final ResourceLocation NULL
@NotNull public @NotNull Class<?> getResourceClass()
@NotNull public @NotNull String getResourcePath()
@NotNull public @NotNull String getFileUrl()
@NotNull public @NotNull String getFileDirectoryUrl()
@NotNull public @NotNull String getFileUrl(int lineNumber)
@NotNull public @NotNull String getResolvedResourcePath()
public boolean isNull()
@NotNull public @NotNull InputStream getResourceInputStream()
@NotNull public @NotNull String getResourceText()
@NotNull public @NotNull ResourceLocation withResourceClass(@NotNull @NotNull Class<?> resourceClass)
@NotNull public @NotNull ResourceLocation withResourcePath(@NotNull @NotNull String resourcePath)
@NotNull public @NotNull ResourceLocation withFileUrl(@NotNull @NotNull String fileUrl)
@NotNull public @NotNull ResourceLocation withResolvedResourcePath(@NotNull @NotNull String resolvedResourcePath)
@NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull String resourcePath)
@NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull Class<?> resourceClass, @NotNull @NotNull String resourcePath)
@NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull Class<?> resourceClass, @NotNull @NotNull String resourcePath, @NotNull @NotNull String fileUrl)
@NotNull public static @NotNull String getResourceText(@NotNull @NotNull ResourceLocation location)
@NotNull public static @NotNull InputStream getResourceInputStream(@NotNull @NotNull ResourceLocation location)
Copyright © 2020. All rights reserved.