Class ReadabilityUtilities

java.lang.Object
net.headmonitor.MonitorLibSpigot.utilities.ReadabilityUtilities

public class ReadabilityUtilities extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.kyori.adventure.text.Component
    entityToReadable(org.bukkit.entity.EntityType entityType)
    Converts the given EntityType to its readable form as well as the correct Language.
    static net.kyori.adventure.text.Component
    materialToReadable(org.bukkit.Material material)
    Converts the given Material to its readable form as well as the correct Language.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReadabilityUtilities

      public ReadabilityUtilities()
  • Method Details

    • materialToReadable

      public static net.kyori.adventure.text.Component materialToReadable(org.bukkit.Material material)
      Converts the given Material to its readable form as well as the correct Language.
      Parameters:
      material - The Material to convert.
      Returns:
      Returns a String of the given Material.
    • entityToReadable

      public static net.kyori.adventure.text.Component entityToReadable(org.bukkit.entity.EntityType entityType)
      Converts the given EntityType to its readable form as well as the correct Language.
      Parameters:
      entityType - The EntityType to convert.
      Returns:
      Returns a String of the given EntityType.