Record Class ConfigurationScreen.UndoManager.Step<T>
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.gui.ConfigurationScreen.UndoManager.Step<T>
- Enclosing class:
ConfigurationScreen.UndoManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newValue()Returns the value of thenewValuerecord component.oldValue()Returns the value of theoldValuerecord component.run()Returns the value of therunrecord component.private voidrunRedo()private voidrunUndo()final StringtoString()Returns a string representation of this record class.undo()Returns the value of theundorecord component.
-
Field Details
-
run
-
newValue
The field for thenewValuerecord component. -
undo
-
oldValue
The field for theoldValuerecord component.
-
-
Constructor Details
-
Step
Creates an instance of aSteprecord class.- Parameters:
run- the value for therunrecord componentnewValue- the value for thenewValuerecord componentundo- the value for theundorecord componentoldValue- the value for theoldValuerecord component
-
-
Method Details
-
runUndo
private void runUndo() -
runRedo
private void runRedo() -
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). -
run
-
newValue
Returns the value of thenewValuerecord component.- Returns:
- the value of the
newValuerecord component
-
undo
-
oldValue
Returns the value of theoldValuerecord component.- Returns:
- the value of the
oldValuerecord component
-