Interface Notification.Builder
- Enclosing interface:
Notification
public static sealed interface Notification.Builder
- Since:
- 1.4.1
-
Method Details
-
title
Set the title for a notification as component. If you're using a resource pack you can useComponent.translatable(String)
- Parameters:
component
- to get send to the client- Returns:
- the builder
-
frameType
Set the frame typ of the notification- Parameters:
frameType
- to showed for the client- Returns:
- the builder
-
icon
Set theMaterial
for the icon- Parameters:
material
- to be shown to the client- Returns:
- the builder
-
icon
Set theItemStack
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
-