public interface IGuiFluidStackGroup extends IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltipCallback(ITooltipCallback<net.minecraftforge.fluids.FluidStack> tooltipCallback) |
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition,
int width,
int height,
int capacityMb,
boolean showCapacity,
IDrawable overlay)
Sets up the fluid at slotIndex.
|
void |
set(int slotIndex,
java.util.Collection<net.minecraftforge.fluids.FluidStack> fluidStacks) |
void |
set(int slotIndex,
net.minecraftforge.fluids.FluidStack fluidStack) |
void 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,
@Nonnull
java.util.Collection<net.minecraftforge.fluids.FluidStack> fluidStacks)
set in interface IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>void set(int slotIndex,
@Nonnull
net.minecraftforge.fluids.FluidStack fluidStack)
set in interface IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>void addTooltipCallback(@Nonnull
ITooltipCallback<net.minecraftforge.fluids.FluidStack> tooltipCallback)
addTooltipCallback in interface IGuiIngredientGroup<net.minecraftforge.fluids.FluidStack>