Package net.minecraft.src
Class WorldRenderer
java.lang.Object
net.minecraft.src.WorldRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionintChunk indexstatic intintOpenGL occlusion querybooleanIs the chunk litbooleanbooleanIs this renderer visible according to the occlusion querybooleanIs this renderer waiting on the result of the occlusion querybooleanBoolean for whether this renderer needs to be updated or notintintPos X clippedintPos X minusintPos X plusintintPos Y clippedintPos Y minusintPos Y plusintintPos Z clippedintPos Z minusintPos Z plusAxis aligned bounding boxboolean[]Should this renderer skip this render passAll the tile entities that have special rendering code for this chunkReference to the World object. -
Constructor Summary
ConstructorsConstructorDescriptionWorldRenderer(World par1World, List par2List, int par3, int par4, int par5, int par6) -
Method Summary
Modifier and TypeMethodDescriptionvoidRenders the occlusion query GL ListfloatdistanceToEntitySquared(Entity par1Entity) Returns the distance of this chunk renderer to the entity without performing the final normalizing square root, for performance reasons.intgetGLCallListForPass(int par1) Takes in the pass the call list is being requested for.voidMarks the current renderer data as dirty and needing to be updated.voidWhen called this renderer won't draw anymore until its gets initialized againvoidsetPosition(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 positionbooleanChecks if all render passes are to be skipped.voidvoidupdateInFrustum(ICamera par1ICamera) voidWill update this chunk renderer
-
Field Details
-
worldObj
Reference to the World object. -
chunksUpdated
public static int chunksUpdated -
posX
public int posX -
posY
public int posY -
posZ
public int posZ -
posXMinus
public int posXMinusPos X minus -
posYMinus
public int posYMinusPos Y minus -
posZMinus
public int posZMinusPos Z minus -
posXClip
public int posXClipPos X clipped -
posYClip
public int posYClipPos Y clipped -
posZClip
public int posZClipPos Z clipped -
isInFrustum
public boolean isInFrustum -
skipRenderPass
public boolean[] skipRenderPassShould this renderer skip this render pass -
posXPlus
public int posXPlusPos X plus -
posYPlus
public int posYPlusPos Y plus -
posZPlus
public int posZPlusPos Z plus -
needsUpdate
public boolean needsUpdateBoolean for whether this renderer needs to be updated or not -
rendererBoundingBox
Axis aligned bounding box -
chunkIndex
public int chunkIndexChunk index -
isVisible
public boolean isVisibleIs this renderer visible according to the occlusion query -
isWaitingOnOcclusionQuery
public boolean isWaitingOnOcclusionQueryIs this renderer waiting on the result of the occlusion query -
glOcclusionQuery
public int glOcclusionQueryOpenGL occlusion query -
isChunkLit
public boolean isChunkLitIs the chunk lit -
tileEntityRenderers
All the tile entities that have special rendering code for this chunk
-
-
Constructor Details
-
WorldRenderer
-
-
Method Details
-
setPosition
public void 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 -
updateRenderer
public void updateRenderer()Will update this chunk renderer -
distanceToEntitySquared
Returns the distance of this chunk renderer to the entity without performing the final normalizing square root, for performance reasons. -
setDontDraw
public void setDontDraw()When called this renderer won't draw anymore until its gets initialized again -
stopRendering
public void stopRendering() -
getGLCallListForPass
public int getGLCallListForPass(int par1) Takes in the pass the call list is being requested for. Args: renderPass -
updateInFrustum
-
callOcclusionQueryList
public void callOcclusionQueryList()Renders the occlusion query GL List -
skipAllRenderPasses
public boolean skipAllRenderPasses()Checks if all render passes are to be skipped. Returns false if the renderer is not initialized -
markDirty
public void markDirty()Marks the current renderer data as dirty and needing to be updated.
-