public class GuiNotification
extends net.minecraft.client.gui.Gui
| Constructor and Description |
|---|
GuiNotification(net.minecraft.client.Minecraft minecraft)
Constructs a new instance of GuiNotification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
renderNotification()
Renders the notification onto the screen.
|
void |
stopNotification()
Ends the notification, and resets all of the data.
|
void |
updateNotification(java.lang.String title,
java.lang.String description)
Updates the notification with a new title and description.
|
void |
updateNotificationIcon(net.minecraft.item.ItemStack stack)
Updates the icon for the notification to an ItemStack.
|
void |
updateNotificationIcon(net.minecraft.util.ResourceLocation iconLocation)
Updates the icon for the notification to a ResourceLocation.
|
public GuiNotification(net.minecraft.client.Minecraft minecraft)
minecraft: - The instance of Minecraft.public void updateNotification(java.lang.String title,
java.lang.String description)
title: - The title for the notification.description: - The description for the notification.public void updateNotificationIcon(net.minecraft.util.ResourceLocation iconLocation)
iconLocation: - The ResourceLocation to load for the effect.public void updateNotificationIcon(net.minecraft.item.ItemStack stack)
stack: - The ItemStack to render on the notification.public void renderNotification()
public void stopNotification()