Added Liquid fill function.

This commit is contained in:
CovertJaguar 2012-07-10 03:05:30 -07:00
parent 6956322fd8
commit 2f0f8d9081

View file

@ -66,6 +66,15 @@ public class BuildCraftAPI {
return null;
}
public static ItemStack fillLiquidContainer(int liquidId, ItemStack emptyContainer){
for(LiquidData data : liquids) {
if(data.liquidId == liquidId && data.container.isItemEqual(emptyContainer)) {
return data.filled.copy();
}
}
return null;
}
public static boolean isLiquid(int blockId) {
if (blockId == 0) {
return false;