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 Summary
ConstructorsConstructorDescriptionProfileUnloadedEvent(@NotNull UUID playerUuid, @NotNull TachyonProfile profile, @NotNull String reason) Creates an instance of aProfileUnloadedEventrecord 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.@NotNull Stringreason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfileUnloadedEvent
public ProfileUnloadedEvent(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull TachyonProfile profile, @NotNull @NotNull String reason) Creates an instance of aProfileUnloadedEventrecord class.- Parameters:
playerUuid- the value for theplayerUuidrecord componentprofile- the value for theprofilerecord componentreason- the value for thereasonrecord 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
-
reason
-