Package co.aikar.commands
Class ACFBukkitUtil
java.lang.Object
co.aikar.commands.ACFBukkitUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
blockLocationToString
(org.bukkit.Location loc) static String
static double
distance
(@NotNull org.bukkit.entity.Entity e1, @NotNull org.bukkit.entity.Entity e2) static double
distance
(@NotNull org.bukkit.Location loc1, @NotNull org.bukkit.Location loc2) static double
distance2d
(@NotNull org.bukkit.entity.Entity e1, @NotNull org.bukkit.entity.Entity e2) static double
distance2d
(@NotNull org.bukkit.Location loc1, @NotNull org.bukkit.Location loc2) static org.bukkit.entity.Player
findPlayerSmart
(co.aikar.commands.CommandIssuer issuer, String search) static org.bukkit.entity.Player
findPlayerSmart
(org.bukkit.command.CommandSender requester, String search) Deprecated.static String
formatLocation
(org.bukkit.Location loc) static String
fullBlockLocationToString
(org.bukkit.Location loc) static String
fullLocationToString
(org.bukkit.Location loc) static org.bukkit.Location
getRandLoc
(org.bukkit.Location loc, int radius) static org.bukkit.Location
getRandLoc
(org.bukkit.Location loc, int xzRadius, int yRadius) static @NotNull org.bukkit.Location
getRandLoc
(org.bukkit.Location loc, int xRadius, int yRadius, int zRadius) static org.bukkit.Location
getTargetLoc
(org.bukkit.entity.Player player) static org.bukkit.Location
getTargetLoc
(org.bukkit.entity.Player player, int maxDist) static org.bukkit.Location
getTargetLoc
(org.bukkit.entity.Player player, int maxDist, double addY) static boolean
isValidName
(@Nullable String name) static boolean
isWithinDistance
(@NotNull org.bukkit.entity.Player p1, @NotNull org.bukkit.entity.Player p2, int dist) static boolean
isWithinDistance
(@NotNull org.bukkit.Location loc1, @NotNull org.bukkit.Location loc2, int dist) static String
removeColors
(String msg) static String
replaceChatString
(String message, String replace, String with) static String
replaceChatString
(String message, Pattern replace, String with) static void
Deprecated.static org.bukkit.Location
stringToLocation
(String storedLoc) static org.bukkit.Location
stringToLocation
(String storedLoc, org.bukkit.World forcedWorld)
-
Constructor Details
-
ACFBukkitUtil
public ACFBukkitUtil()
-
-
Method Details
-
formatLocation
-
color
-
sendMsg
Deprecated.Move to Message Keys on the CommandIssuer -
stringToLocation
-
stringToLocation
-
fullLocationToString
-
fullBlockLocationToString
-
blockLocationToString
-
distance
public static double distance(@NotNull @NotNull org.bukkit.entity.Entity e1, @NotNull @NotNull org.bukkit.entity.Entity e2) -
distance2d
public static double distance2d(@NotNull @NotNull org.bukkit.entity.Entity e1, @NotNull @NotNull org.bukkit.entity.Entity e2) -
distance2d
public static double distance2d(@NotNull @NotNull org.bukkit.Location loc1, @NotNull @NotNull org.bukkit.Location loc2) -
distance
public static double distance(@NotNull @NotNull org.bukkit.Location loc1, @NotNull @NotNull org.bukkit.Location loc2) -
getTargetLoc
-
getTargetLoc
-
getTargetLoc
public static org.bukkit.Location getTargetLoc(org.bukkit.entity.Player player, int maxDist, double addY) -
getRandLoc
-
getRandLoc
-
getRandLoc
@NotNull public static @NotNull org.bukkit.Location getRandLoc(org.bukkit.Location loc, int xRadius, int yRadius, int zRadius) -
removeColors
-
replaceChatString
-
replaceChatString
-
isWithinDistance
public static boolean isWithinDistance(@NotNull @NotNull org.bukkit.entity.Player p1, @NotNull @NotNull org.bukkit.entity.Player p2, int dist) -
isWithinDistance
public static boolean isWithinDistance(@NotNull @NotNull org.bukkit.Location loc1, @NotNull @NotNull org.bukkit.Location loc2, int dist) -
findPlayerSmart
public static org.bukkit.entity.Player findPlayerSmart(org.bukkit.command.CommandSender requester, String search) Deprecated.Please move to the CommandIssuer version -
findPlayerSmart
public static org.bukkit.entity.Player findPlayerSmart(co.aikar.commands.CommandIssuer issuer, String search) -
isValidName
-