Record Class Toast
java.lang.Object
java.lang.Record
net.flectone.pulse.model.value.Toast
- Record Components:
icon- the namespaced item id drawn on the popupstyle- the frame style, which also decides the sound the client plays
An advancement popup shown in the corner of the screen.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe advancement frame a toast is drawn with. -
Constructor Summary
ConstructorsConstructorDescriptionToast(String icon, Toast.Type style) Creates an instance of aToastrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
icon
-
style
-