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 Details

    • ProfileLoadedEvent

      public ProfileLoadedEvent(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull TachyonProfile profile)
      Creates an instance of a ProfileLoadedEvent record class.
      Parameters:
      playerUuid - the value for the playerUuid record component
      profile - the value for the profile record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • playerUuid

      @NotNull public @NotNull UUID playerUuid()
      Returns the value of the playerUuid record component.
      Returns:
      the value of the playerUuid record component
    • profile

      @NotNull public @NotNull TachyonProfile profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component