Record Class ClockAdjustment.Absolute
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.util.ClockAdjustment.Absolute
- All Implemented Interfaces:
ClockAdjustment
- Enclosing interface:
ClockAdjustment
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClockAdjustment
ClockAdjustment.Absolute, ClockAdjustment.Marker, ClockAdjustment.Relative -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theticksrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerClockManager clockManager, Holder<WorldClock> clock) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ticks
private final long ticksThe field for theticksrecord component.
-
-
Constructor Details
-
Absolute
public Absolute(long ticks) Creates an instance of aAbsoluterecord class.- Parameters:
ticks- the value for theticksrecord component
-
-
Method Details
-
apply
- Specified by:
applyin interfaceClockAdjustment
-
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. -
ticks
public long ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-