mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-28 07:56:11 +00:00
Modified partChange event to take a parameter of the part that was changed and only send the event to other parts.
Update CCL dep
This commit is contained in:
1 parent
2291c3dd09
commit
37a3d89382
14 files changed
+65
-24
No files matched your search
@@ -4,9 +4,10 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
import codechicken.lib.vec.Vector3;
|
||||
import codechicken.multipart.TFacePart;
|
||||
import codechicken.multipart.TileMultipart;
|
||||
|
||||
public abstract class McSidedMetaPart extends McMetaPart
|
||||
public abstract class McSidedMetaPart extends McMetaPart implements TFacePart
|
||||
{
|
||||
public McSidedMetaPart()
|
||||
{
|
||||
@@ -47,4 +48,22 @@ public abstract class McSidedMetaPart extends McMetaPart
|
||||
tile().remPart(this);
|
||||
TileMultipart.dropItem(new ItemStack(getBlock()), world(), Vector3.fromTileEntityCenter(getTile()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSlotMask()
|
||||
{
|
||||
return 1<<sideForMeta(meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean solid(int side)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int redstoneConductionMap()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user