Package wtf.choco.veinminer.data
Record Class LegacyPlayerData
java.lang.Object
java.lang.Record
wtf.choco.veinminer.data.LegacyPlayerData
- Record Components:
playerUUID
- the player UUIDactivationStrategy
- the activation strategydisabledCategories
- the disabled categories
public record LegacyPlayerData(@NotNull UUID playerUUID, @NotNull ActivationStrategy activationStrategy, @NotNull List<VeinMinerToolCategory> disabledCategories)
extends Record
Represents simple legacy player data for the
LegacyImportTask
.-
Constructor Summary
ConstructorDescriptionLegacyPlayerData
(@NotNull UUID playerUUID, @NotNull ActivationStrategy activationStrategy, @NotNull List<VeinMinerToolCategory> disabledCategories) Creates an instance of aLegacyPlayerData
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ActivationStrategy
Returns the value of theactivationStrategy
record component.@NotNull List<VeinMinerToolCategory>
Returns the value of thedisabledCategories
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull UUID
Returns the value of theplayerUUID
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LegacyPlayerData
public LegacyPlayerData(@NotNull @NotNull UUID playerUUID, @NotNull @NotNull ActivationStrategy activationStrategy, @NotNull @NotNull List<VeinMinerToolCategory> disabledCategories) Creates an instance of aLegacyPlayerData
record class.- Parameters:
playerUUID
- the value for theplayerUUID
record componentactivationStrategy
- the value for theactivationStrategy
record componentdisabledCategories
- the value for thedisabledCategories
record component
-
-
Method Details
-
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. -
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. -
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 theplayerUUID
record component.- Returns:
- the value of the
playerUUID
record component
-
activationStrategy
Returns the value of theactivationStrategy
record component.- Returns:
- the value of the
activationStrategy
record component
-
disabledCategories
Returns the value of thedisabledCategories
record component.- Returns:
- the value of the
disabledCategories
record component
-