ForgePatch/src/main/java/net/minecraftforge/client/extensions/IForgeRenderChunk.java

27 lines
1022 B
Java
Raw Normal View History

2018-12-21 22:45:35 +00:00
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);
}
}