YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.renderer.RenderEngine Class Reference

Public Member Functions

 RenderEngine (TexturePackList par1TexturePackList, GameSettings par2GameSettings)
 
int[] getTextureContents (String par1Str)
 
void bindTexture (String par1Str)
 
void resetBoundTexture ()
 
int getTexture (String par1Str)
 
int allocateAndSetupTexture (BufferedImage par1BufferedImage)
 
void setupTexture (BufferedImage par1BufferedImage, int par2)
 
void setupTextureExt (BufferedImage par1BufferedImage, int par2, boolean par3, boolean par4)
 
void createTextureFromBytes (int[] par1ArrayOfInteger, int par2, int par3, int par4)
 
void deleteTexture (int par1)
 
int getTextureForDownloadableImage (String par1Str, String par2Str)
 
boolean hasImageData (String par1Str)
 
ThreadDownloadImageData obtainImageData (String par1Str, IImageBuffer par2IImageBuffer)
 
void releaseImageData (String par1Str)
 
void updateDynamicTextures ()
 
void refreshTextures ()
 
void refreshTextureMaps ()
 
Icon getMissingIcon (int par1)
 

Public Attributes

TexturePackList texturePack
 
final TextureMap textureMapBlocks
 
final TextureMap textureMapItems
 

Static Public Attributes

static Logger log = FMLLog.getLogger()
 

Constructor & Destructor Documentation

net.minecraft.client.renderer.RenderEngine.RenderEngine ( TexturePackList  par1TexturePackList,
GameSettings  par2GameSettings 
)

Member Function Documentation

int net.minecraft.client.renderer.RenderEngine.allocateAndSetupTexture ( BufferedImage  par1BufferedImage)

Copy the supplied image onto a newly-allocated OpenGL texture, returning the allocated texture name

void net.minecraft.client.renderer.RenderEngine.bindTexture ( String  par1Str)
void net.minecraft.client.renderer.RenderEngine.createTextureFromBytes ( int[]  par1ArrayOfInteger,
int  par2,
int  par3,
int  par4 
)
void net.minecraft.client.renderer.RenderEngine.deleteTexture ( int  par1)

Deletes a single GL texture

Icon net.minecraft.client.renderer.RenderEngine.getMissingIcon ( int  par1)
int net.minecraft.client.renderer.RenderEngine.getTexture ( String  par1Str)
int [] net.minecraft.client.renderer.RenderEngine.getTextureContents ( String  par1Str)
int net.minecraft.client.renderer.RenderEngine.getTextureForDownloadableImage ( String  par1Str,
String  par2Str 
)

Takes a URL of a downloadable image and the name of the local image to be used as a fallback. If the image has been downloaded, returns the GL texture of the downloaded image, otherwise returns the GL texture of the fallback image.

boolean net.minecraft.client.renderer.RenderEngine.hasImageData ( String  par1Str)

Checks if urlToImageDataMap has image data for the given key

ThreadDownloadImageData net.minecraft.client.renderer.RenderEngine.obtainImageData ( String  par1Str,
IImageBuffer  par2IImageBuffer 
)

Return a ThreadDownloadImageData instance for the given URL. If it does not already exist, it is created and uses the passed ImageBuffer. If it does, its reference count is incremented.

void net.minecraft.client.renderer.RenderEngine.refreshTextureMaps ( )
void net.minecraft.client.renderer.RenderEngine.refreshTextures ( )

Call setupTexture on all currently-loaded textures again to account for changes in rendering options

void net.minecraft.client.renderer.RenderEngine.releaseImageData ( String  par1Str)

Decrements the reference count for a given URL, deleting the image data if the reference count hits 0

void net.minecraft.client.renderer.RenderEngine.resetBoundTexture ( )
void net.minecraft.client.renderer.RenderEngine.setupTexture ( BufferedImage  par1BufferedImage,
int  par2 
)

Copy the supplied image onto the specified OpenGL texture

void net.minecraft.client.renderer.RenderEngine.setupTextureExt ( BufferedImage  par1BufferedImage,
int  par2,
boolean  par3,
boolean  par4 
)
void net.minecraft.client.renderer.RenderEngine.updateDynamicTextures ( )

Member Data Documentation

Logger net.minecraft.client.renderer.RenderEngine.log = FMLLog.getLogger()
static
final TextureMap net.minecraft.client.renderer.RenderEngine.textureMapBlocks
final TextureMap net.minecraft.client.renderer.RenderEngine.textureMapItems
TexturePackList net.minecraft.client.renderer.RenderEngine.texturePack

Texture pack


The documentation for this class was generated from the following file: