Record Class ProfileUnloadedEvent

java.lang.Object
java.lang.Record
tech.skworks.tachyon.api.event.profile.ProfileUnloadedEvent
Record Components:
playerUuid - The unique identifier of the unloaded player.
profile - The profile instance that was just removed from cache.
reason - The explicit reason for this unload operation (e.g., "DISCONNECT", "LOGIN_DENIED").
All Implemented Interfaces:
TachyonEvent

public record ProfileUnloadedEvent(@NotNull UUID playerUuid, @NotNull TachyonProfile profile, @NotNull String reason) extends Record implements TachyonEvent
Triggered when a player's profile is removed from the active registry cache.

This event is fired by the TachyonProfileRegistry when a profile is explicitly unloaded (e.g., player disconnects, login denied, or manual reload).

Project Tachyon

Since:
1.0.0-SNAPSHOT
Version:
1.0
Author:
Jimmy (vSKAH) - 20/05/2026
  • Constructor Details

    • ProfileUnloadedEvent

      public ProfileUnloadedEvent(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull TachyonProfile profile, @NotNull @NotNull String reason)
      Creates an instance of a ProfileUnloadedEvent record class.
      Parameters:
      playerUuid - the value for the playerUuid record component
      profile - the value for the profile record component
      reason - the value for the reason 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
    • reason

      @NotNull public @NotNull String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component