Package net.minecraftforge.client.event
Class ToastAddEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ToastAddEvent
public class ToastAddEvent
extends net.minecraftforge.eventbus.api.Event
Fired when the client queues a
Toast
message to be shown onscreen.
Toasts are small popups that appear on the top right of the screen, for certain actions such as unlocking Advancements and Recipes.
This event is cancellable, and does not have a result. Cancelling the event stops the toast from being queued, which means it never renders.
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
toast
-
-
Constructor Details
-
ToastAddEvent
-
-
Method Details
-
getToast
-