Record Class PersonaRecord
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.engine.identity.PersonaRecord
public record PersonaRecord(PersonaId id, Optional<Entity> entity, Optional<PlayerId> controllingPlayerId, Optional<Object> mudlibBehaviorProjection)
extends Record
Engine-owned record for the Player's in-World manifestation.
The entity link may be absent while a compatibility runtime is still attaching a legacy mudlib object before full World entity integration.
The mudlib behavior projection is opaque to the runtime model. Compatibility layers may use it to associate LPC-authored behavior, such as LP245's combined player object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrollingPlayerIdrecord component.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.id()Returns the value of theidrecord component.Returns the value of themudlibBehaviorProjectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PersonaRecord
public PersonaRecord(PersonaId id, Optional<Entity> entity, Optional<PlayerId> controllingPlayerId, Optional<Object> mudlibBehaviorProjection) Creates an instance of aPersonaRecordrecord class.- Parameters:
id- the value for theidrecord componententity- the value for theentityrecord componentcontrollingPlayerId- the value for thecontrollingPlayerIdrecord componentmudlibBehaviorProjection- the value for themudlibBehaviorProjectionrecord component
-
PersonaRecord
-
PersonaRecord
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
entity
-
controllingPlayerId
-
mudlibBehaviorProjection
-