Record Class PlayerDataKey.PdcMigration<T>
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.player.PlayerDataKey.PdcMigration<T>
- Enclosing class:
PlayerDataKey<T>
public static record PlayerDataKey.PdcMigration<T>(@NotNull String key, @NotNull org.bukkit.persistence.PersistentDataType<?,T> type)
extends Record
An entry of the player's PDC an older version wrote, see
PlayerDataKey.migratePdc(String, PersistentDataType).-
Constructor Summary
ConstructorsConstructorDescriptionPdcMigration(@NotNull String key, @NotNull org.bukkit.persistence.PersistentDataType<?, T> type) Creates an instance of aPdcMigrationrecord 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 Stringkey()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.@NotNull org.bukkit.persistence.PersistentDataType<?, T> type()Returns the value of thetyperecord component.
-
Constructor Details
-
PdcMigration
-
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-