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

@@ -10,11 +10,12 @@ import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import codechicken.lib.vec.BlockCoord;
import codechicken.lib.vec.Cuboid6;
import codechicken.multipart.IFaceRedstonePart;
import codechicken.multipart.IRandomUpdateTick;
import codechicken.multipart.IRedstonePart;
import codechicken.multipart.RedstoneInteractions;
import codechicken.multipart.TFacePart;
public class RedstoneTorchPart extends TorchPart implements IRedstonePart, IRandomUpdateTick
public class RedstoneTorchPart extends TorchPart implements IFaceRedstonePart, IRandomUpdateTick
{
public static BlockRedstoneTorch torchActive = (BlockRedstoneTorch) Block.torchRedstoneActive;
public static BlockRedstoneTorch torchIdle = (BlockRedstoneTorch) Block.torchRedstoneIdle;
@@ -231,4 +232,9 @@ public class RedstoneTorchPart extends TorchPart implements IRedstonePart, IRand
{
return true;
}
@Override
public int getFace() {
return metaSideMap[meta*7];
}
}