Record Class Transaction.MaterialPropertyChanged
java.lang.Object
java.lang.Record
dev.engine.core.transaction.Transaction.MaterialPropertyChanged
- All Implemented Interfaces:
Transaction
- Enclosing interface:
Transaction
public static record Transaction.MaterialPropertyChanged(Handle<?> entity, PropertyKey<MaterialData, ?> key, Object value)
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
ConstructorsConstructorDescriptionMaterialPropertyChanged(Handle<?> entity, PropertyKey<MaterialData, ?> key, Object value) Creates an instance of aMaterialPropertyChangedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionHandle<?> 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.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MaterialPropertyChanged
Creates an instance of aMaterialPropertyChangedrecord class.- Parameters:
entity- the value for theentityrecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord 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. 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
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-