Package co.crystaldev.alpinecore.util
Class MaterialHelper
java.lang.Object
co.crystaldev.alpinecore.util.MaterialHelper
Utility for interoperability with XMaterials
- Since:
- 0.3.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull com.cryptomorin.xseries.XMaterial
getType
(@Nullable org.bukkit.block.Block block) Get theXMaterial
equivalent of the given material.static @NotNull com.cryptomorin.xseries.XMaterial
getType
(@Nullable org.bukkit.inventory.ItemStack item) Get theXMaterial
equivalent of the given material.static @NotNull com.cryptomorin.xseries.XMaterial
getType
(@Nullable org.bukkit.Location location) Get theXMaterial
equivalent of the given material.static @NotNull com.cryptomorin.xseries.XMaterial
getType
(@Nullable org.bukkit.Material type) Get theXMaterial
equivalent of the given material.
-
Constructor Details
-
MaterialHelper
public MaterialHelper()
-
-
Method Details
-
getType
@NotNull public static @NotNull com.cryptomorin.xseries.XMaterial getType(@Nullable @Nullable org.bukkit.Material type) Get theXMaterial
equivalent of the given material.- Parameters:
type
- The Bukkit material.- Returns:
- The wrapped material.
-
getType
@NotNull public static @NotNull com.cryptomorin.xseries.XMaterial getType(@Nullable @Nullable org.bukkit.inventory.ItemStack item) Get theXMaterial
equivalent of the given material.- Parameters:
item
- The item stack.- Returns:
- The wrapped material.
-
getType
@NotNull public static @NotNull com.cryptomorin.xseries.XMaterial getType(@Nullable @Nullable org.bukkit.Location location) Get theXMaterial
equivalent of the given material.- Parameters:
location
- The block location.- Returns:
- The wrapped material.
-
getType
@NotNull public static @NotNull com.cryptomorin.xseries.XMaterial getType(@Nullable @Nullable org.bukkit.block.Block block) Get theXMaterial
equivalent of the given material.- Parameters:
block
- The block.- Returns:
- The wrapped material.
-