Record Class GuiViewTransition.Snapshot
java.lang.Object
java.lang.Record
com.render.api.gui.GuiViewTransition.Snapshot
- Record Components:
name- source or explicit transition namebounds- captured design-space boundsphase- old/new phaseexplicitlyNamed- whetherGuiComponent.viewTransitionName(String)supplied the name;falsecan still represent automatic ID pairing
- Enclosing class:
GuiViewTransition
public static record GuiViewTransition.Snapshot(String name, GuiRect bounds, GuiViewTransition.SnapshotPhase phase, boolean explicitlyNamed)
extends Record
Inspectable snapshot metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(String name, GuiRect bounds, GuiViewTransition.SnapshotPhase phase, boolean explicitlyNamed) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexplicitlyNamedrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.phase()Returns the value of thephaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(String name, GuiRect bounds, GuiViewTransition.SnapshotPhase phase, boolean explicitlyNamed) Creates an instance of aSnapshotrecord class.- Parameters:
name- the value for thenamerecord componentbounds- the value for theboundsrecord componentphase- the value for thephaserecord componentexplicitlyNamed- the value for theexplicitlyNamedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
bounds
-
phase
-
explicitlyNamed
public boolean explicitlyNamed()Returns the value of theexplicitlyNamedrecord component.- Returns:
- the value of the
explicitlyNamedrecord component
-