public class RenderGlobal extends java.lang.Object implements IWorldEventListener, IResourceManagerReloadListener
Constructor and Description |
---|
RenderGlobal(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
static void |
addChainedFilledBoxVertices(BufferBuilder builder,
double p_189693_1_,
double p_189693_3_,
double p_189693_5_,
double p_189693_7_,
double p_189693_9_,
double p_189693_11_,
float red,
float green,
float blue,
float alpha) |
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
void |
createBindEntityOutlineFbs(int width,
int height) |
void |
deleteAllDisplayLists() |
void |
drawBlockDamageTexture(Tessellator tessellatorIn,
BufferBuilder bufferBuilderIn,
Entity entityIn,
float partialTicks) |
static void |
drawBoundingBox(BufferBuilder buffer,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
float red,
float green,
float blue,
float alpha) |
static void |
drawBoundingBox(double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
float red,
float green,
float blue,
float alpha) |
static void |
drawSelectionBoundingBox(AxisAlignedBB box,
float red,
float green,
float blue,
float alpha) |
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,
double p_180447_3_,
double p_180447_5_,
double p_180447_7_) |
void |
renderEntities(Entity renderViewEntity,
ICamera camera,
float partialTicks) |
void |
renderEntityOutlineFramebuffer() |
static void |
renderFilledBox(AxisAlignedBB aabb,
float red,
float green,
float blue,
float alpha) |
static void |
renderFilledBox(double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
float red,
float green,
float blue,
float alpha) |
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 id,
boolean ignoreRange,
boolean p_190570_3_,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
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, double p_180447_3_, double p_180447_5_, double p_180447_7_)
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, BufferBuilder bufferBuilderIn, Entity entityIn, float partialTicks)
public void drawSelectionBox(EntityPlayer player, RayTraceResult movingObjectPositionIn, int execute, float partialTicks)
public static void drawSelectionBoundingBox(AxisAlignedBB box, float red, float green, float blue, float alpha)
public static void drawBoundingBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
public static void drawBoundingBox(BufferBuilder buffer, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
public static void renderFilledBox(AxisAlignedBB aabb, float red, float green, float blue, float alpha)
public static void renderFilledBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
public static void addChainedFilledBoxVertices(BufferBuilder builder, double p_189693_1_, double p_189693_3_, double p_189693_5_, double p_189693_7_, double p_189693_9_, double p_189693_11_, float red, float green, float blue, float 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 spawnParticle(int id, boolean ignoreRange, boolean p_190570_3_, double x, double y, double z, 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)