Class TextUtils

java.lang.Object
nl.mtvehicles.core.infrastructure.utils.TextUtils

public class TextUtils extends Object
Methods for editing text (and for some reason also deprecated methods for creating vehicles - moved to VehicleUtils and VehicleClickListener)
  • Constructor Details

    • TextUtils

      public TextUtils()
  • Method Details

    • colorize

      public static String colorize(String text)
      Colorize a String with the ampersand characters.
      Parameters:
      text - Text
      Returns:
      Colorized text
    • licenseReplacer

      @Deprecated public static String licenseReplacer(String license)
      Deprecated.
      Get license plate from vehicle armor stand's name
      Parameters:
      license - Name of the vehicle
      Returns:
      Vehicle's license plate
    • list

      public static List<String> list(String... strings)
      Get a List from multiple Strings
    • checkInvFull

      public static boolean checkInvFull(org.bukkit.entity.Player player)
      Check whether player's inventory is full
      Parameters:
      player - Player
      Returns:
      True if player's inventory is full