Package net.minecraft.client
Record Class PeriodicNotificationManager.Notification
java.lang.Object
java.lang.Record
net.minecraft.client.PeriodicNotificationManager.Notification
- Enclosing class:
PeriodicNotificationManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotification(long delay, long period, String title, String message) Creates an instance of aNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.longperiod()Returns the value of theperiodrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
delay
private final long delayThe field for thedelayrecord component. -
period
private final long periodThe field for theperiodrecord component. -
title
The field for thetitlerecord component. -
message
The field for themessagerecord component.
-
-
Constructor Details
-
Notification
Creates an instance of aNotificationrecord class.- Parameters:
delay- the value for thedelayrecord componentperiod- the value for theperiodrecord componenttitle- the value for thetitlerecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
delay
public long delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
period
public long period()Returns the value of theperiodrecord component.- Returns:
- the value of the
periodrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-