Package com.kamikazejam.kamicommon.util
Class KUtil
java.lang.Object
com.kamikazejam.kamicommon.util.KUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUID
static boolean
static boolean
static ChatColor
getChatColor
(@NotNull DyeColor dyeColor) static @NotNull ConsoleCommandSender
static @NotNull Set
<CommandSender> static Method
static ChatColor
static Collection
<Player> static CommandSender
static int
getTpdelay
(Permissible permissible) static boolean
hasPermission
(Permissible permissible, String permission) static boolean
static boolean
static boolean
static boolean
isntPlayer
(Object object) static boolean
isntSender
(Object object) static boolean
static boolean
isSameBlock
(@NotNull Location one, @NotNull Location two) static boolean
isSameBlock
(@NotNull PlayerMoveEvent event) static boolean
isSameChunk
(@NotNull Location one, @NotNull Location two) static boolean
isSameChunk
(@NotNull PlayerMoveEvent event) static boolean
static boolean
static boolean
isValidPlayerName
(String string) static <T> @NotNull List
<T> list
(T @NotNull ... items) static <K,
V> @NotNull Map <K, V> static <T> T
pickFirstVal
(@NotNull Permissible permissible, Map<String, T> perm2val) static void
static void
printStackTrace
(String message) range
(int from, int to) static <T> @NotNull Set
<T> set
(T @NotNull ... items) static <T> @NotNull List
<T> static <T> @NotNull List
<T> static <T> @NotNull List
<T> static <T> @NotNull List
<T> transform
(@NotNull Iterable<T> items, Predicate<? super T> where, Comparator<? super T> orderby) static <T> @NotNull List
<T> transform
(@NotNull Iterable<T> items, Predicate<? super T> where, Comparator<? super T> orderby, Integer limit) static <T> @NotNull List
<T> transform
(@NotNull Iterable<T> items, Predicate<? super T> where, Comparator<? super T> orderby, Integer limit, Integer offset) static <T> @NotNull List
<T> static <T> @NotNull List
<T> static <T> @NotNull List
<T> transform
(@NotNull Iterable<T> items, Comparator<? super T> orderby) static <T> @NotNull List
<T> transform
(@NotNull Iterable<T> items, Comparator<? super T> orderby, Integer limit) static <T> @NotNull List
<T> transform
(@NotNull Iterable<T> items, Comparator<? super T> orderby, Integer limit, Integer offset)
-
Field Details
-
ID_PREFIX
- See Also:
-
CONSOLE_ID
- See Also:
-
NOTHING_REMOVE
-
PATTERN_PLAYER_NAME
-
permissionToTpdelay
-
-
Constructor Details
-
KUtil
public KUtil()
-
-
Method Details
-
getMethodGetOnlinePlayers
-
equals
-
equals
-
getNearestChatColor
-
getConsole
-
getLocalSenders
-
getOnlinePlayers
-
getSender
-
asUuid
-
isUuid
-
list
-
set
-
treeset
-
map
-
range
-
isNpc
-
isntNpc
-
isSender
-
isntSender
-
isPlayer
-
isntPlayer
-
isNothing
-
getChatColor
-
isValidPlayerName
-
getTpdelay
-
pickFirstVal
@Contract("_, null -> null") public static <T> T pickFirstVal(@NotNull @NotNull Permissible permissible, Map<String, T> perm2val) -
hasPermission
@Contract("null, _ -> fail; !null, null -> fail") public static boolean hasPermission(Permissible permissible, String permission) -
isSameBlock
-
isSameBlock
-
isSameChunk
-
isSameChunk
-
transform
-
transform
-
transform
@NotNull public static <T> @NotNull List<T> transform(@NotNull @NotNull Iterable<T> items, Predicate<? super T> where, Comparator<? super T> orderby) -
transform
@NotNull public static <T> @NotNull List<T> transform(@NotNull @NotNull Iterable<T> items, Predicate<? super T> where, Comparator<? super T> orderby, Integer limit) -
transform
-
transform
-
transform
@NotNull public static <T> @NotNull List<T> transform(@NotNull @NotNull Iterable<T> items, Comparator<? super T> orderby) -
transform
@NotNull public static <T> @NotNull List<T> transform(@NotNull @NotNull Iterable<T> items, Comparator<? super T> orderby, Integer limit) -
transform
@NotNull public static <T> @NotNull List<T> transform(@NotNull @NotNull Iterable<T> items, Comparator<? super T> orderby, Integer limit, Integer offset) -
transform
-
transform
-
printStackTrace
public static void printStackTrace() -
printStackTrace
-