Class MaterialConverter
java.lang.Object
org.mvplugins.multiverse.core.utils.MaterialConverter
A tool for converting values which may be an old type ID to a Material.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable org.bukkit.Material
stringToMaterial
(@Nullable String value) Converts a string representing a numeric id or flattened material name to a Material.
-
Constructor Details
-
MaterialConverter
public MaterialConverter()
-
-
Method Details
-
stringToMaterial
@Nullable public static @Nullable org.bukkit.Material stringToMaterial(@Nullable @Nullable String value) Converts a string representing a numeric id or flattened material name to a Material.- Parameters:
value
- The value to convert.- Returns:
- The converted Material type or null if no matching type.
-