public class GuiFluidStackGroup extends GuiIngredientGroup<net.minecraftforge.fluids.FluidStack> implements IGuiFluidStackGroup
| Constructor and Description |
|---|
GuiFluidStackGroup(Focus<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, getGuiIngredients, getHoveredIngredient, getIngredientModId, getOutputSlots, init, init, set, set, set, setBackground, setOverrideDisplayFocusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTooltipCallback, setgetGuiIngredients, init, init, set, set, setBackground, setOverrideDisplayFocuspublic GuiFluidStackGroup(@Nullable
Focus<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)
IGuiFluidStackGroupinit in interface IGuiFluidStackGroupslotIndex - 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.