Search in sources :

Example 6 with LabelWidget

use of gregtech.api.gui.widgets.LabelWidget in project GregTech by GregTechCE.

the class FluidFilterContainer method initUI.

public void initUI(int y, Consumer<Widget> widgetGroup) {
    widgetGroup.accept(new LabelWidget(10, y, "cover.pump.fluid_filter.title"));
    widgetGroup.accept(new SlotWidget(filterInventory, 0, 10, y + 15).setBackgroundTexture(GuiTextures.SLOT, GuiTextures.FILTER_SLOT_OVERLAY));
    this.filterWrapper.initUI(y + 15, widgetGroup);
}
Also used : SlotWidget(gregtech.api.gui.widgets.SlotWidget) LabelWidget(gregtech.api.gui.widgets.LabelWidget)

Aggregations

LabelWidget (gregtech.api.gui.widgets.LabelWidget)6 ModularUI (gregtech.api.gui.ModularUI)4 CycleButtonWidget (gregtech.api.gui.widgets.CycleButtonWidget)3 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)3 CuboidRayTraceResult (codechicken.lib.raytracer.CuboidRayTraceResult)2 CCRenderState (codechicken.lib.render.CCRenderState)2 IVertexOperation (codechicken.lib.render.pipeline.IVertexOperation)2 Cuboid6 (codechicken.lib.vec.Cuboid6)2 Matrix4 (codechicken.lib.vec.Matrix4)2 CoverBehavior (gregtech.api.cover.CoverBehavior)2 CoverWithUI (gregtech.api.cover.CoverWithUI)2 ICoverable (gregtech.api.cover.ICoverable)2 GuiTextures (gregtech.api.gui.GuiTextures)2 SlotWidget (gregtech.api.gui.widgets.SlotWidget)2 WidgetGroup (gregtech.api.gui.widgets.WidgetGroup)2 SimpleOverlayRenderer (gregtech.api.render.SimpleOverlayRenderer)2 GTUtility (gregtech.api.util.GTUtility)2 EntityPlayer (net.minecraft.entity.player.EntityPlayer)2 EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)2 ItemStack (net.minecraft.item.ItemStack)2