Package net.minecraft.client.renderer
Class WorldRenderer
java.lang.Object
net.minecraft.client.renderer.WorldRenderer
- All Implemented Interfaces:
AutoCloseable,IFutureReloadListener,IResourceManagerReloadListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classstatic classNested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClippingHelperprivate booleanprivate ChunkRenderDispatcherprivate Set<ChunkRenderDispatcher.ChunkRender>private VertexBufferprivate static final ResourceLocationprivate Framebufferprivate intprivate VertexBufferprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<DestroyBlockProgress>private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<DestroyBlockProgress>>static final Direction[]private static final ResourceLocationprivate ShaderGroupprivate final EntityRendererManagerprivate Framebufferprivate static final ResourceLocationprivate final VertexFormatprivate intprivate final RenderTimeManagerprivate final Vector4f[]private final Tuple3dprivate booleanprivate final Set<TileEntity>private Framebufferprivate intprivate intprivate intprivate doubleprivate doubleprivate doubleprivate intprivate ClientWorldprivate static final org.apache.logging.log4j.Loggerprivate final Minecraftprivate static final ResourceLocationprivate booleanprivate Framebufferprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate Vector3dprivate CloudOptionprivate intprivate intprivate intprivate static final ResourceLocationprivate final float[]private final float[]private intprivate final RenderTypeBuffersprivate final it.unimi.dsi.fastutil.objects.ObjectList<WorldRenderer.LocalRenderInformationContainer>private intprivate VertexBufferprivate final VertexFormatprivate static final ResourceLocationprivate VertexBufferprivate static final ResourceLocationprivate final TextureManagerprivate intprivate Framebufferprivate ShaderGroupprivate ViewFrustumprivate Framebufferprivate doubleprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddChainedFilledBoxVertices(BufferBuilder p_189693_0_, 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 p_189693_13_, float p_189693_14_, float p_189693_15_, float p_189693_16_) private voidaddFrustumQuad(IVertexBuilder p_228434_1_, int p_228434_2_, int p_228434_3_, int p_228434_4_, int p_228434_5_, int p_228434_6_, int p_228434_7_, int p_228434_8_) private voidaddFrustumVertex(IVertexBuilder p_228433_1_, int p_228433_2_) voidaddParticle(IParticleData p_195462_1_, boolean p_195462_2_, boolean p_195462_3_, double p_195462_4_, double p_195462_6_, double p_195462_8_, double p_195462_10_, double p_195462_12_, double p_195462_14_) voidaddParticle(IParticleData p_195461_1_, boolean p_195461_2_, double p_195461_3_, double p_195461_5_, double p_195461_7_, double p_195461_9_, double p_195461_11_, double p_195461_13_) private <T extends IParticleData>
voidaddParticle(T p_195467_1_, double p_195467_2_, double p_195467_4_, double p_195467_6_, double p_195467_8_, double p_195467_10_, double p_195467_12_) private ParticleaddParticleInternal(IParticleData p_195469_1_, boolean p_195469_2_, boolean p_195469_3_, double p_195469_4_, double p_195469_6_, double p_195469_8_, double p_195469_10_, double p_195469_12_, double p_195469_14_) private ParticleaddParticleInternal(IParticleData p_195471_1_, boolean p_195471_2_, double p_195471_3_, double p_195471_5_, double p_195471_7_, double p_195471_9_, double p_195471_11_, double p_195471_13_) voidvoidblockChanged(IBlockReader p_184376_1_, BlockPos p_184376_2_, BlockState p_184376_3_, BlockState p_184376_4_, int p_184376_5_) private voidbuildClouds(BufferBuilder p_204600_1_, double p_204600_2_, double p_204600_4_, double p_204600_6_, Vector3d p_204600_8_) private ParticleStatuscalculateParticleLevel(boolean p_215327_1_) private voidcaptureFrustum(Matrix4f p_228419_1_, Matrix4f p_228419_2_, double p_228419_3_, double p_228419_5_, double p_228419_7_, ClippingHelper p_228419_9_) private voidcheckPoseStack(MatrixStack p_228423_1_) voidclear()voidclose()private voidcompileChunksUntil(long p_174967_1_) protected intprivate voidprivate voidprivate voidprivate voidvoiddestroyBlockProgress(int p_180441_1_, BlockPos p_180441_2_, int p_180441_3_) voidprivate voiddrawSkyHemisphere(BufferBuilder p_174968_1_, float p_174968_2_, boolean p_174968_3_) private voiddrawStars(BufferBuilder p_180444_1_) static intgetLightColor(IBlockDisplayReader p_228420_0_, BlockState p_228420_1_, BlockPos p_228420_2_) static intgetLightColor(IBlockDisplayReader p_228421_0_, BlockPos p_228421_1_) getRelativeFrom(BlockPos p_181562_1_, ChunkRenderDispatcher.ChunkRender p_181562_2_, Direction p_181562_3_) voidglobalLevelEvent(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_) booleanvoidprivate voidvoidlevelEvent(PlayerEntity p_180439_1_, int p_180439_2_, BlockPos p_180439_3_, int p_180439_4_) voidprivate voidnotifyNearbyEntities(World p_193054_1_, BlockPos p_193054_2_, boolean p_193054_3_) voidonResourceManagerReload(IResourceManager p_195410_1_) voidplayRecord(SoundEvent p_184377_1_, BlockPos p_184377_2_, MusicDiscItem musicDiscItem) voidplayStreamingMusic(SoundEvent p_184377_1_, BlockPos p_184377_2_) Deprecated.private voidremoveProgress(DestroyBlockProgress p_228442_1_) private voidrenderChunkLayer(RenderType p_228441_1_, MatrixStack p_228441_2_, double p_228441_3_, double p_228441_5_, double p_228441_7_) voidrenderClouds(MatrixStack p_228425_1_, float p_228425_2_, double p_228425_3_, double p_228425_5_, double p_228425_7_) private voidrenderDebug(ActiveRenderInfo p_228446_1_) private voidrenderEndSky(MatrixStack p_228444_1_) private voidrenderEntity(Entity p_228418_1_, double p_228418_2_, double p_228418_4_, double p_228418_6_, float p_228418_8_, MatrixStack p_228418_9_, IRenderTypeBuffer p_228418_10_) private voidrenderHitOutline(MatrixStack p_228429_1_, IVertexBuilder p_228429_2_, Entity p_228429_3_, double p_228429_4_, double p_228429_6_, double p_228429_8_, BlockPos p_228429_10_, BlockState p_228429_11_) voidrenderLevel(MatrixStack p_228426_1_, float p_228426_2_, long p_228426_3_, boolean p_228426_5_, ActiveRenderInfo p_228426_6_, GameRenderer p_228426_7_, LightTexture p_228426_8_, Matrix4f p_228426_9_) static voidrenderLineBox(MatrixStack p_228427_0_, IVertexBuilder p_228427_1_, double p_228427_2_, double p_228427_4_, double p_228427_6_, double p_228427_8_, double p_228427_10_, double p_228427_12_, float p_228427_14_, float p_228427_15_, float p_228427_16_, float p_228427_17_) static voidrenderLineBox(MatrixStack p_228428_0_, IVertexBuilder p_228428_1_, double p_228428_2_, double p_228428_4_, double p_228428_6_, double p_228428_8_, double p_228428_10_, double p_228428_12_, float p_228428_14_, float p_228428_15_, float p_228428_16_, float p_228428_17_, float p_228428_18_, float p_228428_19_, float p_228428_20_) static voidrenderLineBox(MatrixStack p_228430_0_, IVertexBuilder p_228430_1_, AxisAlignedBB p_228430_2_, float p_228430_3_, float p_228430_4_, float p_228430_5_, float p_228430_6_) private static voidrenderShape(MatrixStack p_228445_0_, IVertexBuilder p_228445_1_, VoxelShape p_228445_2_, double p_228445_3_, double p_228445_5_, double p_228445_7_, float p_228445_9_, float p_228445_10_, float p_228445_11_, float p_228445_12_) voidrenderSky(MatrixStack p_228424_1_, float p_228424_2_) private voidrenderSnowAndRain(LightTexture p_228438_1_, float p_228438_2_, double p_228438_3_, double p_228438_5_, double p_228438_7_) static voidrenderVoxelShape(MatrixStack p_228431_0_, IVertexBuilder p_228431_1_, VoxelShape p_228431_2_, double p_228431_3_, double p_228431_5_, double p_228431_7_, float p_228431_9_, float p_228431_10_, float p_228431_11_, float p_228431_12_) private voidrenderWorldBounds(ActiveRenderInfo p_228447_1_) protected voidvoidresize(int p_72720_1_, int p_72720_2_) private voidsetBlockDirty(BlockPos p_215324_1_, boolean p_215324_2_) voidsetBlockDirty(BlockPos p_224746_1_, BlockState p_224746_2_, BlockState p_224746_3_) voidsetBlocksDirty(int p_147585_1_, int p_147585_2_, int p_147585_3_, int p_147585_4_, int p_147585_5_, int p_147585_6_) voidsetLevel(ClientWorld p_72732_1_) voidsetSectionDirty(int p_215328_1_, int p_215328_2_, int p_215328_3_) private voidsetSectionDirty(int p_215319_1_, int p_215319_2_, int p_215319_3_, boolean p_215319_4_) voidsetSectionDirtyWithNeighbors(int p_215321_1_, int p_215321_2_, int p_215321_3_) private voidsetupRender(ActiveRenderInfo p_228437_1_, ClippingHelper p_228437_2_, boolean p_228437_3_, int p_228437_4_, boolean p_228437_5_) protected booleanvoidtick()voidtickRain(ActiveRenderInfo p_228436_1_) voidupdateGlobalBlockEntities(Collection<TileEntity> p_181023_1_, Collection<TileEntity> p_181023_2_) private voidvertex(BufferBuilder p_228422_1_, double p_228422_2_, double p_228422_4_, double p_228422_6_, double p_228422_8_, int p_228422_10_, double p_228422_11_, float p_228422_13_, float p_228422_14_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resources.IFutureReloadListener
getNameMethods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MOON_LOCATION
-
SUN_LOCATION
-
CLOUDS_LOCATION
-
END_SKY_LOCATION
-
FORCEFIELD_LOCATION
-
RAIN_LOCATION
-
SNOW_LOCATION
-
DIRECTIONS
-
minecraft
-
textureManager
-
entityRenderDispatcher
-
renderBuffers
-
level
-
chunksToCompile
-
renderChunks
private final it.unimi.dsi.fastutil.objects.ObjectList<WorldRenderer.LocalRenderInformationContainer> renderChunks -
globalBlockEntities
-
viewArea
-
skyFormat
-
starBuffer
-
skyBuffer
-
darkBuffer
-
generateClouds
private boolean generateClouds -
cloudBuffer
-
frameTimes
-
ticks
private int ticks -
destroyingBlocks
-
destructionProgress
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<DestroyBlockProgress>> destructionProgress -
playingRecords
-
entityTarget
-
entityEffect
-
translucentTarget
-
itemEntityTarget
-
particlesTarget
-
weatherTarget
-
cloudsTarget
-
transparencyChain
-
lastCameraX
private double lastCameraX -
lastCameraY
private double lastCameraY -
lastCameraZ
private double lastCameraZ -
lastCameraChunkX
private int lastCameraChunkX -
lastCameraChunkY
private int lastCameraChunkY -
lastCameraChunkZ
private int lastCameraChunkZ -
prevCamX
private double prevCamX -
prevCamY
private double prevCamY -
prevCamZ
private double prevCamZ -
prevCamRotX
private double prevCamRotX -
prevCamRotY
private double prevCamRotY -
prevCloudX
private int prevCloudX -
prevCloudY
private int prevCloudY -
prevCloudZ
private int prevCloudZ -
prevCloudColor
-
prevCloudsType
-
chunkRenderDispatcher
-
format
-
lastViewDistance
private int lastViewDistance -
renderedEntities
private int renderedEntities -
culledEntities
private int culledEntities -
captureFrustum
private boolean captureFrustum -
capturedFrustum
-
frustumPoints
-
frustumPos
-
xTransparentOld
private double xTransparentOld -
yTransparentOld
private double yTransparentOld -
zTransparentOld
private double zTransparentOld -
needsUpdate
private boolean needsUpdate -
frameId
private int frameId -
rainSoundTime
private int rainSoundTime -
rainSizeX
private final float[] rainSizeX -
rainSizeZ
private final float[] rainSizeZ
-
-
Constructor Details
-
WorldRenderer
-
-
Method Details
-
renderSnowAndRain
private void renderSnowAndRain(LightTexture p_228438_1_, float p_228438_2_, double p_228438_3_, double p_228438_5_, double p_228438_7_) -
tickRain
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
onResourceManagerReload
- Specified by:
onResourceManagerReloadin interfaceIResourceManagerReloadListener
-
initOutline
public void initOutline() -
initTransparency
private void initTransparency() -
deinitTransparency
private void deinitTransparency() -
doEntityOutline
public void doEntityOutline() -
shouldShowEntityOutlines
protected boolean shouldShowEntityOutlines() -
createDarkSky
private void createDarkSky() -
createLightSky
private void createLightSky() -
drawSkyHemisphere
-
createStars
private void createStars() -
drawStars
-
setLevel
-
allChanged
public void allChanged() -
resetChunksToCompile
protected void resetChunksToCompile() -
resize
public void resize(int p_72720_1_, int p_72720_2_) -
getChunkStatistics
-
countRenderedChunks
protected int countRenderedChunks() -
getEntityStatistics
-
setupRender
private void setupRender(ActiveRenderInfo p_228437_1_, ClippingHelper p_228437_2_, boolean p_228437_3_, int p_228437_4_, boolean p_228437_5_) -
getRelativeFrom
@Nullable private ChunkRenderDispatcher.ChunkRender getRelativeFrom(BlockPos p_181562_1_, ChunkRenderDispatcher.ChunkRender p_181562_2_, Direction p_181562_3_) -
captureFrustum
private void captureFrustum(Matrix4f p_228419_1_, Matrix4f p_228419_2_, double p_228419_3_, double p_228419_5_, double p_228419_7_, ClippingHelper p_228419_9_) -
renderLevel
public void renderLevel(MatrixStack p_228426_1_, float p_228426_2_, long p_228426_3_, boolean p_228426_5_, ActiveRenderInfo p_228426_6_, GameRenderer p_228426_7_, LightTexture p_228426_8_, Matrix4f p_228426_9_) -
checkPoseStack
-
renderEntity
private void renderEntity(Entity p_228418_1_, double p_228418_2_, double p_228418_4_, double p_228418_6_, float p_228418_8_, MatrixStack p_228418_9_, IRenderTypeBuffer p_228418_10_) -
renderChunkLayer
private void renderChunkLayer(RenderType p_228441_1_, MatrixStack p_228441_2_, double p_228441_3_, double p_228441_5_, double p_228441_7_) -
renderDebug
-
addFrustumVertex
-
addFrustumQuad
private void addFrustumQuad(IVertexBuilder p_228434_1_, int p_228434_2_, int p_228434_3_, int p_228434_4_, int p_228434_5_, int p_228434_6_, int p_228434_7_, int p_228434_8_) -
tick
public void tick() -
removeProgress
-
renderEndSky
-
renderSky
-
renderClouds
public void renderClouds(MatrixStack p_228425_1_, float p_228425_2_, double p_228425_3_, double p_228425_5_, double p_228425_7_) -
buildClouds
private void buildClouds(BufferBuilder p_204600_1_, double p_204600_2_, double p_204600_4_, double p_204600_6_, Vector3d p_204600_8_) -
compileChunksUntil
private void compileChunksUntil(long p_174967_1_) -
renderWorldBounds
-
vertex
private void vertex(BufferBuilder p_228422_1_, double p_228422_2_, double p_228422_4_, double p_228422_6_, double p_228422_8_, int p_228422_10_, double p_228422_11_, float p_228422_13_, float p_228422_14_) -
renderHitOutline
private void renderHitOutline(MatrixStack p_228429_1_, IVertexBuilder p_228429_2_, Entity p_228429_3_, double p_228429_4_, double p_228429_6_, double p_228429_8_, BlockPos p_228429_10_, BlockState p_228429_11_) -
renderVoxelShape
public static void renderVoxelShape(MatrixStack p_228431_0_, IVertexBuilder p_228431_1_, VoxelShape p_228431_2_, double p_228431_3_, double p_228431_5_, double p_228431_7_, float p_228431_9_, float p_228431_10_, float p_228431_11_, float p_228431_12_) -
renderShape
private static void renderShape(MatrixStack p_228445_0_, IVertexBuilder p_228445_1_, VoxelShape p_228445_2_, double p_228445_3_, double p_228445_5_, double p_228445_7_, float p_228445_9_, float p_228445_10_, float p_228445_11_, float p_228445_12_) -
renderLineBox
public static void renderLineBox(MatrixStack p_228430_0_, IVertexBuilder p_228430_1_, AxisAlignedBB p_228430_2_, float p_228430_3_, float p_228430_4_, float p_228430_5_, float p_228430_6_) -
renderLineBox
public static void renderLineBox(MatrixStack p_228427_0_, IVertexBuilder p_228427_1_, double p_228427_2_, double p_228427_4_, double p_228427_6_, double p_228427_8_, double p_228427_10_, double p_228427_12_, float p_228427_14_, float p_228427_15_, float p_228427_16_, float p_228427_17_) -
renderLineBox
public static void renderLineBox(MatrixStack p_228428_0_, IVertexBuilder p_228428_1_, double p_228428_2_, double p_228428_4_, double p_228428_6_, double p_228428_8_, double p_228428_10_, double p_228428_12_, float p_228428_14_, float p_228428_15_, float p_228428_16_, float p_228428_17_, float p_228428_18_, float p_228428_19_, float p_228428_20_) -
addChainedFilledBoxVertices
public static void addChainedFilledBoxVertices(BufferBuilder p_189693_0_, 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 p_189693_13_, float p_189693_14_, float p_189693_15_, float p_189693_16_) -
blockChanged
public void blockChanged(IBlockReader p_184376_1_, BlockPos p_184376_2_, BlockState p_184376_3_, BlockState p_184376_4_, int p_184376_5_) -
setBlockDirty
-
setBlocksDirty
public void setBlocksDirty(int p_147585_1_, int p_147585_2_, int p_147585_3_, int p_147585_4_, int p_147585_5_, int p_147585_6_) -
setBlockDirty
-
setSectionDirtyWithNeighbors
public void setSectionDirtyWithNeighbors(int p_215321_1_, int p_215321_2_, int p_215321_3_) -
setSectionDirty
public void setSectionDirty(int p_215328_1_, int p_215328_2_, int p_215328_3_) -
setSectionDirty
private void setSectionDirty(int p_215319_1_, int p_215319_2_, int p_215319_3_, boolean p_215319_4_) -
playStreamingMusic
Deprecated. -
playRecord
public void playRecord(@Nullable SoundEvent p_184377_1_, BlockPos p_184377_2_, @Nullable MusicDiscItem musicDiscItem) -
notifyNearbyEntities
-
addParticle
public void addParticle(IParticleData p_195461_1_, boolean p_195461_2_, double p_195461_3_, double p_195461_5_, double p_195461_7_, double p_195461_9_, double p_195461_11_, double p_195461_13_) -
addParticle
public void addParticle(IParticleData p_195462_1_, boolean p_195462_2_, boolean p_195462_3_, double p_195462_4_, double p_195462_6_, double p_195462_8_, double p_195462_10_, double p_195462_12_, double p_195462_14_) -
addParticle
private <T extends IParticleData> void addParticle(T p_195467_1_, double p_195467_2_, double p_195467_4_, double p_195467_6_, double p_195467_8_, double p_195467_10_, double p_195467_12_) -
addParticleInternal
@Nullable private Particle addParticleInternal(IParticleData p_195471_1_, boolean p_195471_2_, double p_195471_3_, double p_195471_5_, double p_195471_7_, double p_195471_9_, double p_195471_11_, double p_195471_13_) -
addParticleInternal
@Nullable private Particle addParticleInternal(IParticleData p_195469_1_, boolean p_195469_2_, boolean p_195469_3_, double p_195469_4_, double p_195469_6_, double p_195469_8_, double p_195469_10_, double p_195469_12_, double p_195469_14_) -
calculateParticleLevel
-
clear
public void clear() -
globalLevelEvent
-
levelEvent
public void levelEvent(PlayerEntity p_180439_1_, int p_180439_2_, BlockPos p_180439_3_, int p_180439_4_) -
destroyBlockProgress
-
hasRenderedAllChunks
public boolean hasRenderedAllChunks() -
needsUpdate
public void needsUpdate() -
updateGlobalBlockEntities
public void updateGlobalBlockEntities(Collection<TileEntity> p_181023_1_, Collection<TileEntity> p_181023_2_) -
getLightColor
-
getLightColor
public static int getLightColor(IBlockDisplayReader p_228420_0_, BlockState p_228420_1_, BlockPos p_228420_2_) -
entityTarget
-
getTranslucentTarget
-
getItemEntityTarget
-
getParticlesTarget
-
getWeatherTarget
-
getCloudsTarget
-
getResourceType
- Specified by:
getResourceTypein interfaceIResourceManagerReloadListener
-