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.private static final NeighborsUpdateRenderer.LastUpdate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLastUpdate(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
private 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
-
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 with thecomparemethod from their corresponding wrapper classes. -
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
-