Class TextUtils
java.lang.Object
nl.mtvehicles.core.infrastructure.utils.TextUtils
Methods for editing text (and for some reason also deprecated methods for creating vehicles - moved to
VehicleUtils
and VehicleClickListener
)-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkInvFull(org.bukkit.entity.Player player)
Check whether player's inventory is fullstatic String
Colorize a String with the ampersand characters.static String
licenseReplacer(String license)
Deprecated.Get a List from multiple Strings
-
Constructor Details
-
TextUtils
public TextUtils()
-
-
Method Details
-
colorize
Colorize a String with the ampersand characters.- Parameters:
text
- Text- Returns:
- Colorized text
-
licenseReplacer
Deprecated.UseVehicleUtils.getLicensePlate(Entity)
instead.Get license plate from vehicle armor stand's name- Parameters:
license
- Name of the vehicle- Returns:
- Vehicle's license plate
-
list
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
-
VehicleUtils.getLicensePlate(Entity)
instead.