mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 12:19:58 +00:00
Added greater control over partChanged events
Made vanilla rs parts instances of IFaceRedstonePart update CCL
This commit is contained in:
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];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user