Record Class Blocklist
java.lang.Object
java.lang.Record
lol.trq.alts.account.Blocklist
- Record Components:
blockedProfiles- the blocked players' UUIDs, dashed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedProfilesrecord component.booleanReturns whether a player is blocked.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns whether nobody is blocked.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Blocklist
-
-
Method Details
-
blocks
Returns whether a player is blocked.- Parameters:
uuid- the player's UUID, dashed or undashed- Returns:
- true if the player is on the list
- Since:
- 0.12.0
-
isEmpty
public boolean isEmpty()Returns whether nobody is blocked.- Returns:
- true if the list is empty
- Since:
- 0.12.0
-
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). -
blockedProfiles
Returns the value of theblockedProfilesrecord component.- Returns:
- the value of the
blockedProfilesrecord component
-