Record Class CooldownScope
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.cooldown.CooldownScope
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCooldownScope(CooldownScope.Type type, UUID id) Creates an instance of aCooldownScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CooldownScopestatic CooldownScopeentity(org.bukkit.entity.Entity entity) final booleanIndicates whether some other object is "equal to" this one.static CooldownScopeglobal()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static CooldownScopeplayer(org.bukkit.entity.Player player) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static CooldownScopeworld(org.bukkit.World world)
-
Constructor Details
-
CooldownScope
Creates an instance of aCooldownScoperecord class.- Parameters:
type- the value for thetyperecord componentid- the value for theidrecord component
-
-
Method Details
-
global
-
player
-
entity
-
world
-
custom
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-