Class Examples

java.lang.Object
com.cryptomorin.xseries.Examples

public class Examples
extends Object
  • Constructor Details

  • Method Details

    • main

      public static void main​(String[] args)
    • convertYAMLMaterial

      public static void convertYAMLMaterial​(File file)
    • versionDifference

      public static void versionDifference​(Path path)
      Writes the material and sound differences for updating purposes.
      Parameters:
      path - the path folder to save the files to.
      Since:
      6.0.0
    • writeDifference

      public static <S extends Enum<S>,​ E extends Enum<E>> void writeDifference​(@Nonnull Path path, @Nonnull Class<S> system, @Nonnull Class<E> custom)
      Writes the difference between two enums. For other differences check:
           https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Material.java
           https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Sound.java
           https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/potion/PotionEffectType.java
           https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/enchantments/Enchantment.java
           https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Particle.java
       
      Parameters:
      path - the file path to write the difference to.
      system - the original enum.
      custom - the custom enum that is most likely a version behind the original enum.
      Since:
      1.0.0