Interface Notification.Builder

Enclosing interface:
Notification

public static sealed interface Notification.Builder
Since:
1.4.1
  • Method Details

    • title

      Notification.Builder title(@NotNull @NotNull Component component)
      Set the title for a notification as component. If you're using a resource pack you can use Component.translatable(String)
      Parameters:
      component - to get send to the client
      Returns:
      the builder
    • frameType

      Notification.Builder frameType(@NotNull @NotNull FrameType frameType)
      Set the frame typ of the notification
      Parameters:
      frameType - to showed for the client
      Returns:
      the builder
    • icon

      Notification.Builder icon(@NotNull @NotNull Material material)
      Set the Material for the icon
      Parameters:
      material - to be shown to the client
      Returns:
      the builder
    • icon

      Notification.Builder icon(@NotNull @NotNull ItemStack itemStack)
      Set the ItemStack for the icon
      Parameters:
      itemStack - to be shown to the client
      Returns:
      the builder
    • build

      Notification build()
      Returns an instance of the creation notification
      Returns:
      the instance