Fixed forge rendering pipeline and shape based light occulsion. (#6178)

This commit is contained in:
Wyn Price authored and LexManos committed 2019-10-22 15:29:27 -07:00
1 parent ebf489be8c
commit 6422310453
3 files changed
+15 -1

No files matched your search

@@ -136,6 +136,7 @@ public interface IForgeBlock
return false;
}
//TODO: remove in 1.15
/**
* Check if the face of a block should block rendering.
*
@@ -147,7 +148,9 @@ public interface IForgeBlock
* @param pos Block position in world
* @param face The side to check
* @return True if the block is opaque on the specified side.
* @deprecated This is no longer used for rendering logic.
*/
@Deprecated
default boolean doesSideBlockRendering(BlockState state, IEnviromentBlockReader world, BlockPos pos, Direction face)
{
return state.isOpaqueCube(world, pos);
@@ -102,6 +102,7 @@ public interface IForgeBlockState
return getBlockState().getBlock().isLadder(getBlockState(), world, pos, entity);
}
//TODO: remove in 1.15
/**
* Check if the face of a block should block rendering.
*
@@ -112,7 +113,9 @@ public interface IForgeBlockState
* @param pos Block position in world
* @param face The side to check
* @return True if the block is opaque on the specified side.
* @deprecated This is no longer used for rendering logic.
*/
@Deprecated
default boolean doesSideBlockRendering(IEnviromentBlockReader world, BlockPos pos, Direction face)
{
return getBlockState().getBlock().doesSideBlockRendering(getBlockState(), world, pos, face);