public class WorldRenderer extends java.lang.Object implements java.lang.AutoCloseable, IResourceManagerReloadListener
IFutureReloadListener.IStage
Constructor and Description |
---|
WorldRenderer(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
static void |
addChainedFilledBoxVertices(BufferBuilder builder,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
float red,
float green,
float blue,
float alpha) |
void |
addParticle(IParticleData particleData,
boolean ignoreRange,
boolean minimizeLevel,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
boolean alwaysRender,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
void |
close() |
void |
createBindEntityOutlineFbs(int width,
int height) |
void |
deleteAllDisplayLists() |
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(ActiveRenderInfo p_215325_1_,
RayTraceResult p_215325_2_,
int p_215325_3_) |
static void |
drawShape(VoxelShape voxelShapeIn,
double xIn,
double yIn,
double zIn,
float red,
float green,
float blue,
float alpha) |
static void |
drawVoxelShapeParts(VoxelShape voxelShapeIn,
double xIn,
double yIn,
double zIn,
float red,
float green,
float blue,
float alpha) |
void |
func_215318_a(Tessellator p_215318_1_,
BufferBuilder p_215318_2_,
ActiveRenderInfo p_215318_3_) |
void |
func_224745_a(ActiveRenderInfo p_224745_1_) |
void |
func_224746_a(BlockPos p_224746_1_,
BlockState p_224746_2_,
BlockState p_224746_3_) |
java.lang.String |
getDebugInfoEntities() |
java.lang.String |
getDebugInfoRenders() |
protected int |
getRenderedChunks() |
IResourceType |
getResourceType() |
boolean |
hasNoChunkUpdates() |
protected boolean |
isRenderEntityOutlines() |
void |
loadRenderers() |
void |
makeEntityOutlineShader() |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
markForRerender(int sectionX,
int sectionY,
int sectionZ) |
void |
markSurroundingsForRerender(int sectionX,
int sectionY,
int sectionZ) |
void |
notifyBlockUpdate(IBlockReader worldIn,
BlockPos pos,
BlockState oldState,
BlockState newState,
int flags) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos blockPosIn,
int data) |
void |
playRecord(SoundEvent soundIn,
BlockPos pos) |
int |
renderBlockLayer(BlockRenderLayer p_215323_1_,
ActiveRenderInfo p_215323_2_) |
void |
renderClouds(float partialTicks,
double viewEntityX,
double viewEntityY,
double viewEntityZ) |
void |
renderEntities(ActiveRenderInfo p_215326_1_,
ICamera p_215326_2_,
float p_215326_3_) |
void |
renderEntityOutlineFramebuffer() |
void |
renderSky(float partialTicks) |
void |
renderWorldBorder(ActiveRenderInfo p_215322_1_,
float p_215322_2_) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
setDisplayListEntitiesDirty() |
void |
setupTerrain(ActiveRenderInfo p_215320_1_,
ICamera p_215320_2_,
int p_215320_3_,
boolean p_215320_4_) |
void |
setWorldAndLoadRenderers(ClientWorld worldClientIn) |
protected void |
stopChunkUpdates() |
void |
tick() |
void |
updateChunks(long finishTimeNano) |
void |
updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove,
java.util.Collection<TileEntity> tileEntitiesToAdd) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
public static final Direction[] FACINGS
public WorldRenderer(Minecraft mcIn)
public void close()
close
in interface java.lang.AutoCloseable
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public void makeEntityOutlineShader()
public void renderEntityOutlineFramebuffer()
protected boolean isRenderEntityOutlines()
public void setWorldAndLoadRenderers(@Nullable ClientWorld worldClientIn)
public void loadRenderers()
protected void stopChunkUpdates()
public void createBindEntityOutlineFbs(int width, int height)
public void func_224745_a(ActiveRenderInfo p_224745_1_)
public void renderEntities(ActiveRenderInfo p_215326_1_, ICamera p_215326_2_, float p_215326_3_)
public java.lang.String getDebugInfoRenders()
protected int getRenderedChunks()
public java.lang.String getDebugInfoEntities()
public void setupTerrain(ActiveRenderInfo p_215320_1_, ICamera p_215320_2_, int p_215320_3_, boolean p_215320_4_)
public int renderBlockLayer(BlockRenderLayer p_215323_1_, ActiveRenderInfo p_215323_2_)
public void tick()
public void renderSky(float partialTicks)
public void renderClouds(float partialTicks, double viewEntityX, double viewEntityY, double viewEntityZ)
public void updateChunks(long finishTimeNano)
public void renderWorldBorder(ActiveRenderInfo p_215322_1_, float p_215322_2_)
public void func_215318_a(Tessellator p_215318_1_, BufferBuilder p_215318_2_, ActiveRenderInfo p_215318_3_)
public void drawSelectionBox(ActiveRenderInfo p_215325_1_, RayTraceResult p_215325_2_, int p_215325_3_)
public static void drawVoxelShapeParts(VoxelShape voxelShapeIn, double xIn, double yIn, double zIn, float red, float green, float blue, float alpha)
public static void drawShape(VoxelShape voxelShapeIn, double xIn, double yIn, double zIn, float red, float green, float blue, float alpha)
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 addChainedFilledBoxVertices(BufferBuilder builder, double x1, double y1, double z1, double x2, double y2, double z2, float red, float green, float blue, float alpha)
public void notifyBlockUpdate(IBlockReader worldIn, BlockPos pos, BlockState oldState, BlockState newState, int flags)
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
public void func_224746_a(BlockPos p_224746_1_, BlockState p_224746_2_, BlockState p_224746_3_)
public void markSurroundingsForRerender(int sectionX, int sectionY, int sectionZ)
public void markForRerender(int sectionX, int sectionY, int sectionZ)
public void playRecord(@Nullable SoundEvent soundIn, BlockPos pos)
public void addParticle(IParticleData particleData, boolean alwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public void addParticle(IParticleData particleData, boolean ignoreRange, boolean minimizeLevel, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public void deleteAllDisplayLists()
public void broadcastSound(int soundID, BlockPos pos, int data)
public void playEvent(PlayerEntity player, int type, BlockPos blockPosIn, int data)
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
public boolean hasNoChunkUpdates()
public void setDisplayListEntitiesDirty()
public void updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove, java.util.Collection<TileEntity> tileEntitiesToAdd)
public IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener