Record Class Transaction.ComponentChanged
java.lang.Object
java.lang.Record
dev.engine.core.transaction.Transaction.ComponentChanged
- All Implemented Interfaces:
Transaction
- Enclosing interface:
Transaction
public static record Transaction.ComponentChanged(Handle<?> entity, Component component)
extends Record
implements Transaction
-
Nested Class Summary
Nested classes/interfaces inherited from interface Transaction
Transaction.ComponentChanged, Transaction.EntityAdded, Transaction.EntityRemoved, Transaction.MaterialAssigned, Transaction.MaterialDataChanged, Transaction.MaterialPropertyChanged, Transaction.MaterialReplaced, Transaction.MeshAssigned, Transaction.MeshChanged, Transaction.TransformChanged -
Constructor Summary
ConstructorsConstructorDescriptionComponentChanged(Handle<?> entity, Component component) Creates an instance of aComponentChangedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.Handle<?> entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentChanged
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
entity
Returns the value of theentityrecord component.- Specified by:
entityin interfaceTransaction- Returns:
- the value of the
entityrecord component
-
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-