Added greater control over partChanged events

Made vanilla rs parts instances of IFaceRedstonePart
update CCL
This commit is contained in:
Chicken Bones committed 2013-08-22 01:08:29 +10:00
1 parent 4a810abe3f
commit 2e60e3f54f
5 files changed
+53 -11

No files matched your search

@@ -11,9 +11,9 @@ import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import codechicken.lib.vec.BlockCoord;
import codechicken.lib.vec.Cuboid6;
import codechicken.multipart.IRedstonePart;
import codechicken.multipart.IFaceRedstonePart;
public class LeverPart extends McSidedMetaPart implements IRedstonePart
public class LeverPart extends McSidedMetaPart implements IFaceRedstonePart
{
public static BlockLever lever = (BlockLever) Block.lever;
public static int[] metaSideMap = new int[]{1, 4, 5, 2, 3, 0, 0, 1};
@@ -149,4 +149,9 @@ public class LeverPart extends McSidedMetaPart implements IRedstonePart
{
return 0x10;
}
@Override
public int getFace() {
return metaSideMap[meta&7];
}
}