Package com.cryptomorin.xseries
Class Examples
java.lang.Object
com.cryptomorin.xseries.Examples
public class Examples extends Object
-
Constructor Summary
Constructors Constructor Description Examples()
-
Method Summary
Modifier and Type Method Description static void
convertYAMLMaterial(File file)
static void
main(String[] args)
static void
versionDifference(Path path)
Writes the material and sound differences for updating purposes.static <S extends Enum<S>, E extends Enum<E>>
voidwriteDifference(Path path, Class<S> system, Class<E> custom)
Writes the difference between two enums.
-
Constructor Details
-
Examples
public Examples()
-
-
Method Details
-
main
-
convertYAMLMaterial
-
versionDifference
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
-