Package net.minecraft.client.texture
Class NativeImageBackedTexture
java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.NativeImageBackedTexture
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class NativeImageBackedTexture extends AbstractTexture
-
Field Summary
Fields Modifier and Type Field Description private static Logger
field_25794
private NativeImage
image
Fields inherited from class net.minecraft.client.texture.AbstractTexture
bilinear, glId, mipmap
-
Constructor Summary
Constructors Constructor Description NativeImageBackedTexture(int width, int height, boolean useStb)
NativeImageBackedTexture(NativeImage image)
-
Method Summary
Modifier and Type Method Description void
close()
NativeImage
getImage()
void
load(ResourceManager manager)
void
setImage(NativeImage image)
void
upload()
Methods inherited from class net.minecraft.client.texture.AbstractTexture
bindTexture, clearGlId, getGlId, registerTexture, setFilter
-
Field Details
-
field_25794
-
image
-
-
Constructor Details
-
NativeImageBackedTexture
-
NativeImageBackedTexture
public NativeImageBackedTexture(int width, int height, boolean useStb)
-
-
Method Details
-
load
- Specified by:
load
in classAbstractTexture
-
upload
public void upload() -
getImage
-
setImage
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classAbstractTexture
-