@Environment(value=CLIENT) public class RecipeBookGhostSlots extends Object
Modifier and Type | Class and Description |
---|---|
class |
RecipeBookGhostSlots.GhostInputSlot |
Modifier and Type | Field and Description |
---|---|
private Recipe<?> |
recipe |
private List<RecipeBookGhostSlots.GhostInputSlot> |
slots |
private float |
time |
Constructor and Description |
---|
RecipeBookGhostSlots() |
Modifier and Type | Method and Description |
---|---|
void |
addSlot(Ingredient ingredient,
int x,
int y) |
void |
draw(MinecraftClient client,
int x,
int y,
boolean isBig,
float lastFrameDuration) |
Recipe<?> |
getRecipe() |
RecipeBookGhostSlots.GhostInputSlot |
getSlot(int index) |
int |
getSlotCount() |
void |
reset() |
void |
setRecipe(Recipe<?> recipe) |
private Recipe<?> recipe
private final List<RecipeBookGhostSlots.GhostInputSlot> slots
private float time
public void reset()
public void addSlot(Ingredient ingredient, int x, int y)
public RecipeBookGhostSlots.GhostInputSlot getSlot(int index)
public int getSlotCount()
public void setRecipe(Recipe<?> recipe)
public void draw(MinecraftClient client, int x, int y, boolean isBig, float lastFrameDuration)