Record Class ClockAdjustment.Marker
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.util.ClockAdjustment.Marker
- All Implemented Interfaces:
ClockAdjustment
- Enclosing interface:
ClockAdjustment
public static record ClockAdjustment.Marker(ResourceKey<ClockTimeMarker> marker)
extends Record
implements ClockAdjustment
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClockAdjustment
ClockAdjustment.Absolute, ClockAdjustment.Marker, ClockAdjustment.Relative -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<ClockTimeMarker> The field for themarkerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMarker(ResourceKey<ClockTimeMarker> marker) Creates an instance of aMarkerrecord class. -
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.marker()Returns the value of themarkerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
marker
The field for themarkerrecord component.
-
-
Constructor Details
-
Marker
Creates an instance of aMarkerrecord class.- Parameters:
marker- the value for themarkerrecord 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 withObjects::equals(Object,Object). -
marker
Returns the value of themarkerrecord component.- Returns:
- the value of the
markerrecord component
-