public interface IGuiFluidStackGroup extends IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>
FluidStack in a gui.
If multiple FluidStacks are set, they will be displayed in rotation.
Get an instance from IRecipeLayout.getFluidStacks().| Modifier and Type | Method and Description |
|---|---|
void |
addTooltipCallback(ITooltipCallback<net.minecraftforge.fluids.FluidStack> tooltipCallback)
Add a callback to alter the tooltip for these ingredients.
|
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.
|
void |
set(int slotIndex,
net.minecraftforge.fluids.FluidStack fluidStack)
Set the ingredient at slotIndex to a specific ingredient.
|
getGuiIngredients, init, init, set, set, setBackground, setOverrideDisplayFocusvoid init(int slotIndex,
boolean input,
int xPosition,
int yPosition,
int width,
int height,
int capacityMb,
boolean showCapacity,
@Nullable
IDrawable overlay)
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.void set(int slotIndex,
@Nullable
net.minecraftforge.fluids.FluidStack fluidStack)
IGuiIngredientGroupset in interface IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>void addTooltipCallback(ITooltipCallback<net.minecraftforge.fluids.FluidStack> tooltipCallback)
IGuiIngredientGroupaddTooltipCallback in interface IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>