@Environment(value=CLIENT) public class ResourceTexture extends AbstractTexture
Modifier and Type | Class and Description |
---|---|
static class |
ResourceTexture.TextureData |
Modifier and Type | Field and Description |
---|---|
protected Identifier |
location |
private static Logger |
LOGGER |
bilinear, glId, mipmap
Constructor and Description |
---|
ResourceTexture(Identifier location) |
Modifier and Type | Method and Description |
---|---|
void |
load(ResourceManager manager) |
protected ResourceTexture.TextureData |
loadTextureData(ResourceManager resourceManager) |
private void |
upload(NativeImage nativeImage,
boolean blur,
boolean clamp) |
bindTexture, clearGlId, close, getGlId, registerTexture, setFilter
private static final Logger LOGGER
protected final Identifier location
public ResourceTexture(Identifier location)
public void load(ResourceManager manager) throws IOException
load
in class AbstractTexture
IOException
private void upload(NativeImage nativeImage, boolean blur, boolean clamp)
protected ResourceTexture.TextureData loadTextureData(ResourceManager resourceManager)