public class WorldRenderer extends java.lang.Object implements IWorldEventListener, java.lang.AutoCloseable, IResourceManagerReloadListener
| Modifier and Type | Field and Description |
|---|---|
static EnumFacing[] |
FACINGS |
| 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() |
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) |
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) |
java.lang.String |
getDebugInfoEntities() |
java.lang.String |
getDebugInfoRenders() |
protected int |
getRenderedChunks() |
IResourceType |
getResourceType() |
protected Vector3f |
getViewVector(Entity entityIn,
double 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(IBlockReader 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,
Entity entityIn) |
void |
renderClouds(float partialTicks,
double viewEntityX,
double viewEntityY,
double viewEntityZ) |
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) |
void |
renderWorldBorder(Entity entityIn,
float partialTicks) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
setDisplayListEntitiesDirty() |
void |
setupTerrain(Entity entityIn,
float partialTicks,
ICamera camera,
int frameCount,
boolean playerSpectator) |
void |
setWorldAndLoadRenderers(WorldClient worldClientIn) |
protected void |
stopChunkUpdates() |
void |
tick() |
void |
updateChunks(long finishTimeNano) |
void |
updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove,
java.util.Collection<TileEntity> tileEntitiesToAdd) |
public static final EnumFacing[] FACINGS
public WorldRenderer(Minecraft mcIn)
public void close()
close in interface java.lang.AutoCloseablepublic void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload in interface IResourceManagerReloadListenerpublic 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 entityIn, float partialTicks, ICamera camera, int frameCount, boolean playerSpectator)
public int renderBlockLayer(BlockRenderLayer blockLayerIn, double partialTicks, Entity entityIn)
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(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 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 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 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, IBlockState oldState, IBlockState newState, int flags)
notifyBlockUpdate in interface IWorldEventListenerpublic void notifyLightSet(BlockPos pos)
notifyLightSet in interface IWorldEventListenerpublic void markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
markBlockRangeForRenderUpdate in interface IWorldEventListenerpublic void playRecord(@Nullable
SoundEvent soundIn,
BlockPos pos)
playRecord in interface IWorldEventListenerpublic void playSoundToAllNearExcept(@Nullable
EntityPlayer player,
SoundEvent soundIn,
SoundCategory category,
double x,
double y,
double z,
float volume,
float pitch)
playSoundToAllNearExcept in interface IWorldEventListenerpublic void addParticle(IParticleData particleData, boolean alwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle in interface IWorldEventListenerpublic void addParticle(IParticleData particleData, boolean ignoreRange, boolean minimizeLevel, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle in interface IWorldEventListenerpublic void onEntityAdded(Entity entityIn)
onEntityAdded in interface IWorldEventListenerpublic void onEntityRemoved(Entity entityIn)
onEntityRemoved in interface IWorldEventListenerpublic void deleteAllDisplayLists()
public void broadcastSound(int soundID,
BlockPos pos,
int data)
broadcastSound in interface IWorldEventListenerpublic void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data)
playEvent in interface IWorldEventListenerpublic void sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress)
sendBlockBreakProgress in interface IWorldEventListenerpublic 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