/
IGuiFluidStackGroup.java
55 lines (47 loc) · 2.29 KB
/
IGuiFluidStackGroup.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package mezz.jei.api.gui;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Collection;
import net.minecraftforge.fluids.FluidStack;
/**
* IGuiFluidStackGroup displays FluidStacks in a gui.
*
* If multiple FluidStacks are set, they will be displayed in rotation.
*/
public interface IGuiFluidStackGroup extends IGuiIngredientGroup<FluidStack> {
/**
* Sets up the fluid at slotIndex.
*
* @param slotIndex the slot index of this fluid
* @param input whether this slot is an input
* @param xPosition x position relative to the recipe background
* @param yPosition y position relative to the recipe background
* @param width width of this fluid
* @param height height of this fluid
* @param capacityMb maximum amount of fluid that this "tank" can hold in milli-buckets
* @param overlay 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.
* @deprecated since JEI 1.13.3. Use the version that has showCapacity
*/
@Deprecated
void init(int slotIndex, boolean input, int xPosition, int yPosition, int width, int height, int capacityMb, @Nullable IDrawable overlay);
/**
* Sets up the fluid at slotIndex.
*
* @param slotIndex the slot index of this fluid
* @param input whether this slot is an input
* @param xPosition x position relative to the recipe background
* @param yPosition y position relative to the recipe background
* @param width width of this fluid
* @param height height of this fluid
* @param capacityMb maximum amount of fluid that this "tank" can hold in milli-buckets
* @param showCapacity show the capacity in the tooltip
* @param overlay 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 init(int slotIndex, boolean input, int xPosition, int yPosition, int width, int height, int capacityMb, boolean showCapacity, @Nullable IDrawable overlay);
@Override
void set(int slotIndex, @Nonnull Collection<FluidStack> fluidStacks);
@Override
void set(int slotIndex, @Nonnull FluidStack fluidStack);
}