Interface IForgeRenderChunk

    • Method Detail

      • createRegionRenderCache

        default ChunkRenderCache createRegionRenderCache​(World world,
                                                         BlockPos from,
                                                         BlockPos to,
                                                         int subtract)
        Creates a new RegionRenderCache instance.
        Extending classes can change the behavior of the cache, allowing to visually change blocks (schematics etc).
        Parameters:
        world - The world to cache.
        from - The starting position of the chunk minus one on each axis.
        to - The ending position of the chunk plus one on each axis.
        subtract - Padding used internally by the RegionRenderCache constructor to make the cache a 20x20x20 cube, for a total of 8000 states in the cache.
        Returns:
        new RegionRenderCache instance
        See Also:
        RegionRenderCache