#1232 Painted Glowstone now has connected textures with Chisel

Update release notes
This commit is contained in:
tterrag1098 committed 2014-11-16 09:28:49 -05:00
1 parent 74099a4788
commit 00a8cb8949
2 files changed
+25 -1

No files matched your search

+2
View File
@@ -3,8 +3,10 @@ Version 2.2.1
------------------------------------------------------
Changes
- #1223 Various small GUI- and NEI-related improvements and tweaks (Tonius)
- #1232 Painted Glowstone now implements IFacade and will have connected textures with chisel
Bugs
- #1226 Redstone color not showing on MFR machines / BR ports
------------------------------------------------------
Version 2.2.0
@@ -1,5 +1,7 @@
package crazypants.enderio.machine.painter;
import info.jbcs.minecraft.chisel.api.IFacade;
import java.util.Random;
import net.minecraft.block.Block;
@@ -32,7 +34,7 @@ import crazypants.enderio.machine.MachineRecipeRegistry;
import crazypants.util.Lang;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
public class BlockPaintedGlowstone extends Block implements ITileEntityProvider, IPaintedBlock {
public class BlockPaintedGlowstone extends Block implements ITileEntityProvider, IPaintedBlock, IFacade {
public static int renderId = -1;
@@ -269,4 +271,24 @@ public class BlockPaintedGlowstone extends Block implements ITileEntityProvider,
}
}
}
@Override
public int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side) {
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof TileEntityPaintedBlock) {
TileEntityPaintedBlock tef = (TileEntityPaintedBlock) te;
return tef.getBlockMetadata();
}
return 0;
}
@Override
public Block getFacade(IBlockAccess world, int x, int y, int z, int side) {
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof TileEntityPaintedBlock) {
TileEntityPaintedBlock tef = (TileEntityPaintedBlock) te;
return tef.getSourceBlock();
}
return this;
}
}