Package dev.turboism.sdk.cubism.event
Record Class DeformerVisibilityEvent.On
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.event.DeformerVisibilityEvent.On
- All Implemented Interfaces:
DeformerVisibilityEvent,EventBus.TurboismEvent,TurboismEvent
- Enclosing interface:
- DeformerVisibilityEvent
public static record DeformerVisibilityEvent.On(Deformer deformer, boolean oldVisible, boolean newVisible)
extends Record
implements DeformerVisibilityEvent
State published after a successful visibility write that changed the value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.turboism.sdk.cubism.event.DeformerVisibilityEvent
DeformerVisibilityEvent.After, DeformerVisibilityEvent.Before, DeformerVisibilityEvent.On -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeformer()Returns the value of thedeformerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenewVisiblerecord component.booleanReturns the value of theoldVisiblerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
On
Creates an instance of aOnrecord class.- Parameters:
deformer- the value for thedeformerrecord componentoldVisible- the value for theoldVisiblerecord componentnewVisible- the value for thenewVisiblerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
deformer
Returns the value of thedeformerrecord component.- Specified by:
deformerin interfaceDeformerVisibilityEvent- Returns:
- the value of the
deformerrecord component
-
oldVisible
public boolean oldVisible()Returns the value of theoldVisiblerecord component.- Returns:
- the value of the
oldVisiblerecord component
-
newVisible
public boolean newVisible()Returns the value of thenewVisiblerecord component.- Returns:
- the value of the
newVisiblerecord component
-