YATS/Forge Documentation
|
Public Member Functions | |
RenderGlobal (Minecraft par1Minecraft, RenderEngine par2RenderEngine) | |
void | setWorldAndLoadRenderers (WorldClient par1WorldClient) |
void | loadRenderers () |
void | renderEntities (Vec3 par1Vec3, ICamera par2ICamera, float par3) |
String | getDebugInfoRenders () |
String | getDebugInfoEntities () |
int | sortAndRender (EntityLiving par1EntityLiving, int par2, double par3) |
void | renderAllRenderLists (int par1, double par2) |
void | updateClouds () |
void | renderSky (float par1) |
void | renderClouds (float par1) |
boolean | hasCloudFog (double par1, double par3, double par5, float par7) |
void | renderCloudsFancy (float par1) |
boolean | updateRenderers (EntityLiving par1EntityLiving, boolean par2) |
void | drawBlockBreaking (EntityPlayer par1EntityPlayer, MovingObjectPosition par2MovingObjectPosition, int par3, ItemStack par4ItemStack, float par5) |
void | drawBlockDamageTexture (Tessellator par1Tessellator, EntityPlayer par2EntityPlayer, float par3) |
void | drawBlockDamageTexture (Tessellator par1Tessellator, EntityLiving par2EntityPlayer, float par3) |
void | drawSelectionBox (EntityPlayer par1EntityPlayer, MovingObjectPosition par2MovingObjectPosition, int par3, ItemStack par4ItemStack, float par5) |
void | markBlocksForUpdate (int par1, int par2, int par3, int par4, int par5, int par6) |
void | markBlockForUpdate (int par1, int par2, int par3) |
void | markBlockForRenderUpdate (int par1, int par2, int par3) |
void | markBlockRangeForRenderUpdate (int par1, int par2, int par3, int par4, int par5, int par6) |
void | clipRenderersByFrustum (ICamera par1ICamera, float par2) |
void | playRecord (String par1Str, int par2, int par3, int par4) |
void | playSound (String par1Str, double par2, double par4, double par6, float par8, float par9) |
void | playSoundToNearExcept (EntityPlayer par1EntityPlayer, String par2Str, double par3, double par5, double par7, float par9, float par10) |
void | spawnParticle (String par1Str, double par2, double par4, double par6, double par8, double par10, double par12) |
EntityFX | doSpawnParticle (String par1Str, double par2, double par4, double par6, double par8, double par10, double par12) |
void | onEntityCreate (Entity par1Entity) |
void | onEntityDestroy (Entity par1Entity) |
void | deleteAllDisplayLists () |
void | broadcastSound (int par1, int par2, int par3, int par4, int par5) |
void | playAuxSFX (EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5, int par6) |
void | destroyBlockPartially (int par1, int par2, int par3, int par4, int par5) |
void | registerDestroyBlockIcons (IconRegister par1IconRegister) |
Public Attributes | |
List | tileEntities = new ArrayList() |
WorldClient | theWorld |
final RenderEngine | renderEngine |
Minecraft | mc |
RenderBlocks | globalRenderBlocks |
Map | damagedBlocks = new HashMap() |
net.minecraft.client.renderer.RenderGlobal.RenderGlobal | ( | Minecraft | par1Minecraft, |
RenderEngine | par2RenderEngine | ||
) |
void net.minecraft.client.renderer.RenderGlobal.broadcastSound | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.clipRenderersByFrustum | ( | ICamera | par1ICamera, |
float | par2 | ||
) |
Checks all renderers that previously weren't in the frustum and 1/16th of those that previously were in the frustum for frustum clipping Args: frustum, partialTickTime
void net.minecraft.client.renderer.RenderGlobal.deleteAllDisplayLists | ( | ) |
Deletes all display lists
void net.minecraft.client.renderer.RenderGlobal.destroyBlockPartially | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed value
Implements net.minecraft.world.IWorldAccess.
EntityFX net.minecraft.client.renderer.RenderGlobal.doSpawnParticle | ( | String | par1Str, |
double | par2, | ||
double | par4, | ||
double | par6, | ||
double | par8, | ||
double | par10, | ||
double | par12 | ||
) |
Spawns a particle. Arg: particleType, x, y, z, velX, velY, velZ
void net.minecraft.client.renderer.RenderGlobal.drawBlockBreaking | ( | EntityPlayer | par1EntityPlayer, |
MovingObjectPosition | par2MovingObjectPosition, | ||
int | par3, | ||
ItemStack | par4ItemStack, | ||
float | par5 | ||
) |
void net.minecraft.client.renderer.RenderGlobal.drawBlockDamageTexture | ( | Tessellator | par1Tessellator, |
EntityPlayer | par2EntityPlayer, | ||
float | par3 | ||
) |
void net.minecraft.client.renderer.RenderGlobal.drawBlockDamageTexture | ( | Tessellator | par1Tessellator, |
EntityLiving | par2EntityPlayer, | ||
float | par3 | ||
) |
void net.minecraft.client.renderer.RenderGlobal.drawSelectionBox | ( | EntityPlayer | par1EntityPlayer, |
MovingObjectPosition | par2MovingObjectPosition, | ||
int | par3, | ||
ItemStack | par4ItemStack, | ||
float | par5 | ||
) |
Draws the selection box for the player. Args: entityPlayer, rayTraceHit, i, itemStack, partialTickTime
String net.minecraft.client.renderer.RenderGlobal.getDebugInfoEntities | ( | ) |
Gets the entities info for use on the Debug screen
String net.minecraft.client.renderer.RenderGlobal.getDebugInfoRenders | ( | ) |
Gets the render info for use on the Debug screen
boolean net.minecraft.client.renderer.RenderGlobal.hasCloudFog | ( | double | par1, |
double | par3, | ||
double | par5, | ||
float | par7 | ||
) |
Checks if the given position is to be rendered with cloud fog
void net.minecraft.client.renderer.RenderGlobal.loadRenderers | ( | ) |
Loads all the renderers and sets up the basic settings usage
void net.minecraft.client.renderer.RenderGlobal.markBlockForRenderUpdate | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
On the client, re-renders this block. On the server, does nothing. Used for lighting updates.
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.markBlockForUpdate | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
On the client, re-renders the block. On the server, sends the block to the client (which will re-render it), including the tile entity description packet if applicable. Args: x, y, z
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.markBlockRangeForRenderUpdate | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
On the client, re-renders all blocks in this range, inclusive. On the server, does nothing. Args: min x, min y, min z, max x, max y, max z
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.markBlocksForUpdate | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
Marks the blocks in the given range for update
void net.minecraft.client.renderer.RenderGlobal.onEntityCreate | ( | Entity | par1Entity) |
Called on all IWorldAccesses when an entity is created or loaded. On client worlds, starts downloading any necessary textures. On server worlds, adds the entity to the entity tracker.
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.onEntityDestroy | ( | Entity | par1Entity) |
Called on all IWorldAccesses when an entity is unloaded or destroyed. On client worlds, releases any downloaded textures. On server worlds, removes the entity from the entity tracker.
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.playAuxSFX | ( | EntityPlayer | par1EntityPlayer, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
Plays a pre-canned sound effect along with potentially auxiliary data-driven one-shot behaviour (particles, etc).
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.playRecord | ( | String | par1Str, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Plays the specified record. Arg: recordName, x, y, z
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.playSound | ( | String | par1Str, |
double | par2, | ||
double | par4, | ||
double | par6, | ||
float | par8, | ||
float | par9 | ||
) |
Plays the specified sound. Arg: soundName, x, y, z, volume, pitch
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.playSoundToNearExcept | ( | EntityPlayer | par1EntityPlayer, |
String | par2Str, | ||
double | par3, | ||
double | par5, | ||
double | par7, | ||
float | par9, | ||
float | par10 | ||
) |
Plays sound to all near players except the player reference given
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.registerDestroyBlockIcons | ( | IconRegister | par1IconRegister) |
void net.minecraft.client.renderer.RenderGlobal.renderAllRenderLists | ( | int | par1, |
double | par2 | ||
) |
Render all render lists
void net.minecraft.client.renderer.RenderGlobal.renderClouds | ( | float | par1) |
void net.minecraft.client.renderer.RenderGlobal.renderCloudsFancy | ( | float | par1) |
Renders the 3d fancy clouds
void net.minecraft.client.renderer.RenderGlobal.renderEntities | ( | Vec3 | par1Vec3, |
ICamera | par2ICamera, | ||
float | par3 | ||
) |
Renders all entities within range and within the frustrum. Args: pos, frustrum, partialTickTime
void net.minecraft.client.renderer.RenderGlobal.renderSky | ( | float | par1) |
Renders the sky with the partial tick time. Args: partialTickTime
void net.minecraft.client.renderer.RenderGlobal.setWorldAndLoadRenderers | ( | WorldClient | par1WorldClient) |
set null to clear
int net.minecraft.client.renderer.RenderGlobal.sortAndRender | ( | EntityLiving | par1EntityLiving, |
int | par2, | ||
double | par3 | ||
) |
Sorts all renderers based on the passed in entity. Args: entityLiving, renderPass, partialTickTime
void net.minecraft.client.renderer.RenderGlobal.spawnParticle | ( | String | par1Str, |
double | par2, | ||
double | par4, | ||
double | par6, | ||
double | par8, | ||
double | par10, | ||
double | par12 | ||
) |
Spawns a particle. Arg: particleType, x, y, z, velX, velY, velZ
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.client.renderer.RenderGlobal.updateClouds | ( | ) |
boolean net.minecraft.client.renderer.RenderGlobal.updateRenderers | ( | EntityLiving | par1EntityLiving, |
boolean | par2 | ||
) |
Updates some of the renderers sorted by distance from the player
Map net.minecraft.client.renderer.RenderGlobal.damagedBlocks = new HashMap() |
Stores blocks currently being broken. Key is entity ID of the thing doing the breaking. Value is a DestroyBlockProgress
RenderBlocks net.minecraft.client.renderer.RenderGlobal.globalRenderBlocks |
Global render blocks
final RenderEngine net.minecraft.client.renderer.RenderGlobal.renderEngine |
The RenderEngine instance used by RenderGlobal
WorldClient net.minecraft.client.renderer.RenderGlobal.theWorld |
List net.minecraft.client.renderer.RenderGlobal.tileEntities = new ArrayList() |