Class BukkitPaths

java.lang.Object
me.hsgamer.hscore.bukkit.config.path.BukkitPaths

public final class BukkitPaths extends Object
Utility to easily create Bukkit's AdvancedConfigPath
  • Method Details

    • attributeModifierPath

      public static AttributeModifierConfigPath attributeModifierPath(PathString path, org.bukkit.attribute.AttributeModifier def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • colorPath

      public static ColorConfigPath colorPath(PathString path, org.bukkit.Color def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • fireworkEffectPath

      public static FireworkEffectConfigPath fireworkEffectPath(PathString path, org.bukkit.FireworkEffect def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • itemStackPath

      public static ItemStackConfigPath itemStackPath(PathString path, org.bukkit.inventory.ItemStack def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • locationPath

      public static LocationConfigPath locationPath(PathString path, org.bukkit.Location def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • patternPath

      public static PatternConfigPath patternPath(PathString path, org.bukkit.block.banner.Pattern def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • potionEffectPath

      public static PotionEffectConfigPath potionEffectPath(PathString path, org.bukkit.potion.PotionEffect def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • vectorPath

      public static VectorConfigPath vectorPath(PathString path, org.bukkit.util.Vector def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • soundPath

      public static SoundConfigPath soundPath(PathString path, PlayableSound def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • positionPath

      public static PositionConfigPath positionPath(PathString path, Position def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path