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

Public Member Functions

 WorldRenderer (World par1World, List par2List, int par3, int par4, int par5, int par6)
 
void setPosition (int par1, int par2, int par3)
 
void updateRenderer ()
 
float distanceToEntitySquared (Entity par1Entity)
 
void setDontDraw ()
 
void stopRendering ()
 
int getGLCallListForPass (int par1)
 
void updateInFrustum (ICamera par1ICamera)
 
void callOcclusionQueryList ()
 
boolean skipAllRenderPasses ()
 
void markDirty ()
 

Public Attributes

World worldObj
 
int posX
 
int posY
 
int posZ
 
int posXMinus
 
int posYMinus
 
int posZMinus
 
int posXClip
 
int posYClip
 
int posZClip
 
boolean isInFrustum = false
 
boolean[] skipRenderPass = new boolean[2]
 
int posXPlus
 
int posYPlus
 
int posZPlus
 
boolean needsUpdate
 
AxisAlignedBB rendererBoundingBox
 
int chunkIndex
 
boolean isVisible = true
 
boolean isWaitingOnOcclusionQuery
 
int glOcclusionQuery
 
boolean isChunkLit
 
List tileEntityRenderers = new ArrayList()
 

Static Public Attributes

static int chunksUpdated = 0
 

Constructor & Destructor Documentation

net.minecraft.client.renderer.WorldRenderer.WorldRenderer ( World  par1World,
List  par2List,
int  par3,
int  par4,
int  par5,
int  par6 
)

Member Function Documentation

void net.minecraft.client.renderer.WorldRenderer.callOcclusionQueryList ( )

Renders the occlusion query GL List

float net.minecraft.client.renderer.WorldRenderer.distanceToEntitySquared ( Entity  par1Entity)

Returns the distance of this chunk renderer to the entity without performing the final normalizing square root, for performance reasons.

int net.minecraft.client.renderer.WorldRenderer.getGLCallListForPass ( int  par1)

Takes in the pass the call list is being requested for. Args: renderPass

void net.minecraft.client.renderer.WorldRenderer.markDirty ( )

Marks the current renderer data as dirty and needing to be updated.

void net.minecraft.client.renderer.WorldRenderer.setDontDraw ( )

When called this renderer won't draw anymore until its gets initialized again

void net.minecraft.client.renderer.WorldRenderer.setPosition ( int  par1,
int  par2,
int  par3 
)

Sets a new position for the renderer and setting it up so it can be reloaded with the new data for that position

boolean net.minecraft.client.renderer.WorldRenderer.skipAllRenderPasses ( )

Checks if all render passes are to be skipped. Returns false if the renderer is not initialized

void net.minecraft.client.renderer.WorldRenderer.stopRendering ( )
void net.minecraft.client.renderer.WorldRenderer.updateInFrustum ( ICamera  par1ICamera)
void net.minecraft.client.renderer.WorldRenderer.updateRenderer ( )

Will update this chunk renderer

Member Data Documentation

int net.minecraft.client.renderer.WorldRenderer.chunkIndex

Chunk index

int net.minecraft.client.renderer.WorldRenderer.chunksUpdated = 0
static
int net.minecraft.client.renderer.WorldRenderer.glOcclusionQuery

OpenGL occlusion query

boolean net.minecraft.client.renderer.WorldRenderer.isChunkLit

Is the chunk lit

boolean net.minecraft.client.renderer.WorldRenderer.isInFrustum = false
boolean net.minecraft.client.renderer.WorldRenderer.isVisible = true

Is this renderer visible according to the occlusion query

boolean net.minecraft.client.renderer.WorldRenderer.isWaitingOnOcclusionQuery

Is this renderer waiting on the result of the occlusion query

boolean net.minecraft.client.renderer.WorldRenderer.needsUpdate

Boolean for whether this renderer needs to be updated or not

int net.minecraft.client.renderer.WorldRenderer.posX
int net.minecraft.client.renderer.WorldRenderer.posXClip

Pos X clipped

int net.minecraft.client.renderer.WorldRenderer.posXMinus

Pos X minus

int net.minecraft.client.renderer.WorldRenderer.posXPlus

Pos X plus

int net.minecraft.client.renderer.WorldRenderer.posY
int net.minecraft.client.renderer.WorldRenderer.posYClip

Pos Y clipped

int net.minecraft.client.renderer.WorldRenderer.posYMinus

Pos Y minus

int net.minecraft.client.renderer.WorldRenderer.posYPlus

Pos Y plus

int net.minecraft.client.renderer.WorldRenderer.posZ
int net.minecraft.client.renderer.WorldRenderer.posZClip

Pos Z clipped

int net.minecraft.client.renderer.WorldRenderer.posZMinus

Pos Z minus

int net.minecraft.client.renderer.WorldRenderer.posZPlus

Pos Z plus

AxisAlignedBB net.minecraft.client.renderer.WorldRenderer.rendererBoundingBox

Axis aligned bounding box

boolean [] net.minecraft.client.renderer.WorldRenderer.skipRenderPass = new boolean[2]

Should this renderer skip this render pass

List net.minecraft.client.renderer.WorldRenderer.tileEntityRenderers = new ArrayList()

All the tile entities that have special rendering code for this chunk

World net.minecraft.client.renderer.WorldRenderer.worldObj

Reference to the World object.


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