mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
RenderBlocksCTM will now respect the render bounds (read below)
This behavior allows for certain renderers to no longer be needed (carpet floor) and for some rendering to be possible (CTM slabs). A single version of marble slab has been implemented with CTM as an example, we will move over the rest of the textures once this is finalized.
This commit is contained in:
1 parent
9b4fc25600
commit
8abc50634b
17 files changed
+258
-105
No files matched your search
@@ -5,8 +5,9 @@ import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public interface ISubmapManager {
|
||||
public interface ISubmapManager<T extends RenderBlocks> {
|
||||
|
||||
/**
|
||||
* Gets the icon for item rendering, based on side and item metadata.
|
||||
@@ -36,5 +37,9 @@ public interface ISubmapManager {
|
||||
*/
|
||||
void registerIcons(String modName, Block block, IIconRegister register);
|
||||
|
||||
RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world);
|
||||
T createRenderContext(RenderBlocks rendererOld, IBlockAccess world);
|
||||
|
||||
void preRenderSide(T renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side);
|
||||
|
||||
void postRenderSide(T renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side);
|
||||
}
|
||||
Reference in new issue
Block a user