Package net.glowstone.util
Class WoolUtil
java.lang.Object
net.glowstone.util.WoolUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.DyeColor
getDyeByWoolMaterial
(org.bukkit.Material material) If found, returns aDyeColor
linked to the wool color.static org.bukkit.Material
getWoolMaterialByDye
(org.bukkit.DyeColor color) If found, returns aMaterial
linked to the dye color.
-
Method Details
-
getWoolMaterialByDye
@Nullable public static org.bukkit.Material getWoolMaterialByDye(org.bukkit.DyeColor color) If found, returns aMaterial
linked to the dye color. Otherwise, returnsnull
. -
getDyeByWoolMaterial
@Nullable public static org.bukkit.DyeColor getDyeByWoolMaterial(org.bukkit.Material material) If found, returns aDyeColor
linked to the wool color. Otherwise, returnsnull
.
-