Package net.minecraft.src
Class TileEntityRenderer
java.lang.Object
net.minecraft.src.TileEntityRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic TileEntityRendererThe static instance of TileEntityRendererfloatdoubleThe player's X position in this rendering contextdoubleThe player's Y position in this rendering contextfloatdoubleThe player's Z position in this rendering contextThe RenderEngine instance used by the TileEntityRendererA mapping of TileEntitySpecialRenderers used for each TileEntity that has onestatic doubleThe player's current X position (same as playerX)static doubleThe player's current Y position (same as playerY)static doubleThe player's current Z position (same as playerZ)Reference to the World object. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpecialRendererForClass(Class<? extends TileEntity> tileEntity, TileEntitySpecialRenderer renderer) voidcacheActiveRenderInfo(World par1World, TextureManager par2TextureManager, FontRenderer par3FontRenderer, EntityLivingBase par4EntityLivingBase, float par5) Caches several render-related references, including the active World, RenderEngine, FontRenderer, and the camera- bound EntityLiving's interpolated pitch, yaw and position.getSpecialRendererForClass(Class par1Class) Returns the TileEntitySpecialRenderer used to render this TileEntity class, or null if it has no special renderergetSpecialRendererForEntity(TileEntity par1TileEntity) Returns the TileEntitySpecialRenderer used to render this TileEntity instance, or null if it has no special rendererbooleanhasSpecialRenderer(TileEntity par1TileEntity) Returns true if this TileEntity instance has a TileEntitySpecialRenderer associated with it, false otherwise.voidrenderTileEntity(TileEntity par1TileEntity, float par2) Render this TileEntity at its current position from the playervoidrenderTileEntityAt(TileEntity par1TileEntity, double par2, double par4, double par6, float par8) Render this TileEntity at a given set of coordinatesvoidSets the world used by all TileEntitySpecialRender instances and notifies them of this change.
-
Field Details
-
specialRendererMap
A mapping of TileEntitySpecialRenderers used for each TileEntity that has one -
instance
The static instance of TileEntityRenderer -
staticPlayerX
public static double staticPlayerXThe player's current X position (same as playerX) -
staticPlayerY
public static double staticPlayerYThe player's current Y position (same as playerY) -
staticPlayerZ
public static double staticPlayerZThe player's current Z position (same as playerZ) -
renderEngine
The RenderEngine instance used by the TileEntityRenderer -
worldObj
Reference to the World object. -
entityLivingPlayer
-
playerYaw
public float playerYaw -
playerPitch
public float playerPitch -
playerX
public double playerXThe player's X position in this rendering context -
playerY
public double playerYThe player's Y position in this rendering context -
playerZ
public double playerZThe player's Z position in this rendering context
-
-
Method Details
-
addSpecialRendererForClass
public void addSpecialRendererForClass(Class<? extends TileEntity> tileEntity, TileEntitySpecialRenderer renderer) -
getSpecialRendererForClass
Returns the TileEntitySpecialRenderer used to render this TileEntity class, or null if it has no special renderer -
hasSpecialRenderer
Returns true if this TileEntity instance has a TileEntitySpecialRenderer associated with it, false otherwise. -
getSpecialRendererForEntity
Returns the TileEntitySpecialRenderer used to render this TileEntity instance, or null if it has no special renderer -
cacheActiveRenderInfo
public void cacheActiveRenderInfo(World par1World, TextureManager par2TextureManager, FontRenderer par3FontRenderer, EntityLivingBase par4EntityLivingBase, float par5) Caches several render-related references, including the active World, RenderEngine, FontRenderer, and the camera- bound EntityLiving's interpolated pitch, yaw and position. Args: world, renderengine, fontrenderer, entityliving, partialTickTime -
renderTileEntity
Render this TileEntity at its current position from the player -
renderTileEntityAt
public void renderTileEntityAt(TileEntity par1TileEntity, double par2, double par4, double par6, float par8) Render this TileEntity at a given set of coordinates -
setWorld
Sets the world used by all TileEntitySpecialRender instances and notifies them of this change. -
getFontRenderer
-
getSpecialRendererMap
-