Add a recipe for the fluid filter

This commit is contained in:
Nicholas Ignoffo 2018-04-21 16:53:19 -07:00
parent ddf07acf70
commit afcf1a1822
2 changed files with 27 additions and 4 deletions

View file

@ -52,7 +52,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
@Override
@SideOnly(Side.CLIENT)
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);
}
@ -89,8 +89,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
@Override
public IFluidFilter getOutputFluidFilter(ItemStack filterStack, TileEntity tile, IFluidHandler handler) {
IFluidFilter testFilter = new RoutingFluidFilter();
IFluidFilter testFilter;
switch (filterStack.getMetadata()) {
case 0:
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.
for (int i = 0; i < inv.getSizeInventory(); i++) {
ItemStack stack = inv.getStackInSlot(i);
if (stack == null) {
if (stack.isEmpty()) {
continue;
}

View file

@ -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"
}
}
}