Class ReadabilityUtilities
java.lang.Object
net.headmonitor.MonitorLibPaper.utilities.ReadabilityUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.ComponententityToReadable(org.bukkit.entity.EntityType entityType) Converts the given EntityType to its readable form as well as the correct Language.static net.kyori.adventure.text.ComponentmaterialToReadable(org.bukkit.Material material) Converts the given Material to its readable form as well as the correct Language.
-
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.
-