use of gregtech.api.gui.widgets.PhantomFluidWidget in project GregTech by GregTechCE.
the class SimpleFluidFilter method initUI.
@Override
public void initUI(Consumer<Widget> widgetGroup) {
for (int i = 0; i < 9; ++i) {
int index = i;
widgetGroup.accept((new PhantomFluidWidget(10 + 18 * (i % 3), 18 * (i / 3), 18, 18, () -> getFluidInSlot(index), (newFluid) -> setFluidInSlot(index, newFluid))).setBackgroundTexture(GuiTextures.SLOT));
}
}
Aggregations