public class RenderGlobal extends java.lang.Object implements IWorldAccess, IResourceManagerReloadListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
RenderGlobal.ContainerLocalRenderInformation |
Constructor and Description |
---|
RenderGlobal(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
broadcastSound(int p_180440_1_,
BlockPos p_180440_2_,
int p_180440_3_) |
private void |
cleanupDamagedBlocks(java.util.Iterator<DestroyBlockProgress> iteratorIn) |
void |
createBindEntityOutlineFbs(int p_72720_1_,
int p_72720_2_) |
void |
deleteAllDisplayLists()
Deletes all display lists
|
void |
drawBlockDamageTexture(Tessellator tessellatorIn,
WorldRenderer worldRendererIn,
Entity entityIn,
float partialTicks) |
void |
drawSelectionBox(EntityPlayer player,
MovingObjectPosition movingObjectPositionIn,
int p_72731_3_,
float partialTicks)
Draws the selection box for the player.
|
private void |
fixTerrainFrustum(double x,
double y,
double z) |
void |
func_181023_a(java.util.Collection<TileEntity> p_181023_1_,
java.util.Collection<TileEntity> p_181023_2_) |
static void |
func_181561_a(AxisAlignedBB p_181561_0_) |
private RenderChunk |
func_181562_a(BlockPos p_181562_1_,
RenderChunk p_181562_2_,
EnumFacing p_181562_3_) |
static void |
func_181563_a(AxisAlignedBB p_181563_0_,
int p_181563_1_,
int p_181563_2_,
int p_181563_3_,
int p_181563_4_) |
private void |
generateSky() |
private void |
generateSky2() |
private void |
generateStars() |
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
|
protected org.lwjgl.util.vector.Vector3f |
getViewVector(Entity entityIn,
double partialTicks) |
private java.util.Set<EnumFacing> |
getVisibleFacings(BlockPos pos) |
boolean |
hasCloudFog(double x,
double y,
double z,
float partialTicks)
Checks if the given position is to be rendered with cloud fog
|
private boolean |
isPositionInRenderChunk(BlockPos pos,
RenderChunk renderChunkIn) |
protected boolean |
isRenderEntityOutlines() |
void |
loadRenderers()
Loads all the renderers and sets up the basic settings usage
|
void |
makeEntityOutlineShader()
Creates the entity outline shader to be stored in RenderGlobal.entityOutlineShader
|
void |
markBlockForUpdate(BlockPos pos) |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
On the client, re-renders all blocks in this range, inclusive.
|
private void |
markBlocksForUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
Marks the blocks in the given range for update
|
void |
notifyLightSet(BlockPos pos) |
void |
onEntityAdded(Entity entityIn)
Called on all IWorldAccesses when an entity is created or loaded.
|
void |
onEntityRemoved(Entity entityIn)
Called on all IWorldAccesses when an entity is unloaded or destroyed.
|
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
playAuxSFX(EntityPlayer player,
int sfxType,
BlockPos blockPosIn,
int p_180439_4_) |
void |
playRecord(java.lang.String recordName,
BlockPos blockPosIn) |
void |
playSound(java.lang.String soundName,
double x,
double y,
double z,
float volume,
float pitch)
Plays the specified sound.
|
void |
playSoundToNearExcept(EntityPlayer except,
java.lang.String soundName,
double x,
double y,
double z,
float volume,
float pitch)
Plays sound to all near players except the player reference given
|
private void |
postRenderDamagedBlocks() |
private void |
preRenderDamagedBlocks() |
private void |
renderBlockLayer(EnumWorldBlockLayer blockLayerIn) |
int |
renderBlockLayer(EnumWorldBlockLayer blockLayerIn,
double partialTicks,
int pass,
Entity entityIn) |
void |
renderClouds(float partialTicks,
int pass) |
private void |
renderCloudsFancy(float partialTicks,
int pass) |
void |
renderEntities(Entity renderViewEntity,
ICamera camera,
float partialTicks) |
void |
renderEntityOutlineFramebuffer() |
void |
renderSky(float partialTicks,
int pass) |
private void |
renderSky(WorldRenderer worldRendererIn,
float p_174968_2_,
boolean p_174968_3_) |
private void |
renderSkyEnd() |
private void |
renderStars(WorldRenderer worldRendererIn) |
void |
renderWorldBorder(Entity p_180449_1_,
float partialTicks) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
setDisplayListEntitiesDirty() |
void |
setupTerrain(Entity viewEntity,
double partialTicks,
ICamera camera,
int frameCount,
boolean playerSpectator) |
void |
setWorldAndLoadRenderers(WorldClient worldClientIn)
set null to clear
|
private EntityFX |
spawnEntityFX(int p_174974_1_,
boolean ignoreRange,
double p_174974_3_,
double p_174974_5_,
double p_174974_7_,
double p_174974_9_,
double p_174974_11_,
double p_174974_13_,
int... p_174974_15_) |
private void |
spawnParticle(EnumParticleTypes particleIn,
double p_174972_2_,
double p_174972_4_,
double p_174972_6_,
double p_174972_8_,
double p_174972_10_,
double p_174972_12_,
int... p_174972_14_) |
void |
spawnParticle(int particleID,
boolean ignoreRange,
double xCoord,
double yCoord,
double zCoord,
double xOffset,
double yOffset,
double zOffset,
int... p_180442_15_) |
protected void |
stopChunkUpdates() |
void |
updateChunks(long finishTimeNano) |
void |
updateClouds() |
private void |
updateDestroyBlockIcons() |
private static final org.apache.logging.log4j.Logger logger
private static final ResourceLocation locationMoonPhasesPng
private static final ResourceLocation locationSunPng
private static final ResourceLocation locationCloudsPng
private static final ResourceLocation locationEndSkyPng
private static final ResourceLocation locationForcefieldPng
private final Minecraft mc
private final TextureManager renderEngine
private final RenderManager renderManager
private WorldClient theWorld
private java.util.Set<RenderChunk> chunksToUpdate
private java.util.List<RenderGlobal.ContainerLocalRenderInformation> renderInfos
private final java.util.Set<TileEntity> field_181024_n
private ViewFrustum viewFrustum
private int starGLCallList
private int glSkyList
private int glSkyList2
private VertexFormat vertexBufferFormat
private VertexBuffer starVBO
private VertexBuffer skyVBO
private VertexBuffer sky2VBO
private int cloudTickCounter
private final java.util.Map<java.lang.Integer,DestroyBlockProgress> damagedBlocks
private final TextureAtlasSprite[] destroyBlockIcons
private Framebuffer entityOutlineFramebuffer
private ShaderGroup entityOutlineShader
private double frustumUpdatePosX
private double frustumUpdatePosY
private double frustumUpdatePosZ
private int frustumUpdatePosChunkX
private int frustumUpdatePosChunkY
private int frustumUpdatePosChunkZ
private double lastViewEntityX
private double lastViewEntityY
private double lastViewEntityZ
private double lastViewEntityPitch
private double lastViewEntityYaw
private final ChunkRenderDispatcher renderDispatcher
private ChunkRenderContainer renderContainer
private int renderDistanceChunks
private int renderEntitiesStartupCounter
private int countEntitiesTotal
private int countEntitiesRendered
private int countEntitiesHidden
private boolean debugFixTerrainFrustum
private ClippingHelper debugFixedClippingHelper
private final org.lwjgl.util.vector.Vector4f[] debugTerrainMatrix
private final Vector3d debugTerrainFrustumPosition
private boolean vboEnabled
IRenderChunkFactory renderChunkFactory
private double prevRenderSortX
private double prevRenderSortY
private double prevRenderSortZ
private boolean displayListEntitiesDirty
public RenderGlobal(Minecraft mcIn)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
private void updateDestroyBlockIcons()
public void makeEntityOutlineShader()
public void renderEntityOutlineFramebuffer()
protected boolean isRenderEntityOutlines()
private void generateSky2()
private void generateSky()
private void renderSky(WorldRenderer worldRendererIn, float p_174968_2_, boolean p_174968_3_)
private void generateStars()
private void renderStars(WorldRenderer worldRendererIn)
public void setWorldAndLoadRenderers(WorldClient worldClientIn)
public void loadRenderers()
protected void stopChunkUpdates()
public void createBindEntityOutlineFbs(int p_72720_1_, int p_72720_2_)
public void renderEntities(Entity renderViewEntity, ICamera camera, float partialTicks)
public java.lang.String getDebugInfoRenders()
public java.lang.String getDebugInfoEntities()
public void setupTerrain(Entity viewEntity, double partialTicks, ICamera camera, int frameCount, boolean playerSpectator)
private boolean isPositionInRenderChunk(BlockPos pos, RenderChunk renderChunkIn)
private java.util.Set<EnumFacing> getVisibleFacings(BlockPos pos)
private RenderChunk func_181562_a(BlockPos p_181562_1_, RenderChunk p_181562_2_, EnumFacing p_181562_3_)
private void fixTerrainFrustum(double x, double y, double z)
protected org.lwjgl.util.vector.Vector3f getViewVector(Entity entityIn, double partialTicks)
public int renderBlockLayer(EnumWorldBlockLayer blockLayerIn, double partialTicks, int pass, Entity entityIn)
private void renderBlockLayer(EnumWorldBlockLayer blockLayerIn)
private void cleanupDamagedBlocks(java.util.Iterator<DestroyBlockProgress> iteratorIn)
public void updateClouds()
private void renderSkyEnd()
public void renderSky(float partialTicks, int pass)
public void renderClouds(float partialTicks, int pass)
public boolean hasCloudFog(double x, double y, double z, float partialTicks)
private void renderCloudsFancy(float partialTicks, int pass)
public void updateChunks(long finishTimeNano)
public void renderWorldBorder(Entity p_180449_1_, float partialTicks)
private void preRenderDamagedBlocks()
private void postRenderDamagedBlocks()
public void drawBlockDamageTexture(Tessellator tessellatorIn, WorldRenderer worldRendererIn, Entity entityIn, float partialTicks)
public void drawSelectionBox(EntityPlayer player, MovingObjectPosition movingObjectPositionIn, int p_72731_3_, float partialTicks)
public static void func_181561_a(AxisAlignedBB p_181561_0_)
public static void func_181563_a(AxisAlignedBB p_181563_0_, int p_181563_1_, int p_181563_2_, int p_181563_3_, int p_181563_4_)
private void markBlocksForUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
public void markBlockForUpdate(BlockPos pos)
markBlockForUpdate
in interface IWorldAccess
public void notifyLightSet(BlockPos pos)
notifyLightSet
in interface IWorldAccess
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
markBlockRangeForRenderUpdate
in interface IWorldAccess
public void playRecord(java.lang.String recordName, BlockPos blockPosIn)
playRecord
in interface IWorldAccess
public void playSound(java.lang.String soundName, double x, double y, double z, float volume, float pitch)
playSound
in interface IWorldAccess
public void playSoundToNearExcept(EntityPlayer except, java.lang.String soundName, double x, double y, double z, float volume, float pitch)
playSoundToNearExcept
in interface IWorldAccess
public void spawnParticle(int particleID, boolean ignoreRange, double xCoord, double yCoord, double zCoord, double xOffset, double yOffset, double zOffset, int... p_180442_15_)
spawnParticle
in interface IWorldAccess
private void spawnParticle(EnumParticleTypes particleIn, double p_174972_2_, double p_174972_4_, double p_174972_6_, double p_174972_8_, double p_174972_10_, double p_174972_12_, int... p_174972_14_)
private EntityFX spawnEntityFX(int p_174974_1_, boolean ignoreRange, double p_174974_3_, double p_174974_5_, double p_174974_7_, double p_174974_9_, double p_174974_11_, double p_174974_13_, int... p_174974_15_)
public void onEntityAdded(Entity entityIn)
onEntityAdded
in interface IWorldAccess
public void onEntityRemoved(Entity entityIn)
onEntityRemoved
in interface IWorldAccess
public void deleteAllDisplayLists()
public void broadcastSound(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_)
broadcastSound
in interface IWorldAccess
public void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int p_180439_4_)
playAuxSFX
in interface IWorldAccess
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
sendBlockBreakProgress
in interface IWorldAccess
public void setDisplayListEntitiesDirty()
public void func_181023_a(java.util.Collection<TileEntity> p_181023_1_, java.util.Collection<TileEntity> p_181023_2_)