Record Class ProfileLoadedEvent
java.lang.Object
java.lang.Record
tech.skworks.tachyon.api.event.profile.ProfileLoadedEvent
- Record Components:
playerUuid- The unique identifier of the player whose profile was loaded.profile- The active profile instance that is now cached in the registry.
- All Implemented Interfaces:
TachyonEvent
public record ProfileLoadedEvent(@NotNull UUID playerUuid, @NotNull TachyonProfile profile)
extends Record
implements TachyonEvent
Triggered when a player's profile is fully loaded from the backend.
This event is fired by the TachyonProfileRegistry
once all the component data has been retrieved, unpacked, and safely cached in memory.
Project Tachyon
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 20/05/2026
-
Constructor Summary
ConstructorsConstructorDescriptionProfileLoadedEvent(@NotNull UUID playerUuid, @NotNull TachyonProfile profile) Creates an instance of aProfileLoadedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull UUIDReturns the value of theplayerUuidrecord component.@NotNull TachyonProfileprofile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfileLoadedEvent
public ProfileLoadedEvent(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull TachyonProfile profile) Creates an instance of aProfileLoadedEventrecord class.- Parameters:
playerUuid- the value for theplayerUuidrecord componentprofile- the value for theprofilerecord 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). -
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
profile
-