public class WorldRenderer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
chunkIndex
Chunk index
|
static int |
chunksUpdated |
int |
glOcclusionQuery
OpenGL occlusion query
|
boolean |
isChunkLit
Is the chunk lit
|
boolean |
isInFrustum |
boolean |
isVisible
Is this renderer visible according to the occlusion query
|
boolean |
isWaitingOnOcclusionQuery
Is this renderer waiting on the result of the occlusion query
|
boolean |
needsUpdate
Boolean for whether this renderer needs to be updated or not
|
int |
posX |
int |
posXClip
Pos X clipped
|
int |
posXMinus
Pos X minus
|
int |
posXPlus
Pos X plus
|
int |
posY |
int |
posYClip
Pos Y clipped
|
int |
posYMinus
Pos Y minus
|
int |
posYPlus
Pos Y plus
|
int |
posZ |
int |
posZClip
Pos Z clipped
|
int |
posZMinus
Pos Z minus
|
int |
posZPlus
Pos Z plus
|
AxisAlignedBB |
rendererBoundingBox
Axis aligned bounding box
|
boolean[] |
skipRenderPass
Should this renderer skip this render pass
|
java.util.List |
tileEntityRenderers
All the tile entities that have special rendering code for this chunk
|
World |
worldObj
Reference to the World object.
|
| Constructor and Description |
|---|
WorldRenderer(World p_i1240_1_,
java.util.List p_i1240_2_,
int p_i1240_3_,
int p_i1240_4_,
int p_i1240_5_,
int p_i1240_6_) |
| Modifier and Type | Method and Description |
|---|---|
void |
callOcclusionQueryList()
Renders the occlusion query GL List
|
float |
distanceToEntitySquared(Entity p_78912_1_)
Returns the distance of this chunk renderer to the entity without performing the final normalizing square root,
for performance reasons.
|
int |
getGLCallListForPass(int p_78909_1_)
Takes in the pass the call list is being requested for.
|
void |
markDirty()
Marks the current renderer data as dirty and needing to be updated.
|
void |
setDontDraw()
When called this renderer won't draw anymore until its gets initialized again
|
void |
setPosition(int p_78913_1_,
int p_78913_2_,
int p_78913_3_)
Sets a new position for the renderer and setting it up so it can be reloaded with the new data for that position
|
boolean |
skipAllRenderPasses()
Checks if all render passes are to be skipped.
|
void |
stopRendering() |
void |
updateInFrustum(ICamera p_78908_1_) |
void |
updateRenderer(EntityLivingBase p_147892_1_)
Will update this chunk renderer
|
void |
updateRendererSort(EntityLivingBase p_147889_1_) |
public World worldObj
public static int chunksUpdated
public int posX
public int posY
public int posZ
public int posXMinus
public int posYMinus
public int posZMinus
public int posXClip
public int posYClip
public int posZClip
public boolean isInFrustum
public boolean[] skipRenderPass
public int posXPlus
public int posYPlus
public int posZPlus
public boolean needsUpdate
public AxisAlignedBB rendererBoundingBox
public int chunkIndex
public boolean isVisible
public boolean isWaitingOnOcclusionQuery
public int glOcclusionQuery
public boolean isChunkLit
public java.util.List tileEntityRenderers
public WorldRenderer(World p_i1240_1_, java.util.List p_i1240_2_, int p_i1240_3_, int p_i1240_4_, int p_i1240_5_, int p_i1240_6_)
public void setPosition(int p_78913_1_,
int p_78913_2_,
int p_78913_3_)
public void updateRenderer(EntityLivingBase p_147892_1_)
public void updateRendererSort(EntityLivingBase p_147889_1_)
public float distanceToEntitySquared(Entity p_78912_1_)
public void setDontDraw()
public void stopRendering()
public int getGLCallListForPass(int p_78909_1_)
public void updateInFrustum(ICamera p_78908_1_)
public void callOcclusionQueryList()
public boolean skipAllRenderPasses()
public void markDirty()