Class RecipeToast
java.lang.Object
net.minecraft.client.gui.components.toasts.RecipeToast
- All Implemented Interfaces:
Toast
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocation
private boolean
private static final Component
private static final long
private long
private final List
<RecipeHolder<?>> private static final Component
Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast
NO_TOKEN, SLOT_HEIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addItem
(RecipeHolder<?> pRecipe) static void
addOrUpdate
(ToastComponent pToastComponent, RecipeHolder<?> pRecipe) render
(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible)
-
Field Details
-
BACKGROUND_SPRITE
-
DISPLAY_TIME
private static final long DISPLAY_TIME- See Also:
-
TITLE_TEXT
-
DESCRIPTION_TEXT
-
recipes
-
lastChanged
private long lastChanged -
changed
private boolean changed
-
-
Constructor Details
-
RecipeToast
-
-
Method Details
-
render
public Toast.Visibility render(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) -
addItem
-
addOrUpdate
-