Package co.aikar.commands
Class ACFBukkitUtil
java.lang.Object
co.aikar.commands.ACFBukkitUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringblockLocationToString(org.bukkit.Location loc) static Stringstatic doubledistance(@NotNull org.bukkit.entity.Entity e1, @NotNull org.bukkit.entity.Entity e2) static doubledistance(@NotNull org.bukkit.Location loc1, @NotNull org.bukkit.Location loc2) static doubledistance2d(@NotNull org.bukkit.entity.Entity e1, @NotNull org.bukkit.entity.Entity e2) static doubledistance2d(@NotNull org.bukkit.Location loc1, @NotNull org.bukkit.Location loc2) static org.bukkit.entity.PlayerfindPlayerSmart(co.aikar.commands.CommandIssuer issuer, String search) static org.bukkit.entity.PlayerfindPlayerSmart(org.bukkit.command.CommandSender requester, String search) Deprecated.static StringformatLocation(org.bukkit.Location loc) static StringfullBlockLocationToString(org.bukkit.Location loc) static StringfullLocationToString(org.bukkit.Location loc) static org.bukkit.LocationgetRandLoc(org.bukkit.Location loc, int radius) static org.bukkit.LocationgetRandLoc(org.bukkit.Location loc, int xzRadius, int yRadius) static @NotNull org.bukkit.LocationgetRandLoc(org.bukkit.Location loc, int xRadius, int yRadius, int zRadius) static org.bukkit.LocationgetTargetLoc(org.bukkit.entity.Player player) static org.bukkit.LocationgetTargetLoc(org.bukkit.entity.Player player, int maxDist) static org.bukkit.LocationgetTargetLoc(org.bukkit.entity.Player player, int maxDist, double addY) static booleanisValidName(@Nullable String name) static booleanisWithinDistance(@NotNull org.bukkit.entity.Player p1, @NotNull org.bukkit.entity.Player p2, int dist) static booleanisWithinDistance(@NotNull org.bukkit.Location loc1, @NotNull org.bukkit.Location loc2, int dist) static StringremoveColors(String msg) static StringreplaceChatString(String message, String replace, String with) static StringreplaceChatString(String message, Pattern replace, String with) static voidDeprecated.static org.bukkit.LocationstringToLocation(String storedLoc) static org.bukkit.LocationstringToLocation(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
-