27 lines
1022 B
Java
27 lines
1022 B
Java
|
package net.minecraftforge.client.extensions;
|
||
|
|
||
|
import net.minecraft.util.math.BlockPos;
|
||
|
import net.minecraft.world.ChunkCache;
|
||
|
import net.minecraft.world.World;
|
||
|
|
||
|
public interface IForgeRenderChunk
|
||
|
{
|
||
|
/**
|
||
|
* Creates a new RegionRenderCache instance.<br>
|
||
|
* Extending classes can change the behavior of the cache, allowing to visually change
|
||
|
* blocks (schematics etc).
|
||
|
*
|
||
|
* @see RegionRenderCache
|
||
|
* @param world The world to cache.
|
||
|
* @param from The starting position of the chunk minus one on each axis.
|
||
|
* @param to The ending position of the chunk plus one on each axis.
|
||
|
* @param subtract Padding used internally by the RegionRenderCache constructor to make
|
||
|
* the cache a 20x20x20 cube, for a total of 8000 states in the cache.
|
||
|
* @return new RegionRenderCache instance
|
||
|
*/
|
||
|
default ChunkCache createRegionRenderCache(World world, BlockPos from, BlockPos to, int subtract)
|
||
|
{
|
||
|
return new ChunkCache(world, from, to, subtract);
|
||
|
}
|
||
|
}
|