Finished work on ISided nature of the alchemy table
This commit is contained in:
parent
a03bc4d9a9
commit
f9fc33d1ee
|
@ -112,7 +112,15 @@ public class TileAlchemyTable extends TileInventory implements ISidedInventory,
|
||||||
@Override
|
@Override
|
||||||
public int[] getSlotsForFace(EnumFacing side)
|
public int[] getSlotsForFace(EnumFacing side)
|
||||||
{
|
{
|
||||||
return new int[0];
|
switch (side)
|
||||||
|
{
|
||||||
|
case DOWN:
|
||||||
|
return new int[] { outputSlot };
|
||||||
|
case UP:
|
||||||
|
return new int[] { orbSlot, toolSlot };
|
||||||
|
default:
|
||||||
|
return new int[] { 0, 1, 2, 3, 4, 5 };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -122,10 +130,21 @@ public class TileAlchemyTable extends TileInventory implements ISidedInventory,
|
||||||
{
|
{
|
||||||
case DOWN:
|
case DOWN:
|
||||||
return index != outputSlot && index != orbSlot && index != toolSlot;
|
return index != outputSlot && index != orbSlot && index != toolSlot;
|
||||||
|
case UP:
|
||||||
|
if (index == orbSlot && stack != null && stack.getItem() instanceof IBloodOrb)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
} else if (index == toolSlot)
|
||||||
|
{
|
||||||
|
return true; //TODO:
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -135,18 +154,19 @@ public class TileAlchemyTable extends TileInventory implements ISidedInventory,
|
||||||
{
|
{
|
||||||
case DOWN:
|
case DOWN:
|
||||||
return index == outputSlot;
|
return index == outputSlot;
|
||||||
// case EAST:
|
case UP:
|
||||||
// break;
|
if (index == orbSlot && stack != null && stack.getItem() instanceof IBloodOrb)
|
||||||
// case NORTH:
|
{
|
||||||
// break;
|
return true;
|
||||||
// case SOUTH:
|
} else if (index == toolSlot)
|
||||||
// break;
|
{
|
||||||
// case UP:
|
return true; //TODO:
|
||||||
// break;
|
} else
|
||||||
// case WEST:
|
{
|
||||||
// break;
|
return true;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue