Class PersistentDataUtils.Player

java.lang.Object
com.mclds.plugins.customplugin.utils.PersistentDataUtils.Player
Enclosing class:
PersistentDataUtils

public static class PersistentDataUtils.Player extends Object
  • Constructor Details

    • Player

      public Player()
  • Method Details

    • getNamespacedKey

      public static org.bukkit.NamespacedKey getNamespacedKey(String key)
    • set

      public static void set(org.bukkit.entity.Player player, String key, String content)
    • get

      @NotNull public static @NotNull String get(org.bukkit.entity.Player player, String key)
    • get

      @NotNull public static @NotNull String get(org.bukkit.entity.Player player, String key, String def)
    • removeBy

      public static void removeBy(org.bukkit.entity.Player player, String startWith, String ignoreStartWith)
      删除以startWith开头的key,但是不删除以ignoreStartWith开头的key
      Parameters:
      player - 玩家
      startWith - 开头
      ignoreStartWith - 忽略的开头
    • removeBy

      public static void removeBy(org.bukkit.entity.Player player, Predicate<org.bukkit.NamespacedKey> filter)
    • remove

      public static void remove(org.bukkit.entity.Player player, String key)