Record Class ObserverCallbacks
java.lang.Object
java.lang.Record
io.github.elebras1.flecs.callback.ObserverCallbacks
public record ObserverCallbacks(IterCallback iterCallback, RunCallback runCallback, EntityCallback entityCallback)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionObserverCallbacks(IterCallback iterCallback, RunCallback runCallback, EntityCallback entityCallback) Creates an instance of aObserverCallbacksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityCallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theiterCallbackrecord component.Returns the value of therunCallbackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObserverCallbacks
public ObserverCallbacks(IterCallback iterCallback, RunCallback runCallback, EntityCallback entityCallback) Creates an instance of aObserverCallbacksrecord class.- Parameters:
iterCallback- the value for theiterCallbackrecord componentrunCallback- the value for therunCallbackrecord componententityCallback- the value for theentityCallbackrecord 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). -
iterCallback
Returns the value of theiterCallbackrecord component.- Returns:
- the value of the
iterCallbackrecord component
-
runCallback
Returns the value of therunCallbackrecord component.- Returns:
- the value of the
runCallbackrecord component
-
entityCallback
Returns the value of theentityCallbackrecord component.- Returns:
- the value of the
entityCallbackrecord component
-