Facades now render the correct texture on each side.
This commit is contained in:
@@ -108,6 +108,16 @@ public class RenderBlocksWorkaround extends RenderBlocks
|
|||||||
rXPos = rXNeg = rYPos = rYNeg = rZPos = rZNeg = ico;
|
rXPos = rXNeg = rYPos = rYNeg = rZPos = rZNeg = ico;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTexture(IIcon rYNeg, IIcon rYPos, IIcon rZNeg, IIcon rZPos, IIcon rXNeg, IIcon rXPos)
|
||||||
|
{
|
||||||
|
this.rXPos = rXPos;
|
||||||
|
this.rXNeg = rXNeg;
|
||||||
|
this.rYPos = rYPos;
|
||||||
|
this.rYNeg = rYNeg;
|
||||||
|
this.rZPos = rZPos;
|
||||||
|
this.rZNeg = rZNeg;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean renderStandardBlockNoCalculations(Block b, int x, int y, int z)
|
public boolean renderStandardBlockNoCalculations(Block b, int x, int y, int z)
|
||||||
{
|
{
|
||||||
Tessellator.instance.setBrightness( bXPos );
|
Tessellator.instance.setBrightness( bXPos );
|
||||||
|
|||||||
+13
-2
@@ -153,11 +153,22 @@ public class FacadePart implements IFacadePart
|
|||||||
rbw.calculations = false;
|
rbw.calculations = false;
|
||||||
rbw.faces = EnumSet.allOf( ForgeDirection.class );
|
rbw.faces = EnumSet.allOf( ForgeDirection.class );
|
||||||
|
|
||||||
((RenderBlocksWorkaround) renderer).setTexture( blk.getIcon( side.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) );
|
((RenderBlocksWorkaround) renderer).setTexture(
|
||||||
|
blk.getIcon( ForgeDirection.DOWN.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.UP.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.NORTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.SOUTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.WEST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.EAST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
instance.setTexture( blk.getIcon( side.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) );
|
instance.setTexture( blk.getIcon( ForgeDirection.DOWN.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.UP.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.NORTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.SOUTH.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.WEST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ),
|
||||||
|
blk.getIcon( ForgeDirection.EAST.ordinal(), ib.getMetadata( randomItem.getItemDamage() ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( busBounds == null )
|
if ( busBounds == null )
|
||||||
|
|||||||
Reference in New Issue
Block a user