public class GuiFluidStackGroup extends GuiIngredientGroup<net.minecraftforge.fluids.FluidStack> implements IGuiFluidStackGroup
Constructor and Description |
---|
GuiFluidStackGroup(IFocus<net.minecraftforge.fluids.FluidStack> focus,
int cycleOffset) |
Modifier and Type | Method and Description |
---|---|
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition,
int width,
int height,
int capacityMb,
boolean showCapacity,
IDrawable overlay)
Initialize the fluid at slotIndex.
|
addTooltipCallback, draw, getFocus, getGuiIngredients, getIngredientUnderMouse, init, set, set, set, set, setOverrideDisplayFocus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTooltipCallback, set, set
getFocus, getGuiIngredients, init, set, set, setOverrideDisplayFocus
public GuiFluidStackGroup(IFocus<net.minecraftforge.fluids.FluidStack> focus, int cycleOffset)
public void init(int slotIndex, boolean input, int xPosition, int yPosition, int width, int height, int capacityMb, boolean showCapacity, @Nullable IDrawable overlay)
IGuiFluidStackGroup
init
in interface IGuiFluidStackGroup
slotIndex
- the slot index of this fluidinput
- whether this slot is an inputxPosition
- x position relative to the recipe backgroundyPosition
- y position relative to the recipe backgroundwidth
- width of this fluidheight
- height of this fluidcapacityMb
- maximum amount of fluid that this "tank" can hold in milli-bucketsshowCapacity
- show the capacity in the tooltipoverlay
- optional overlay to display over the tank.
Typically the overlay is fluid level lines, but it could also be a mask to shape the tank.