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 UUIDstatic booleanstatic booleanstatic @NotNull ConsoleCommandSenderstatic @NotNull Set<CommandSender> static Methodstatic Collection<Player> static CommandSenderstatic intgetTpdelay(Permissible permissible) static booleanhasPermission(Permissible permissible, String permission) static booleanstatic booleanstatic booleanstatic booleanisntPlayer(Object object) static booleanisntSender(Object object) static booleanstatic booleanisSameBlock(@NotNull Location one, @NotNull Location two) static booleanisSameBlock(@NotNull PlayerMoveEvent event) static booleanisSameChunk(@NotNull Location one, @NotNull Location two) static booleanisSameChunk(@NotNull PlayerMoveEvent event) static booleanstatic booleanstatic booleanisValidPlayerName(String string) static <T> @NotNull List<T> list(T @NotNull ... items) static <K,V> @NotNull Map <K, V> static <T> TpickFirstVal(@NotNull Permissible permissible, Map<String, T> perm2val) static voidstatic voidprintStackTrace(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
-
getConsole
-
getLocalSenders
-
getOnlinePlayers
-
getSender
-
asUuid
-
isUuid
-
list
-
set
-
treeset
-
map
-
range
-
isNpc
-
isntNpc
-
isSender
-
isntSender
-
isPlayer
-
isntPlayer
-
isNothing
-
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
-