Record Class NeighborsUpdateRenderer.LastUpdate
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.debug.NeighborsUpdateRenderer.LastUpdate
- Enclosing class:
NeighborsUpdateRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theagerecord component.private final intThe field for thecountrecord component.(package private) static final NeighborsUpdateRenderer.LastUpdate -
Constructor Summary
ConstructorsConstructorDescriptionLastUpdate(int count, int age) Creates an instance of aLastUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintage()Returns the value of theagerecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.tryCount(int age)
-
Field Details
-
count
private final int countThe field for thecountrecord component. -
age
private final int ageThe field for theagerecord component. -
NONE
-
-
Constructor Details
-
LastUpdate
LastUpdate(int count, int age) Creates an instance of aLastUpdaterecord class.- Parameters:
count- the value for thecountrecord componentage- the value for theagerecord component
-
-
Method Details
-
tryCount
-
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. All components in this record class are compared with '=='. -
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
age
public int age()Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-