Class TextUtils
java.lang.Object
nl.mtvehicles.core.infrastructure.helpers.TextUtils
Methods for editing text (and for some reason also deprecated methods for creating vehicles - moved to
VehicleUtils
and VehicleClickListener
)-
Constructor Summary
Constructors -
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 void
createVehicle(String licensePlate, org.bukkit.entity.Player p)
Deprecated.This method somehow worked, no idea how though.static String
licenseReplacer(String license)
Deprecated.UseVehicleUtils.getLicensePlate(Entity)
instead.Get a List from multiple Stringsstatic void
pickupVehicle(String ken, org.bukkit.entity.Player p)
Deprecated.Moved.
-
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 -
createVehicle
Deprecated.This method somehow worked, no idea how though. UseVehicleUtils.enterVehicle(String, Player)
instead. -
pickupVehicle
Deprecated.Moved. UseVehicleUtils.pickupVehicle(String, Player)
.Pick up a vehicle and put it to player's inventory- Parameters:
ken
- Vehicle's license platep
- Player
-
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
-