Package net.minecraft.src
Class RenderGlobal
java.lang.Object
net.minecraft.src.RenderGlobal
- All Implemented Interfaces:
IWorldAccess
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastSound(int par1, int par2, int par3, int par4, int par5) voidclipRenderersByFrustum(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, partialTickTimevoidDeletes all display listsvoiddestroyBlockPartially(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 valuedoSpawnParticle(String par1Str, double par2, double par4, double par6, double par8, double par10, double par12) Spawns a particle.voiddrawBlockDamageTexture(Tessellator par1Tessellator, EntityPlayer par2EntityPlayer, float par3) voiddrawSelectionBox(EntityPlayer par1EntityPlayer, MovingObjectPosition par2MovingObjectPosition, int par3, float par4) Draws the selection box for the player.Gets the entities info for use on the Debug screenGets the render info for use on the Debug screengetDestroyedBlockIcon(int iBlockDamage) booleanhasCloudFog(double par1, double par3, double par5, float par7) Checks if the given position is to be rendered with cloud fogvoidLoads all the renderers and sets up the basic settings usagevoidmarkBlockForRenderUpdate(int par1, int par2, int par3) On the client, re-renders this block.voidmarkBlockForUpdate(int par1, int par2, int par3) On the client, re-renders the block.voidmarkBlockRangeForRenderUpdate(int par1, int par2, int par3, int par4, int par5, int par6) On the client, re-renders all blocks in this range, inclusive.voidmarkBlocksForUpdate(int par1, int par2, int par3, int par4, int par5, int par6) Marks the blocks in the given range for updatevoidonEntityCreate(Entity par1Entity) Called on all IWorldAccesses when an entity is created or loaded.voidonEntityDestroy(Entity par1Entity) Called on all IWorldAccesses when an entity is unloaded or destroyed.voidplayAuxSFX(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).voidplayRecord(String par1Str, int par2, int par3, int par4) Plays the specified record.voidPlays the specified sound.voidplaySoundToNearExcept(EntityPlayer par1EntityPlayer, String par2Str, double par3, double par5, double par7, float par9, float par10) Plays sound to all near players except the player reference givenvoidregisterDestroyBlockIcons(IconRegister par1IconRegister) voidrenderAllRenderLists(int par1, double par2) Render all render listsvoidrenderClouds(float par1) voidrenderCloudsFancy(float par1) Renders the 3d fancy cloudsvoidrenderEntities(Vec3 par1Vec3, ICamera par2ICamera, float par3) Renders all entities within range and within the frustrum.voidrenderSky(float par1) Renders the sky with the partial tick time.voidsetWorldAndLoadRenderers(WorldClient par1WorldClient) set null to clearintsortAndRender(EntityLivingBase par1EntityLivingBase, int par2, double par3) Sorts all renderers based on the passed in entity.voidspawnParticle(String par1Str, double par2, double par4, double par6, double par8, double par10, double par12) Spawns a particle.voidbooleanupdateRenderers(EntityLivingBase par1EntityLivingBase, boolean par2) Updates some of the renderers sorted by distance from the player
-
Field Details
-
tileEntities
-
-
Constructor Details
-
RenderGlobal
-
-
Method Details
-
setWorldAndLoadRenderers
set null to clear -
loadRenderers
public void loadRenderers()Loads all the renderers and sets up the basic settings usage -
renderEntities
Renders all entities within range and within the frustrum. Args: pos, frustrum, partialTickTime -
getDebugInfoRenders
Gets the render info for use on the Debug screen -
getDebugInfoEntities
Gets the entities info for use on the Debug screen -
sortAndRender
Sorts all renderers based on the passed in entity. Args: entityLiving, renderPass, partialTickTime -
renderAllRenderLists
public void renderAllRenderLists(int par1, double par2) Render all render lists -
updateClouds
public void updateClouds() -
renderSky
public void renderSky(float par1) Renders the sky with the partial tick time. Args: partialTickTime -
renderClouds
public void renderClouds(float par1) -
hasCloudFog
public boolean hasCloudFog(double par1, double par3, double par5, float par7) Checks if the given position is to be rendered with cloud fog -
renderCloudsFancy
public void renderCloudsFancy(float par1) Renders the 3d fancy clouds -
updateRenderers
Updates some of the renderers sorted by distance from the player -
drawBlockDamageTexture
public void drawBlockDamageTexture(Tessellator par1Tessellator, EntityPlayer par2EntityPlayer, float par3) -
drawSelectionBox
public void drawSelectionBox(EntityPlayer par1EntityPlayer, MovingObjectPosition par2MovingObjectPosition, int par3, float par4) Draws the selection box for the player. Args: entityPlayer, rayTraceHit, i, itemStack, partialTickTime -
markBlocksForUpdate
public void markBlocksForUpdate(int par1, int par2, int par3, int par4, int par5, int par6) Marks the blocks in the given range for update -
markBlockForUpdate
public void 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- Specified by:
markBlockForUpdatein interfaceIWorldAccess
-
markBlockForRenderUpdate
public void markBlockForRenderUpdate(int par1, int par2, int par3) On the client, re-renders this block. On the server, does nothing. Used for lighting updates.- Specified by:
markBlockForRenderUpdatein interfaceIWorldAccess
-
markBlockRangeForRenderUpdate
public void 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- Specified by:
markBlockRangeForRenderUpdatein interfaceIWorldAccess
-
clipRenderersByFrustum
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 -
playRecord
Plays the specified record. Arg: recordName, x, y, z- Specified by:
playRecordin interfaceIWorldAccess
-
playSound
public void playSound(String par1Str, double par2, double par4, double par6, float par8, float par9) Plays the specified sound. Arg: soundName, x, y, z, volume, pitch- Specified by:
playSoundin interfaceIWorldAccess
-
playSoundToNearExcept
public void 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- Specified by:
playSoundToNearExceptin interfaceIWorldAccess
-
spawnParticle
public void 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- Specified by:
spawnParticlein interfaceIWorldAccess
-
doSpawnParticle
public EntityFX 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 -
onEntityCreate
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.- Specified by:
onEntityCreatein interfaceIWorldAccess
-
onEntityDestroy
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.- Specified by:
onEntityDestroyin interfaceIWorldAccess
-
deleteAllDisplayLists
public void deleteAllDisplayLists()Deletes all display lists -
broadcastSound
public void broadcastSound(int par1, int par2, int par3, int par4, int par5) - Specified by:
broadcastSoundin interfaceIWorldAccess
-
playAuxSFX
public 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).- Specified by:
playAuxSFXin interfaceIWorldAccess
-
destroyBlockPartially
public void 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- Specified by:
destroyBlockPartiallyin interfaceIWorldAccess
-
registerDestroyBlockIcons
-
getDestroyedBlockIcon
-