public class RenderGlobal extends java.lang.Object implements IWorldEventListener, IResourceManagerReloadListener
Constructor and Description |
---|
RenderGlobal(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
void |
createBindEntityOutlineFbs(int width,
int height) |
void |
deleteAllDisplayLists() |
void |
drawBlockDamageTexture(Tessellator tessellatorIn,
VertexBuffer worldRendererIn,
Entity entityIn,
float partialTicks) |
static void |
drawOutlinedBoundingBox(AxisAlignedBB boundingBox,
int red,
int green,
int blue,
int alpha) |
static void |
drawSelectionBoundingBox(AxisAlignedBB boundingBox) |
void |
drawSelectionBox(EntityPlayer player,
RayTraceResult movingObjectPositionIn,
int execute,
float partialTicks) |
java.lang.String |
getDebugInfoEntities() |
java.lang.String |
getDebugInfoRenders() |
protected int |
getRenderedChunks() |
protected org.lwjgl.util.vector.Vector3f |
getViewVector(Entity entityIn,
double partialTicks) |
boolean |
hasCloudFog(double x,
double y,
double z,
float partialTicks) |
boolean |
hasNoChunkUpdates() |
protected boolean |
isRenderEntityOutlines() |
void |
loadRenderers() |
void |
makeEntityOutlineShader() |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
notifyBlockUpdate(World worldIn,
BlockPos pos,
IBlockState oldState,
IBlockState newState,
int flags) |
void |
notifyLightSet(BlockPos pos) |
void |
onEntityAdded(Entity entityIn) |
void |
onEntityRemoved(Entity entityIn) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
playEvent(EntityPlayer player,
int type,
BlockPos blockPosIn,
int data) |
void |
playRecord(SoundEvent soundIn,
BlockPos pos) |
void |
playSoundToAllNearExcept(EntityPlayer player,
SoundEvent soundIn,
SoundCategory category,
double x,
double y,
double z,
float volume,
float pitch) |
int |
renderBlockLayer(BlockRenderLayer 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 entityIn,
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) |
void |
spawnParticle(int particleID,
boolean ignoreRange,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
protected void |
stopChunkUpdates() |
void |
updateChunks(long finishTimeNano) |
void |
updateClouds() |
void |
updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove,
java.util.Collection<TileEntity> tileEntitiesToAdd) |
public RenderGlobal(Minecraft mcIn)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public void makeEntityOutlineShader()
public void renderEntityOutlineFramebuffer()
protected boolean isRenderEntityOutlines()
public void setWorldAndLoadRenderers(@Nullable WorldClient worldClientIn)
public void loadRenderers()
protected void stopChunkUpdates()
public void createBindEntityOutlineFbs(int width, int height)
public void renderEntities(Entity renderViewEntity, ICamera camera, float partialTicks)
public java.lang.String getDebugInfoRenders()
protected int getRenderedChunks()
public java.lang.String getDebugInfoEntities()
public void setupTerrain(Entity viewEntity, double partialTicks, ICamera camera, int frameCount, boolean playerSpectator)
protected org.lwjgl.util.vector.Vector3f getViewVector(Entity entityIn, double partialTicks)
public int renderBlockLayer(BlockRenderLayer blockLayerIn, double partialTicks, int pass, Entity entityIn)
public void updateClouds()
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)
public void updateChunks(long finishTimeNano)
public void renderWorldBorder(Entity entityIn, float partialTicks)
public void drawBlockDamageTexture(Tessellator tessellatorIn, VertexBuffer worldRendererIn, Entity entityIn, float partialTicks)
public void drawSelectionBox(EntityPlayer player, RayTraceResult movingObjectPositionIn, int execute, float partialTicks)
public static void drawSelectionBoundingBox(AxisAlignedBB boundingBox)
public static void drawOutlinedBoundingBox(AxisAlignedBB boundingBox, int red, int green, int blue, int alpha)
public void notifyBlockUpdate(World worldIn, BlockPos pos, IBlockState oldState, IBlockState newState, int flags)
notifyBlockUpdate
in interface IWorldEventListener
public void notifyLightSet(BlockPos pos)
notifyLightSet
in interface IWorldEventListener
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
markBlockRangeForRenderUpdate
in interface IWorldEventListener
public void playRecord(@Nullable SoundEvent soundIn, BlockPos pos)
playRecord
in interface IWorldEventListener
public void playSoundToAllNearExcept(@Nullable EntityPlayer player, SoundEvent soundIn, SoundCategory category, double x, double y, double z, float volume, float pitch)
playSoundToAllNearExcept
in interface IWorldEventListener
public void spawnParticle(int particleID, boolean ignoreRange, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed, int... parameters)
spawnParticle
in interface IWorldEventListener
public void onEntityAdded(Entity entityIn)
onEntityAdded
in interface IWorldEventListener
public void onEntityRemoved(Entity entityIn)
onEntityRemoved
in interface IWorldEventListener
public void deleteAllDisplayLists()
public void broadcastSound(int soundID, BlockPos pos, int data)
broadcastSound
in interface IWorldEventListener
public void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data)
playEvent
in interface IWorldEventListener
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
sendBlockBreakProgress
in interface IWorldEventListener
public boolean hasNoChunkUpdates()
public void setDisplayListEntitiesDirty()
public void updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove, java.util.Collection<TileEntity> tileEntitiesToAdd)