Added Liquid fill function.
This commit is contained in:
parent
6956322fd8
commit
2f0f8d9081
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue