Package net.minecraft.client.renderer
Class RenderGlobal
- java.lang.Object
-
- net.minecraft.client.renderer.RenderGlobal
-
- All Implemented Interfaces:
IResourceManagerReloadListener
,IWorldAccess
public class RenderGlobal extends java.lang.Object implements IWorldAccess, IResourceManagerReloadListener
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description RenderGlobal(Minecraft mcIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
broadcastSound(int i, BlockPos blockpos, int var3)
void
createBindEntityOutlineFbs(int parInt1, int parInt2)
void
deleteAllDisplayLists()
+ Deletes all display listsvoid
drawBlockDamageTexture(Tessellator tessellatorIn, WorldRenderer worldRendererIn, Entity entityIn, float partialTicks)
void
drawSelectionBox(EntityPlayer player, MovingObjectPosition movingObjectPositionIn, int partialTicks, float parFloat1)
+ Draws the selection box for the player.void
func_181023_a(java.util.Collection<TileEntity> parCollection, java.util.Collection<TileEntity> parCollection2)
static void
func_181561_a(AxisAlignedBB parAxisAlignedBB)
static void
func_181563_a(AxisAlignedBB parAxisAlignedBB, int parInt1, int parInt2, int parInt3, int parInt4)
java.lang.String
getDebugInfoEntities()
+ Gets the entities info for use on the Debug screenjava.lang.String
getDebugInfoRenders()
+ Gets the render info for use on the Debug screenjava.lang.String
getDebugInfoShort()
protected Vector3f
getViewVector(Entity entityIn, double partialTicks)
boolean
hasCloudFog(double x, double y, double z, float partialTicks)
+ Checks if the given position is to be rendered with cloud fogprotected boolean
isRenderEntityOutlines()
void
loadRenderers()
+ Loads all the renderers and sets up the basic settings usagevoid
makeEntityOutlineShader()
+ Creates the entity outline shader to be stored in RenderGlobal.entityOutlineShadervoid
markBlockForUpdate(BlockPos blockpos)
void
markBlockRangeForRenderUpdate(int i, int j, int k, int l, int i1, int j1)
+ On the client, re-renders all blocks in this range, inclusive.void
notifyLightSet(BlockPos blockpos)
void
onEntityAdded(Entity var1)
+ Called on all IWorldAccesses when an entity is created or loaded.void
onEntityRemoved(Entity var1)
+ Called on all IWorldAccesses when an entity is unloaded or destroyed.void
onResourceManagerReload(IResourceManager var1)
void
playAuxSFX(EntityPlayer var1, int i, BlockPos blockpos, int j)
void
playRecord(java.lang.String s, BlockPos blockpos)
void
playSound(java.lang.String var1, double var2, double var4, double var6, float var8, float var9)
+ Plays the specified sound.void
playSoundToNearExcept(EntityPlayer var1, java.lang.String var2, double var3, double var5, double var7, float var9, float var10)
+ Plays sound to all near players except the player reference givenint
renderBlockLayer(EnumWorldBlockLayer blockLayerIn, double partialTicks, int pass, Entity entityIn)
void
renderClouds(float partialTicks, int pass)
void
renderEntities(Entity renderViewEntity, ICamera camera, float partialTicks)
void
renderEntityOutlineFramebuffer()
void
renderSky(float partialTicks, int pass)
void
renderWorldBorder(Entity partialTicks, float parFloat1)
void
sendBlockBreakProgress(int i, BlockPos blockpos, int j)
void
setDisplayListEntitiesDirty()
void
setupTerrain(Entity viewEntity, double partialTicks, ICamera camera, int frameCount, boolean playerSpectator)
void
setWorldAndLoadRenderers(WorldClient worldClientIn)
+ set null to clearvoid
spawnParticle(int i, boolean flag, double d0, double d1, double d2, double d3, double d4, double d5, int... aint)
protected void
stopChunkUpdates()
void
updateChunks(long finishTimeNano)
void
updateClouds()
-
-
-
Constructor Detail
-
RenderGlobal
public RenderGlobal(Minecraft mcIn)
-
-
Method Detail
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager var1)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
makeEntityOutlineShader
public void makeEntityOutlineShader()
+ Creates the entity outline shader to be stored in RenderGlobal.entityOutlineShader
-
renderEntityOutlineFramebuffer
public void renderEntityOutlineFramebuffer()
-
isRenderEntityOutlines
protected boolean isRenderEntityOutlines()
-
setWorldAndLoadRenderers
public void setWorldAndLoadRenderers(WorldClient worldClientIn)
+ set null to clear
-
loadRenderers
public void loadRenderers()
+ Loads all the renderers and sets up the basic settings usage
-
stopChunkUpdates
protected void stopChunkUpdates()
-
createBindEntityOutlineFbs
public void createBindEntityOutlineFbs(int parInt1, int parInt2)
-
renderEntities
public void renderEntities(Entity renderViewEntity, ICamera camera, float partialTicks)
-
getDebugInfoRenders
public java.lang.String getDebugInfoRenders()
+ Gets the render info for use on the Debug screen
-
getDebugInfoEntities
public java.lang.String getDebugInfoEntities()
+ Gets the entities info for use on the Debug screen
-
setupTerrain
public void setupTerrain(Entity viewEntity, double partialTicks, ICamera camera, int frameCount, boolean playerSpectator)
-
renderBlockLayer
public int renderBlockLayer(EnumWorldBlockLayer blockLayerIn, double partialTicks, int pass, Entity entityIn)
-
updateClouds
public void updateClouds()
-
renderSky
public void renderSky(float partialTicks, int pass)
-
renderClouds
public void renderClouds(float partialTicks, int pass)
-
hasCloudFog
public boolean hasCloudFog(double x, double y, double z, float partialTicks)
+ Checks if the given position is to be rendered with cloud fog
-
updateChunks
public void updateChunks(long finishTimeNano)
-
renderWorldBorder
public void renderWorldBorder(Entity partialTicks, float parFloat1)
-
drawBlockDamageTexture
public void drawBlockDamageTexture(Tessellator tessellatorIn, WorldRenderer worldRendererIn, Entity entityIn, float partialTicks)
-
drawSelectionBox
public void drawSelectionBox(EntityPlayer player, MovingObjectPosition movingObjectPositionIn, int partialTicks, float parFloat1)
+ Draws the selection box for the player. Args: entityPlayer, rayTraceHit, i, itemStack, partialTickTime
-
func_181561_a
public static void func_181561_a(AxisAlignedBB parAxisAlignedBB)
-
func_181563_a
public static void func_181563_a(AxisAlignedBB parAxisAlignedBB, int parInt1, int parInt2, int parInt3, int parInt4)
-
markBlockForUpdate
public void markBlockForUpdate(BlockPos blockpos)
- Specified by:
markBlockForUpdate
in interfaceIWorldAccess
-
notifyLightSet
public void notifyLightSet(BlockPos blockpos)
- Specified by:
notifyLightSet
in interfaceIWorldAccess
-
markBlockRangeForRenderUpdate
public void markBlockRangeForRenderUpdate(int i, int j, int k, int l, int i1, int j1)
+ 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:
markBlockRangeForRenderUpdate
in interfaceIWorldAccess
-
playRecord
public void playRecord(java.lang.String s, BlockPos blockpos)
- Specified by:
playRecord
in interfaceIWorldAccess
-
playSound
public void playSound(java.lang.String var1, double var2, double var4, double var6, float var8, float var9)
+ Plays the specified sound. Arg: soundName, x, y, z, volume, pitch- Specified by:
playSound
in interfaceIWorldAccess
-
playSoundToNearExcept
public void playSoundToNearExcept(EntityPlayer var1, java.lang.String var2, double var3, double var5, double var7, float var9, float var10)
+ Plays sound to all near players except the player reference given- Specified by:
playSoundToNearExcept
in interfaceIWorldAccess
-
spawnParticle
public void spawnParticle(int i, boolean flag, double d0, double d1, double d2, double d3, double d4, double d5, int... aint)
- Specified by:
spawnParticle
in interfaceIWorldAccess
-
onEntityAdded
public void onEntityAdded(Entity var1)
+ 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:
onEntityAdded
in interfaceIWorldAccess
-
onEntityRemoved
public void onEntityRemoved(Entity var1)
+ 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:
onEntityRemoved
in interfaceIWorldAccess
-
deleteAllDisplayLists
public void deleteAllDisplayLists()
+ Deletes all display lists
-
broadcastSound
public void broadcastSound(int i, BlockPos blockpos, int var3)
- Specified by:
broadcastSound
in interfaceIWorldAccess
-
playAuxSFX
public void playAuxSFX(EntityPlayer var1, int i, BlockPos blockpos, int j)
- Specified by:
playAuxSFX
in interfaceIWorldAccess
-
sendBlockBreakProgress
public void sendBlockBreakProgress(int i, BlockPos blockpos, int j)
- Specified by:
sendBlockBreakProgress
in interfaceIWorldAccess
-
setDisplayListEntitiesDirty
public void setDisplayListEntitiesDirty()
-
func_181023_a
public void func_181023_a(java.util.Collection<TileEntity> parCollection, java.util.Collection<TileEntity> parCollection2)
-
getDebugInfoShort
public java.lang.String getDebugInfoShort()
-
-