public class ImageCache
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ImageCache |
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cacheImage(net.minecraft.util.ResourceLocation location,
java.net.URL url)
Cache an image into game.
|
void |
clear()
Clear all loading cache.
|
void |
removeImage(net.minecraft.util.ResourceLocation location)
Remove the image from game.
|
public static final ImageCache INSTANCE
public void cacheImage(net.minecraft.util.ResourceLocation location,
java.net.URL url)
location - The resource location of this image will be identified in game.url - The image URL.public void removeImage(net.minecraft.util.ResourceLocation location)
location - public void clear()