Class MaterialUtilities
java.lang.Object
net.headmonitor.MonitorLibSpigot.utilities.MaterialUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.MaterialentityTypeToSpawnEgg(org.bukkit.entity.EntityType entityType) Converts the given EntityType to Spawn Egg Material.static org.bukkit.inventory.meta.trim.TrimMaterialmaterialToTrimMaterial(org.bukkit.Material material) Converts the given Material to TrimMaterial if available.static org.bukkit.entity.EntityTypespawnEggToEntityType(org.bukkit.Material spawnEgg) Converts the given Spawn Egg Material to EntityType.static org.bukkit.inventory.meta.trim.TrimPatterntrimTemplateToTrimPattern(org.bukkit.Material material) Converts the given Material to TrimPattern if available.
-
Constructor Details
-
MaterialUtilities
public MaterialUtilities()
-
-
Method Details
-
spawnEggToEntityType
@Nullable public static org.bukkit.entity.EntityType spawnEggToEntityType(org.bukkit.Material spawnEgg) Converts the given Spawn Egg Material to EntityType.- Parameters:
spawnEgg- The Material to convert.- Returns:
- Returns the appropriate EntityType.
-
entityTypeToSpawnEgg
@Nullable public static org.bukkit.Material entityTypeToSpawnEgg(org.bukkit.entity.EntityType entityType) Converts the given EntityType to Spawn Egg Material.- Parameters:
entityType- The EntityType to convert.- Returns:
- Returns the appropriate Spawn Egg Material.
-
trimTemplateToTrimPattern
@Nullable public static org.bukkit.inventory.meta.trim.TrimPattern trimTemplateToTrimPattern(org.bukkit.Material material) Converts the given Material to TrimPattern if available.- Parameters:
material- The Material to convert.- Returns:
- Returns the appropriate TrimPattern.
-
materialToTrimMaterial
@Nullable public static org.bukkit.inventory.meta.trim.TrimMaterial materialToTrimMaterial(org.bukkit.Material material) Converts the given Material to TrimMaterial if available.- Parameters:
material- The Material to convert.- Returns:
- Returns the appropriate TrimMaterial.
-