类 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.

  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final Toast
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
     

    从类继承的方法 net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • toast

      private final Toast toast
  • 构造器详细资料

    • ToastAddEvent

      public ToastAddEvent(Toast toast)
  • 方法详细资料

    • getToast

      public Toast getToast()