Record Class SyncLog.Entry
java.lang.Object
java.lang.Record
com.wildfire.client.cloud.SyncLog.Entry
- Enclosing class:
SyncLog
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.network.chat.Componenttext()Returns the value of thetextrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NEW_COLOR
public static final int NEW_COLOR- See Also:
-
OLD_COLOR
public static final int OLD_COLOR- See Also:
-
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
text- the value for thetextrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
color
public int color() -
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). -
text
public net.minecraft.network.chat.Component text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-