Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SideOnly(Side.CLIENT)
- public Icon getBlockTexture(IBlockAccess blockaccess, int x, int y, int z, int side)
- {
- if(blockaccess.getBlockMetadata(x, y, z) == 2)
- {
- TileEntity te = blockaccess.getBlockTileEntity(x, y, z);
- byte direction = ((TileEntityTutorial2)te).getDirection();
- return side == 1 ? Icon3[0] : (side == 0 ? Icon3[1] : (direction == 2 && side == 2 ? Icon3[2] : (direction == 3 && side == 5 ? Icon3[2] : (direction == 0 && side == 3 ? Icon3[2] : (direction == 1 && side == 4 ? Icon3[2] : Icon3[3])))));
- }
- else
- {
- return this.getIcon(side, blockaccess.getBlockMetadata(x, y, z));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement