Mouse.getDWheel();
List<Fluid> selectorFluids = new ArrayList<Fluid>();
for (SpecialFluidStack stack : oldFluids)
{
fluidWidgets.add(new WidgetFluidSelector(this, stack));
selectorFluids.add(stack.getFluidStack().getFluid());
}
for (Fluid fluid : oldCraftables)
if (!selectorFluids.contains(fluid))
fluidWidgets.add(new WidgetFluidRequest(this, fluid));
for (AbstractFluidWidget widget : fluidWidgets)
{
if (widget instanceof WidgetFluidSelector && widget.getFluid() == oldSelected)
{
WidgetFluidSelector selector = (WidgetFluidSelector) widget;
selector.setSelected(true);
updateSelected(selector);
}
}
Collections.sort(fluidWidgets, new FluidWidgetComparator());
searchbar = new GuiTextField(fontRenderer, guiLeft + 81, guiTop - 12, 88, 10)