public class RenderGlobal extends java.lang.Object implements IWorldAccess
Modifier and Type | Field and Description |
---|---|
java.util.List |
tileEntities |
Constructor and Description |
---|
RenderGlobal(Minecraft par1Minecraft) |
Modifier and Type | Method and Description |
---|---|
void |
broadcastSound(int par1,
int par2,
int par3,
int par4,
int par5) |
void |
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 |
deleteAllDisplayLists()
Deletes all display lists
|
void |
destroyBlockPartially(int p_147587_1_,
int p_147587_2_,
int p_147587_3_,
int p_147587_4_,
int p_147587_5_)
Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed
value
|
EntityFX |
doSpawnParticle(java.lang.String par1Str,
double par2,
double par4,
double par6,
double par8,
double par10,
double par12)
Spawns a particle.
|
void |
drawBlockDamageTexture(Tessellator par1Tessellator,
EntityLivingBase par2EntityPlayer,
float par3) |
void |
drawBlockDamageTexture(Tessellator par1Tessellator,
EntityPlayer par2EntityPlayer,
float par3) |
static void |
drawOutlinedBoundingBox(AxisAlignedBB p_147590_0_,
int p_147590_1_)
Draws lines for the edges of the bounding box.
|
void |
drawSelectionBox(EntityPlayer par1EntityPlayer,
MovingObjectPosition par2MovingObjectPosition,
int par3,
float par4)
Draws the selection box for the player.
|
java.lang.String |
getDebugInfoEntities()
Gets the entities info for use on the Debug screen
|
java.lang.String |
getDebugInfoRenders()
Gets the render info for use on the Debug screen
|
boolean |
hasCloudFog(double par1,
double par3,
double par5,
float par7)
Checks if the given position is to be rendered with cloud fog
|
void |
loadRenderers()
Loads all the renderers and sets up the basic settings usage
|
void |
markBlockForRenderUpdate(int p_147588_1_,
int p_147588_2_,
int p_147588_3_)
On the client, re-renders this block.
|
void |
markBlockForUpdate(int p_147586_1_,
int p_147586_2_,
int p_147586_3_)
On the client, re-renders the block.
|
void |
markBlockRangeForRenderUpdate(int p_147585_1_,
int p_147585_2_,
int p_147585_3_,
int p_147585_4_,
int p_147585_5_,
int p_147585_6_)
On the client, re-renders all blocks in this range, inclusive.
|
void |
markBlocksForUpdate(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
Marks the blocks in the given range for update
|
void |
onEntityCreate(Entity par1Entity)
Called on all IWorldAccesses when an entity is created or loaded.
|
void |
onEntityDestroy(Entity par1Entity)
Called on all IWorldAccesses when an entity is unloaded or destroyed.
|
void |
onStaticEntitiesChanged() |
void |
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).
|
void |
playRecord(java.lang.String par1Str,
int par2,
int par3,
int par4)
Plays the specified record.
|
void |
playSound(java.lang.String par1Str,
double par2,
double par4,
double par6,
float par8,
float par9)
Plays the specified sound.
|
void |
playSoundToNearExcept(EntityPlayer par1EntityPlayer,
java.lang.String par2Str,
double par3,
double par5,
double par7,
float par9,
float par10)
Plays sound to all near players except the player reference given
|
void |
rebuildDisplayListEntities() |
void |
registerDestroyBlockIcons(IIconRegister par1IconRegister) |
void |
renderAllRenderLists(int par1,
double par2)
Render all render lists
|
void |
renderClouds(float par1) |
void |
renderCloudsFancy(float par1)
Renders the 3d fancy clouds
|
void |
renderEntities(EntityLivingBase p_147589_1_,
ICamera p_147589_2_,
float p_147589_3_)
Renders all entities within range and within the frustrum.
|
void |
renderSky(float par1)
Renders the sky with the partial tick time.
|
void |
setWorldAndLoadRenderers(WorldClient par1WorldClient)
set null to clear
|
int |
sortAndRender(EntityLivingBase par1EntityLivingBase,
int par2,
double par3)
Sorts all renderers based on the passed in entity.
|
void |
spawnParticle(java.lang.String par1Str,
double par2,
double par4,
double par6,
double par8,
double par10,
double par12)
Spawns a particle.
|
void |
updateClouds() |
boolean |
updateRenderers(EntityLivingBase par1EntityLivingBase,
boolean par2)
Updates some of the renderers sorted by distance from the player
|
public RenderGlobal(Minecraft par1Minecraft)
public void setWorldAndLoadRenderers(WorldClient par1WorldClient)
public void loadRenderers()
public void renderEntities(EntityLivingBase p_147589_1_, ICamera p_147589_2_, float p_147589_3_)
public java.lang.String getDebugInfoRenders()
public java.lang.String getDebugInfoEntities()
public void onStaticEntitiesChanged()
onStaticEntitiesChanged
in interface IWorldAccess
public void rebuildDisplayListEntities()
public int sortAndRender(EntityLivingBase par1EntityLivingBase, int par2, double par3)
public void renderAllRenderLists(int par1, double par2)
public void updateClouds()
public void renderSky(float par1)
public void renderClouds(float par1)
public boolean hasCloudFog(double par1, double par3, double par5, float par7)
public void renderCloudsFancy(float par1)
public boolean updateRenderers(EntityLivingBase par1EntityLivingBase, boolean par2)
public void drawBlockDamageTexture(Tessellator par1Tessellator, EntityPlayer par2EntityPlayer, float par3)
public void drawBlockDamageTexture(Tessellator par1Tessellator, EntityLivingBase par2EntityPlayer, float par3)
public void drawSelectionBox(EntityPlayer par1EntityPlayer, MovingObjectPosition par2MovingObjectPosition, int par3, float par4)
public static void drawOutlinedBoundingBox(AxisAlignedBB p_147590_0_, int p_147590_1_)
public void markBlocksForUpdate(int par1, int par2, int par3, int par4, int par5, int par6)
public void markBlockForUpdate(int p_147586_1_, int p_147586_2_, int p_147586_3_)
markBlockForUpdate
in interface IWorldAccess
public void markBlockForRenderUpdate(int p_147588_1_, int p_147588_2_, int p_147588_3_)
markBlockForRenderUpdate
in interface IWorldAccess
public void markBlockRangeForRenderUpdate(int p_147585_1_, int p_147585_2_, int p_147585_3_, int p_147585_4_, int p_147585_5_, int p_147585_6_)
markBlockRangeForRenderUpdate
in interface IWorldAccess
public void clipRenderersByFrustum(ICamera par1ICamera, float par2)
public void playRecord(java.lang.String par1Str, int par2, int par3, int par4)
playRecord
in interface IWorldAccess
public void playSound(java.lang.String par1Str, double par2, double par4, double par6, float par8, float par9)
playSound
in interface IWorldAccess
public void playSoundToNearExcept(EntityPlayer par1EntityPlayer, java.lang.String par2Str, double par3, double par5, double par7, float par9, float par10)
playSoundToNearExcept
in interface IWorldAccess
public void spawnParticle(java.lang.String par1Str, double par2, double par4, double par6, double par8, double par10, double par12)
spawnParticle
in interface IWorldAccess
public EntityFX doSpawnParticle(java.lang.String par1Str, double par2, double par4, double par6, double par8, double par10, double par12)
public void onEntityCreate(Entity par1Entity)
onEntityCreate
in interface IWorldAccess
public void onEntityDestroy(Entity par1Entity)
onEntityDestroy
in interface IWorldAccess
public void deleteAllDisplayLists()
public void broadcastSound(int par1, int par2, int par3, int par4, int par5)
broadcastSound
in interface IWorldAccess
public void playAuxSFX(EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5, int par6)
playAuxSFX
in interface IWorldAccess
public void destroyBlockPartially(int p_147587_1_, int p_147587_2_, int p_147587_3_, int p_147587_4_, int p_147587_5_)
destroyBlockPartially
in interface IWorldAccess
public void registerDestroyBlockIcons(IIconRegister par1IconRegister)