7ba2893635
Completely new system to render facades. It will now support many more cases compared to the old system. For example connected textures are now possible, as well as multilayer models and so on.
35 lines
610 B
Java
35 lines
610 B
Java
|
|
package appeng.client.render.cablebus;
|
|
|
|
|
|
import net.minecraft.block.state.IBlockState;
|
|
|
|
|
|
/**
|
|
* Captures the state required to render a facade properly.
|
|
*/
|
|
public class FacadeRenderState
|
|
{
|
|
|
|
// The block state to use for rendering this facade
|
|
private final IBlockState sourceBlock;
|
|
|
|
private final boolean transparent;
|
|
|
|
public FacadeRenderState( IBlockState sourceBlock, boolean transparent )
|
|
{
|
|
this.sourceBlock = sourceBlock;
|
|
this.transparent = transparent;
|
|
}
|
|
|
|
public IBlockState getSourceBlock()
|
|
{
|
|
return this.sourceBlock;
|
|
}
|
|
|
|
public boolean isTransparent()
|
|
{
|
|
return this.transparent;
|
|
}
|
|
}
|