Add a recipe for the fluid filter
This commit is contained in:
parent
ddf07acf70
commit
afcf1a1822
|
@ -52,7 +52,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack stack, World world, List<String> tooltip, ITooltipFlag flag) {
|
public void addInformation(ItemStack stack, World world, List<String> tooltip, ITooltipFlag flag) {
|
||||||
tooltip.add(TextHelper.localize("tooltip.BloodMagic.fluidFilter." + names[stack.getItemDamage()]));
|
tooltip.add(TextHelper.localize("tooltip.bloodmagic.fluidFilter." + names[stack.getItemDamage()]));
|
||||||
|
|
||||||
super.addInformation(stack, world, tooltip, flag);
|
super.addInformation(stack, world, tooltip, flag);
|
||||||
}
|
}
|
||||||
|
@ -89,8 +89,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IFluidFilter getOutputFluidFilter(ItemStack filterStack, TileEntity tile, IFluidHandler handler) {
|
public IFluidFilter getOutputFluidFilter(ItemStack filterStack, TileEntity tile, IFluidHandler handler) {
|
||||||
IFluidFilter testFilter = new RoutingFluidFilter();
|
IFluidFilter testFilter;
|
||||||
|
|
||||||
switch (filterStack.getMetadata()) {
|
switch (filterStack.getMetadata()) {
|
||||||
case 0:
|
case 0:
|
||||||
testFilter = new RoutingFluidFilter();
|
testFilter = new RoutingFluidFilter();
|
||||||
|
@ -104,7 +103,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
||||||
ItemInventory inv = new ItemInventory(filterStack, 9, ""); //TODO: Change to grab the filter from the Item later.
|
ItemInventory inv = new ItemInventory(filterStack, 9, ""); //TODO: Change to grab the filter from the Item later.
|
||||||
for (int i = 0; i < inv.getSizeInventory(); i++) {
|
for (int i = 0; i < inv.getSizeInventory(); i++) {
|
||||||
ItemStack stack = inv.getStackInSlot(i);
|
ItemStack stack = inv.getStackInSlot(i);
|
||||||
if (stack == null) {
|
if (stack.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"result": {
|
||||||
|
"item": "bloodmagic:base_fluid_filter",
|
||||||
|
"data": 0
|
||||||
|
},
|
||||||
|
"pattern": [
|
||||||
|
"sgs",
|
||||||
|
"gfg",
|
||||||
|
"sgs"
|
||||||
|
],
|
||||||
|
"type": "forge:ore_shaped",
|
||||||
|
"key": {
|
||||||
|
"s": {
|
||||||
|
"item": "#STICKWOOD"
|
||||||
|
},
|
||||||
|
"f": {
|
||||||
|
"item": "bloodmagic:component",
|
||||||
|
"data": 10
|
||||||
|
},
|
||||||
|
"g": {
|
||||||
|
"item": "minecraft:bucket"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue