public interface IForgeRenderChunk
Modifier and Type | Method and Description |
---|---|
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). |
default ChunkRenderCache createRegionRenderCache(World world, BlockPos from, BlockPos to, int subtract)
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.RegionRenderCache