Class MaterialUtilities

java.lang.Object
net.headmonitor.MonitorLibPaper.utilities.MaterialUtilities

public class MaterialUtilities extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.Material
    entityTypeToSpawnEgg(org.bukkit.entity.EntityType entityType)
    Converts the given EntityType to Spawn Egg Material.
    static org.bukkit.inventory.meta.trim.TrimMaterial
    materialToTrimMaterial(org.bukkit.Material material)
    Converts the given Material to TrimMaterial if available.
    static org.bukkit.entity.EntityType
    spawnEggToEntityType(org.bukkit.Material spawnEgg)
    Converts the given Spawn Egg Material to EntityType.
    static org.bukkit.inventory.meta.trim.TrimPattern
    trimTemplateToTrimPattern(org.bukkit.Material material)
    Converts the given Material to TrimPattern if available.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.