Class WorldRenderer

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • FORCEFIELD_LOCATION

        private static final ResourceLocation FORCEFIELD_LOCATION
      • DIRECTIONS

        public static final Direction[] DIRECTIONS
      • minecraft

        private final Minecraft minecraft
      • globalBlockEntities

        private final java.util.Set<TileEntity> globalBlockEntities
      • generateClouds

        private boolean generateClouds
      • ticks

        private int ticks
      • destroyingBlocks

        private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<DestroyBlockProgress> destroyingBlocks
      • destructionProgress

        private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<java.util.SortedSet<DestroyBlockProgress>> destructionProgress
      • playingRecords

        private final java.util.Map<BlockPos,​ISound> playingRecords
      • entityTarget

        @Nullable
        private Framebuffer entityTarget
      • entityEffect

        @Nullable
        private ShaderGroup entityEffect
      • translucentTarget

        @Nullable
        private Framebuffer translucentTarget
      • itemEntityTarget

        @Nullable
        private Framebuffer itemEntityTarget
      • particlesTarget

        @Nullable
        private Framebuffer particlesTarget
      • weatherTarget

        @Nullable
        private Framebuffer weatherTarget
      • cloudsTarget

        @Nullable
        private Framebuffer cloudsTarget
      • transparencyChain

        @Nullable
        private ShaderGroup 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

        private Vector3d prevCloudColor
      • lastViewDistance

        private int lastViewDistance
      • renderedEntities

        private int renderedEntities
      • culledEntities

        private int culledEntities
      • captureFrustum

        private boolean captureFrustum
      • frustumPoints

        private final Vector4f[] frustumPoints
      • frustumPos

        private final Tuple3d 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
    • Method Detail

      • renderSnowAndRain

        private void renderSnowAndRain​(LightTexture p_228438_1_,
                                       float p_228438_2_,
                                       double p_228438_3_,
                                       double p_228438_5_,
                                       double p_228438_7_)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • 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

        private void drawSkyHemisphere​(BufferBuilder p_174968_1_,
                                       float p_174968_2_,
                                       boolean p_174968_3_)
      • createStars

        private void createStars()
      • drawStars

        private void drawStars​(BufferBuilder p_180444_1_)
      • setLevel

        public void setLevel​(@Nullable
                             ClientWorld p_72732_1_)
      • allChanged

        public void allChanged()
      • resetChunksToCompile

        protected void resetChunksToCompile()
      • resize

        public void resize​(int p_72720_1_,
                           int p_72720_2_)
      • getChunkStatistics

        public java.lang.String getChunkStatistics()
      • countRenderedChunks

        protected int countRenderedChunks()
      • getEntityStatistics

        public java.lang.String 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_)
      • 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_)
      • checkPoseStack

        private void checkPoseStack​(MatrixStack p_228423_1_)
      • 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_)
      • addFrustumVertex

        private void addFrustumVertex​(IVertexBuilder p_228433_1_,
                                      int p_228433_2_)
      • 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()
      • renderEndSky

        private void renderEndSky​(MatrixStack p_228444_1_)
      • renderSky

        public void renderSky​(MatrixStack p_228424_1_,
                              float p_228424_2_)
      • 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

        private void renderWorldBounds​(ActiveRenderInfo p_228447_1_)
      • 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_)
      • 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_)
      • setBlockDirty

        private void setBlockDirty​(BlockPos p_215324_1_,
                                   boolean p_215324_2_)
      • 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_)
      • 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
        public void playStreamingMusic​(@Nullable
                                       SoundEvent p_184377_1_,
                                       BlockPos p_184377_2_)
        Deprecated.
      • notifyNearbyEntities

        private void notifyNearbyEntities​(World p_193054_1_,
                                          BlockPos p_193054_2_,
                                          boolean p_193054_3_)
      • 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

        private ParticleStatus calculateParticleLevel​(boolean p_215327_1_)
      • clear

        public void clear()
      • globalLevelEvent

        public void globalLevelEvent​(int p_180440_1_,
                                     BlockPos p_180440_2_,
                                     int p_180440_3_)
      • levelEvent

        public void levelEvent​(PlayerEntity p_180439_1_,
                               int p_180439_2_,
                               BlockPos p_180439_3_,
                               int p_180439_4_)
      • destroyBlockProgress

        public void destroyBlockProgress​(int p_180441_1_,
                                         BlockPos p_180441_2_,
                                         int p_180441_3_)
      • hasRenderedAllChunks

        public boolean hasRenderedAllChunks()
      • needsUpdate

        public void needsUpdate()
      • updateGlobalBlockEntities

        public void updateGlobalBlockEntities​(java.util.Collection<TileEntity> p_181023_1_,
                                              java.util.Collection<TileEntity> p_181023_2_)
      • entityTarget

        @Nullable
        public Framebuffer entityTarget()
      • getTranslucentTarget

        @Nullable
        public Framebuffer getTranslucentTarget()
      • getItemEntityTarget

        @Nullable
        public Framebuffer getItemEntityTarget()
      • getParticlesTarget

        @Nullable
        public Framebuffer getParticlesTarget()
      • getWeatherTarget

        @Nullable
        public Framebuffer getWeatherTarget()
      • getCloudsTarget

        @Nullable
        public Framebuffer getCloudsTarget()