@Environment(value=CLIENT) public abstract class AbstractTexture extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bilinear |
protected int |
glId |
protected boolean |
mipmap |
| Constructor and Description |
|---|
AbstractTexture() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTexture() |
void |
clearGlId() |
void |
close() |
int |
getGlId() |
abstract void |
load(ResourceManager manager) |
void |
registerTexture(TextureManager textureManager,
ResourceManager resourceManager,
Identifier identifier,
Executor executor) |
void |
setFilter(boolean bilinear,
boolean mipmap) |
protected int glId
protected boolean bilinear
protected boolean mipmap
public void setFilter(boolean bilinear,
boolean mipmap)
public int getGlId()
public void clearGlId()
public abstract void load(ResourceManager manager) throws IOException
IOExceptionpublic void bindTexture()
public void registerTexture(TextureManager textureManager, ResourceManager resourceManager, Identifier identifier, Executor executor)
public void close()
close in interface AutoCloseable