net.minecraft.util

public class Util

net.minecraft.util.Util
net.minecraft.util.Util
net.minecraft.class_156
net.minecraft.util.Util

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_1129
LOGGER
private static final int
DEFAULT_MAX_THREADS
DEFAULT_MAX_THREADS
field_34891
MAX_PARALLELISM
private static final int
DEFAULT_SAFE_FILE_OPERATION_RETRIES
DEFAULT_SAFE_FILE_OPERATION_RETRIES
field_46764
BACKUP_ATTEMPTS
private static final String
MAX_THREADS_SYSTEM_PROPERTY
MAX_THREADS_SYSTEM_PROPERTY
field_34892
MAX_BG_THREADS_PROPERTY
private static final NameableExecutor
BACKGROUND_EXECUTOR
BACKGROUND_EXECUTOR
field_18035
MAIN_WORKER_EXECUTOR
private static final NameableExecutor
IO_POOL
IO_POOL
field_24477
IO_WORKER_EXECUTOR
private static final NameableExecutor
DOWNLOAD_POOL
DOWNLOAD_POOL
field_47571
DOWNLOAD_WORKER_EXECUTOR
private static final DateTimeFormatter
FILENAME_DATE_TIME_FORMATTER
FILENAME_DATE_TIME_FORMATTER
field_39824
DATE_TIME_FORMATTER
public static final int
LINEAR_LOOKUP_THRESHOLD
LINEAR_LOOKUP_THRESHOLD
field_46220
INDEXOF_MAP_THRESHOLD
private static final Set<String>
ALLOWED_UNTRUSTED_LINK_PROTOCOLS
ALLOWED_UNTRUSTED_LINK_PROTOCOLS
field_52196
SUPPORTED_URI_PROTOCOLS
public static final long
NANOS_PER_MILLI
NANOS_PER_MILLI
field_45714
NANOS_PER_MILLI
public static TimeSupplier$Nanoseconds
timeSource
timeSource
field_1128
nanoTimeSupplier
public static final com.google.common.base.Ticker
TICKER
TICKER
field_37250
TICKER
public static final UUID
NIL_UUID
NIL_UUID
field_25140
NIL_UUID
public static final FileSystemProvider
ZIP_FILE_SYSTEM_PROVIDER
ZIP_FILE_SYSTEM_PROVIDER
field_33859
JAR_FILE_SYSTEM_PROVIDER
private static Consumer<String>
thePauser
thePauser
field_34893
missingBreakpointHandler

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <K, V> Collector<Map$Entry<? extends K, ? extends V>, ?, Map<K, V>>
toMap()
toMap()
method_664()
toMap()
public static <T> Collector<T, ?, List<T>>
toMutableList()
toMutableList()
method_58579()
toArrayList()
public static <T extends Comparable<T>> String
getPropertyName(Property<T> key, Object value)
getPropertyName(Property<T> key, Object value)
method_650(class_2769<T> arg0, Object arg1)
getValueAsString(Property<T> property, Object value)
public static String
makeDescriptionId(String prefix, Identifier location)
makeDescriptionId(String prefix, Identifier location)
method_646(String arg0, class_2960 arg1)
createTranslationKey(String type, Identifier id)
public static long
getMillis()
getMillis()
method_658()
getMeasuringTimeMs()
public static long
getNanos()
getNanos()
method_648()
getMeasuringTimeNano()
public static long
getEpochMillis()
getEpochMillis()
method_659()
getEpochTimeMs()
public static String
getFilenameFormattedDateTime()
getFilenameFormattedDateTime()
method_44893()
getFormattedCurrentTime()
private static NameableExecutor
makeExecutor(String name)
makeExecutor(String name)
method_28122(String arg0)
createWorker(String name)
public static int
maxAllowedExecutorThreads()
maxAllowedExecutorThreads()
method_65951()
getAvailableBackgroundThreads()
private static int
getMaxThreads()
getMaxThreads()
method_38648()
getMaxBackgroundThreads()
public static NameableExecutor
backgroundExecutor()
backgroundExecutor()
method_18349()
getMainWorkerExecutor()
public static NameableExecutor
ioPool()
ioPool()
method_27958()
getIoWorkerExecutor()
public static NameableExecutor
nonCriticalIoPool()
nonCriticalIoPool()
method_55473()
getDownloadWorkerExecutor()
public static void
shutdownExecutors()
shutdownExecutors()
method_18350()
shutdownExecutors()
private static NameableExecutor
makeIoExecutor(String prefix, boolean daemon)
makeIoExecutor(String prefix, boolean daemon)
method_27959(String arg0, boolean arg1)
createIoWorker(String namePrefix, boolean daemon)
public static void
throwAsRuntime(Throwable throwable)
throwAsRuntime(Throwable throwable)
method_24155(Throwable arg0)
throwUnchecked(Throwable t)
private static void
onThreadException(Thread thread, Throwable throwable)
onThreadException(Thread thread, Throwable throwable)
method_18347(Thread arg0, Throwable arg1)
uncaughtExceptionHandler(Thread thread, Throwable t)
public static com.mojang.datafixers.types.Type<?>
fetchChoiceType(com.mojang.datafixers.DSL$TypeReference reference, String name)
fetchChoiceType(com.mojang.datafixers.DSL$TypeReference reference, String name)
method_29187(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
getChoiceType(com.mojang.datafixers.DSL$TypeReference typeReference, String id)
private static com.mojang.datafixers.types.Type<?>
doFetchChoiceType(com.mojang.datafixers.DSL$TypeReference reference, String name)
doFetchChoiceType(com.mojang.datafixers.DSL$TypeReference reference, String name)
method_29191(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
getChoiceTypeInternal(com.mojang.datafixers.DSL$TypeReference typeReference, String id)
public static void
runNamed(Runnable runnable, String name)
runNamed(Runnable runnable, String name)
method_64122(Runnable arg0, String arg1)
runInNamedZone(Runnable runnable, String name)
public static <T> String
getRegisteredName(Registry<T> registry, T entry)
getRegisteredName(Registry<T> registry, T entry)
method_57107(class_2378<T> arg0, T arg1)
registryValueToString(Registry<T> registry, T value)
public static <T> Predicate<T>
allOf()
allOf()
method_61210()
and()
public static <T> Predicate<T>
allOf(Predicate<? super T> condition)
allOf(Predicate<? super T> condition)
method_61189(Predicate<? super T> arg0)
and(Predicate<? super T> a)
public static <T> Predicate<T>
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2)
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2)
method_61190(Predicate<? super T> arg0, Predicate<? super T> arg1)
and(Predicate<? super T> a, Predicate<? super T> b)
public static <T> Predicate<T>
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3)
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3)
method_61192(Predicate<? super T> arg0, Predicate<? super T> arg1, Predicate<? super T> arg2)
and(Predicate<? super T> a, Predicate<? super T> b, Predicate<? super T> c)
public static <T> Predicate<T>
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4)
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4)
method_61194(Predicate<? super T> arg0, Predicate<? super T> arg1, Predicate<? super T> arg2, Predicate<? super T> arg3)
and(Predicate<? super T> a, Predicate<? super T> b, Predicate<? super T> c, Predicate<? super T> d)
public static <T> Predicate<T>
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4, Predicate<? super T> condition5)
allOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4, Predicate<? super T> condition5)
method_61196(Predicate<? super T> arg0, Predicate<? super T> arg1, Predicate<? super T> arg2, Predicate<? super T> arg3, Predicate<? super T> arg4)
and(Predicate<? super T> a, Predicate<? super T> b, Predicate<? super T> c, Predicate<? super T> d, Predicate<? super T> e)
public static <T> Predicate<T>
allOf(Predicate<? super T>... conditions)
allOf(Predicate<? super T>... conditions)
method_61198(Predicate<? super T>... arg0)
and(Predicate<? super T>... predicates)
public static <T> Predicate<T>
allOf(List<? extends Predicate<? super T>> conditions)
allOf(List<? extends Predicate<? super T>> conditions)
method_56613(List<? extends Predicate<? super T>> arg0)
allOf(List<? extends Predicate<? super T>> predicates)
public static <T> Predicate<T>
anyOf()
anyOf()
method_61211()
or()
public static <T> Predicate<T>
anyOf(Predicate<? super T> condition1)
anyOf(Predicate<? super T> condition1)
method_61199(Predicate<? super T> arg0)
or(Predicate<? super T> a)
public static <T> Predicate<T>
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2)
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2)
method_61200(Predicate<? super T> arg0, Predicate<? super T> arg1)
or(Predicate<? super T> a, Predicate<? super T> b)
public static <T> Predicate<T>
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3)
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3)
method_61202(Predicate<? super T> arg0, Predicate<? super T> arg1, Predicate<? super T> arg2)
or(Predicate<? super T> a, Predicate<? super T> b, Predicate<? super T> c)
public static <T> Predicate<T>
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4)
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4)
method_61204(Predicate<? super T> arg0, Predicate<? super T> arg1, Predicate<? super T> arg2, Predicate<? super T> arg3)
or(Predicate<? super T> a, Predicate<? super T> b, Predicate<? super T> c, Predicate<? super T> d)
public static <T> Predicate<T>
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4, Predicate<? super T> condition5)
anyOf(Predicate<? super T> condition1, Predicate<? super T> condition2, Predicate<? super T> condition3, Predicate<? super T> condition4, Predicate<? super T> condition5)
method_61206(Predicate<? super T> arg0, Predicate<? super T> arg1, Predicate<? super T> arg2, Predicate<? super T> arg3, Predicate<? super T> arg4)
or(Predicate<? super T> a, Predicate<? super T> b, Predicate<? super T> c, Predicate<? super T> d, Predicate<? super T> e)
public static <T> Predicate<T>
anyOf(Predicate<? super T>... conditions)
anyOf(Predicate<? super T>... conditions)
method_61208(Predicate<? super T>... arg0)
or(Predicate<? super T>... predicates)
public static <T> Predicate<T>
anyOf(List<? extends Predicate<? super T>> conditions)
anyOf(List<? extends Predicate<? super T>> conditions)
method_56616(List<? extends Predicate<? super T>> arg0)
anyOf(List<? extends Predicate<? super T>> predicates)
public static <T> boolean
isSymmetrical(int width, int height, List<T> ingredients)
isSymmetrical(int width, int height, List<T> ingredients)
method_59901(int arg0, int arg1, List<T> arg2)
isSymmetrical(int width, int height, List<T> list)
public static int
growByHalf(int currentSize, int minimalNewSize)
growByHalf(int currentSize, int minimalNewSize)
method_68172(int arg0, int arg1)
nextCapacity(int current, int min)
public static DateTimeFormatter
localizedDateFormatter(FormatStyle formatStyle)
localizedDateFormatter(FormatStyle formatStyle)
method_75862(FormatStyle arg0)
getDefaultLocaleFormatter(FormatStyle style)
public static Util$OperatingSystem
getPlatform()
getPlatform()
method_668()
getOperatingSystem()
public static boolean
isAarch64()
isAarch64()
method_72236()
isOnAarch64()
public static URI
parseAndValidateUntrustedUri(String uri)
parseAndValidateUntrustedUri(String uri)
method_60931(String arg0)
validateUri(String uri)
public static <T> T
findNextInIterable(Iterable<T> collection, T current)
findNextInIterable(Iterable<T> collection, T current)
method_660(Iterable<T> arg0, T arg1)
next(Iterable<T> iterable, T object)
public static <T> T
findPreviousInIterable(Iterable<T> collection, T current)
findPreviousInIterable(Iterable<T> collection, T current)
method_645(Iterable<T> arg0, T arg1)
previous(Iterable<T> iterable, T object)
public static <T> T
make(Supplier<T> factory)
make(Supplier<T> factory)
method_656(Supplier<T> arg0)
make(Supplier<T> factory)
public static <T> T
make(T t, Consumer<? super T> consumer)
make(T t, Consumer<? super T> consumer)
method_654(T arg0, Consumer<? super T> arg1)
make(T object, Consumer<? super T> initializer)
public static <K extends Enum<K>, V> Map<K, V>
makeEnumMap(Class<K> keyType, Function<K, V> function)
makeEnumMap(Class<K> keyType, Function<K, V> function)
method_63541(Class<K> arg0, Function<K, V> arg1)
mapEnum(Class<K> enumClass, Function<K, V> mapper)
public static <K, V1, V2> Map<K, V2>
mapValues(Map<K, V1> map, Function<? super V1, V2> valueMapper)
mapValues(Map<K, V1> map, Function<? super V1, V2> valueMapper)
method_65968(Map<K, V1> arg0, Function<? super V1, V2> arg1)
transformMapValues(Map<K, V1> map, Function<? super V1, V2> transformer)
public static <K, V1, V2> Map<K, V2>
mapValuesLazy(Map<K, V1> map, com.google.common.base.Function<V1, V2> valueMapper)
mapValuesLazy(Map<K, V1> map, com.google.common.base.Function<V1, V2> valueMapper)
method_65967(Map<K, V1> arg0, com.google.common.base.Function<V1, V2> arg1)
transformMapValuesLazy(Map<K, V1> map, com.google.common.base.Function<V1, V2> transformer)
public static <T extends Enum<T>> Set<T>
allOfEnumExcept(T value)
allOfEnumExcept(T value)
method_1_2910(T arg0)
allExcept(T except)
public static <V> CompletableFuture<List<V>>
sequence(List<? extends CompletableFuture<V>> futures)
sequence(List<? extends CompletableFuture<V>> futures)
method_33791(List<? extends CompletableFuture<V>> arg0)
combineSafe(List<? extends CompletableFuture<V>> futures)
public static <V> CompletableFuture<List<V>>
sequenceFailFast(List<? extends CompletableFuture<? extends V>> futures)
sequenceFailFast(List<? extends CompletableFuture<? extends V>> futures)
method_652(List<? extends CompletableFuture<? extends V>> arg0)
combine(List<? extends CompletableFuture<? extends V>> futures)
public static <V> CompletableFuture<List<V>>
sequenceFailFastAndCancel(List<? extends CompletableFuture<? extends V>> futures)
sequenceFailFastAndCancel(List<? extends CompletableFuture<? extends V>> futures)
method_43373(List<? extends CompletableFuture<? extends V>> arg0)
combineCancellable(List<? extends CompletableFuture<? extends V>> futures)
private static <V> CompletableFuture<List<V>>
fallibleSequence(List<? extends CompletableFuture<? extends V>> futures, Consumer<Throwable> failureHandler)
fallibleSequence(List<? extends CompletableFuture<? extends V>> futures, Consumer<Throwable> failureHandler)
method_43370(List<? extends CompletableFuture<? extends V>> arg0, Consumer<Throwable> arg1)
combine(List<? extends CompletableFuture<? extends V>> futures, Consumer<Throwable> exceptionHandler)
public static <T> Optional<T>
ifElse(Optional<T> input, Consumer<T> onTrue, Runnable onFalse)
ifElse(Optional<T> input, Consumer<T> onTrue, Runnable onFalse)
method_17974(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
ifPresentOrElse(Optional<T> optional, Consumer<T> presentAction, Runnable elseAction)
public static <T> Supplier<T>
name(Supplier<T> task, Supplier<String> nameGetter)
name(Supplier<T> task, Supplier<String> nameGetter)
method_41238(Supplier<T> arg0, Supplier<String> arg1)
debugSupplier(Supplier<T> supplier, Supplier<String> messageSupplier)
public static Runnable
name(Runnable task, Supplier<String> nameGetter)
name(Runnable task, Supplier<String> nameGetter)
method_18839(Runnable arg0, Supplier<String> arg1)
debugRunnable(Runnable runnable, Supplier<String> messageSupplier)
public static void
logAndPauseIfInIde(String message)
logAndPauseIfInIde(String message)
method_33559(String arg0)
logErrorOrPause(String message)
public static void
logAndPauseIfInIde(String message, Throwable throwable)
logAndPauseIfInIde(String message, Throwable throwable)
method_39977(String arg0, Throwable arg1)
logErrorOrPause(String message, Throwable throwable)
public static <T extends Throwable> T
pauseInIde(T t)
pauseInIde(T t)
method_22320(T arg0)
getFatalOrPause(T t)
public static void
setPause(Consumer<String> pauseFunction)
setPause(Consumer<String> pauseFunction)
method_38646(Consumer<String> arg0)
setMissingBreakpointHandler(Consumer<String> missingBreakpointHandler)
private static void
doPause(String message)
doPause(String message)
method_33560(String arg0)
pause(String message)
public static String
describeError(Throwable err)
describeError(Throwable err)
method_22321(Throwable arg0)
getInnermostMessage(Throwable t)
public static <T> T
getRandom(T[] array, RandomSource random)
getRandom(T[] array, RandomSource random)
method_27173(T[] arg0, class_5819 arg1)
getRandom(T[] array, Random random)
public static int
getRandom(int[] array, RandomSource random)
getRandom(int[] array, RandomSource random)
method_27172(int[] arg0, class_5819 arg1)
getRandom(int[] array, Random random)
public static <T> T
getRandom(List<T> list, RandomSource random)
getRandom(List<T> list, RandomSource random)
method_32309(List<T> arg0, class_5819 arg1)
getRandom(List<T> list, Random random)
public static <T> Optional<T>
getRandomSafe(List<T> list, RandomSource random)
getRandomSafe(List<T> list, RandomSource random)
method_40083(List<T> arg0, class_5819 arg1)
getRandomOrEmpty(List<T> list, Random random)
private static BooleanSupplier
createRenamer(Path from, Path to, CopyOption... options)
createRenamer(Path from, Path to, CopyOption... options)
method_30625(Path arg0, Path arg1, CopyOption... arg2)
renameTask(Path src, Path dest, CopyOption... copyOptions)
private static BooleanSupplier
createDeleter(Path target)
createDeleter(Path target)
method_30624(Path arg0)
deleteTask(Path path)
private static BooleanSupplier
createFileDeletedCheck(Path target)
createFileDeletedCheck(Path target)
method_30628(Path arg0)
deletionVerifyTask(Path path)
private static BooleanSupplier
createFileCreatedCheck(Path target)
createFileCreatedCheck(Path target)
method_30629(Path arg0)
existenceCheckTask(Path path)
private static boolean
executeInSequence(BooleanSupplier... operations)
executeInSequence(BooleanSupplier... operations)
method_30627(BooleanSupplier... arg0)
attemptTasks(BooleanSupplier... tasks)
private static boolean
runWithRetries(int numberOfRetries, String description, BooleanSupplier... operations)
runWithRetries(int numberOfRetries, String description, BooleanSupplier... operations)
method_30622(int arg0, String arg1, BooleanSupplier... arg2)
attemptTasks(int retries, String taskName, BooleanSupplier... tasks)
public static boolean
safeMoveFile(Path fromPath, Path toPath, CopyOption... options)
safeMoveFile(Path fromPath, Path toPath, CopyOption... options)
method_1_1640(Path arg0, Path arg1, CopyOption... arg2)
attemptRename(Path from, Path to, CopyOption... copyOptions)
public static void
safeReplaceFile(Path targetPath, Path newPath, Path backupPath)
safeReplaceFile(Path targetPath, Path newPath, Path backupPath)
method_30626(Path arg0, Path arg1, Path arg2)
backupAndReplace(Path current, Path newPath, Path backup)
public static boolean
safeReplaceOrMoveFile(Path targetPath, Path newPath, Path backupPath, boolean noRollback)
safeReplaceOrMoveFile(Path targetPath, Path newPath, Path backupPath, boolean noRollback)
method_41204(Path arg0, Path arg1, Path arg2, boolean arg3)
backupAndReplace(Path current, Path newPath, Path backup, boolean noRestoreOnFail)
public static int
offsetByCodepoints(String input, int pos, int offset)
offsetByCodepoints(String input, int pos, int offset)
method_27761(String arg0, int arg1, int arg2)
moveCursor(String string, int cursor, int delta)
public static Consumer<String>
prefix(String prefix, Consumer<String> consumer)
prefix(String prefix, Consumer<String> consumer)
method_29188(String arg0, Consumer<String> arg1)
addPrefix(String prefix, Consumer<String> consumer)
public static com.mojang.serialization.DataResult<int[]>
fixedSize(IntStream stream, int size)
fixedSize(IntStream stream, int size)
method_29190(IntStream arg0, int arg1)
decodeFixedLengthArray(IntStream stream, int length)
public static com.mojang.serialization.DataResult<long[]>
fixedSize(LongStream stream, int size)
fixedSize(LongStream stream, int size)
method_51822(LongStream arg0, int arg1)
decodeFixedLengthArray(LongStream stream, int length)
public static <T> com.mojang.serialization.DataResult<List<T>>
fixedSize(List<T> list, int size)
fixedSize(List<T> list, int size)
method_33141(List<T> arg0, int arg1)
decodeFixedLengthList(List<T> list, int length)
public static void
startTimerHackThread()
startTimerHackThread()
method_29476()
startTimerHack()
public static void
copyBetweenDirs(Path sourceDir, Path targetDir, Path sourcePath)
copyBetweenDirs(Path sourceDir, Path targetDir, Path sourcePath)
method_29775(Path arg0, Path arg1, Path arg2)
relativeCopy(Path src, Path dest, Path toCopy)
public static String
sanitizeName(String value, CharPredicate isAllowedChar)
sanitizeName(String value, CharPredicate isAllowedChar)
method_30309(String arg0, class_5462 arg1)
replaceInvalidChars(String string, CharPredicate predicate)
public static <K, V> CachedMapper<K, V>
singleKeyCache(Function<K, V> computeValueFunction)
singleKeyCache(Function<K, V> computeValueFunction)
method_48746(Function<K, V> arg0)
cachedMapper(Function<K, V> mapper)
public static <T, R> Function<T, R>
memoize(Function<T, R> function)
memoize(Function<T, R> function)
method_34866(Function<T, R> arg0)
memoize(Function<T, R> function)
public static <T, U, R> BiFunction<T, U, R>
memoize(BiFunction<T, U, R> function)
memoize(BiFunction<T, U, R> function)
method_34865(BiFunction<T, U, R> arg0)
memoize(BiFunction<T, U, R> biFunction)
public static <T> List<T>
toShuffledList(Stream<T> stream, RandomSource random)
toShuffledList(Stream<T> stream, RandomSource random)
method_43252(Stream<T> arg0, class_5819 arg1)
copyShuffled(Stream<T> stream, Random random)
public static it.unimi.dsi.fastutil.ints.IntArrayList
toShuffledList(IntStream stream, RandomSource random)
toShuffledList(IntStream stream, RandomSource random)
method_43251(IntStream arg0, class_5819 arg1)
shuffle(IntStream stream, Random random)
public static <T> List<T>
shuffledCopy(T[] array, RandomSource random)
shuffledCopy(T[] array, RandomSource random)
method_43253(T[] arg0, class_5819 arg1)
copyShuffled(T[] array, Random random)
public static <T> List<T>
shuffledCopy(it.unimi.dsi.fastutil.objects.ObjectArrayList<T> list, RandomSource random)
shuffledCopy(it.unimi.dsi.fastutil.objects.ObjectArrayList<T> list, RandomSource random)
method_43027(it.unimi.dsi.fastutil.objects.ObjectArrayList<T> arg0, class_5819 arg1)
copyShuffled(it.unimi.dsi.fastutil.objects.ObjectArrayList<T> list, Random random)
public static <T> void
shuffle(List<T> list, RandomSource random)
shuffle(List<T> list, RandomSource random)
method_43028(List<T> arg0, class_5819 arg1)
shuffle(List<T> list, Random random)
public static <T> CompletableFuture<T>
blockUntilDone(Function<Executor, CompletableFuture<T>> task)
blockUntilDone(Function<Executor, CompletableFuture<T>> task)
method_43499(Function<Executor, CompletableFuture<T>> arg0)
waitAndApply(Function<Executor, CompletableFuture<T>> resultFactory)
public static <T> T
blockUntilDone(Function<Executor, T> task, Predicate<T> completionCheck)
blockUntilDone(Function<Executor, T> task, Predicate<T> completionCheck)
method_43498(Function<Executor, T> arg0, Predicate<T> arg1)
waitAndApply(Function<Executor, T> resultFactory, Predicate<T> donePredicate)
public static <T> ToIntFunction<T>
createIndexLookup(List<T> values)
createIndexLookup(List<T> values)
method_43658(List<T> arg0)
lastIndexGetter(List<T> values)
public static <T> ToIntFunction<T>
createIndexIdentityLookup(List<T> values)
createIndexIdentityLookup(List<T> values)
method_53909(List<T> arg0)
lastIdentityIndexGetter(List<T> values)
public static <A, B> com.mojang.datafixers.Typed<B>
writeAndReadTypedOrThrow(com.mojang.datafixers.Typed<A> typed, com.mojang.datafixers.types.Type<B> newType, UnaryOperator<com.mojang.serialization.Dynamic<?>> function)
writeAndReadTypedOrThrow(com.mojang.datafixers.Typed<A> typed, com.mojang.datafixers.types.Type<B> newType, UnaryOperator<com.mojang.serialization.Dynamic<?>> function)
method_54907(com.mojang.datafixers.Typed<A> arg0, com.mojang.datafixers.types.Type<B> arg1, UnaryOperator<com.mojang.serialization.Dynamic<?>> arg2)
apply(com.mojang.datafixers.Typed<A> typed, com.mojang.datafixers.types.Type<B> type, UnaryOperator<com.mojang.serialization.Dynamic<?>> modifier)
public static <T> com.mojang.datafixers.Typed<T>
readTypedOrThrow(com.mojang.datafixers.types.Type<T> type, com.mojang.serialization.Dynamic<?> dynamic)
readTypedOrThrow(com.mojang.datafixers.types.Type<T> type, com.mojang.serialization.Dynamic<?> dynamic)
method_54908(com.mojang.datafixers.types.Type<T> arg0, com.mojang.serialization.Dynamic<?> arg1)
readTyped(com.mojang.datafixers.types.Type<T> type, com.mojang.serialization.Dynamic<?> value)
public static <T> com.mojang.datafixers.Typed<T>
readTypedOrThrow(com.mojang.datafixers.types.Type<T> type, com.mojang.serialization.Dynamic<?> dynamic, boolean acceptPartial)
readTypedOrThrow(com.mojang.datafixers.types.Type<T> type, com.mojang.serialization.Dynamic<?> dynamic, boolean acceptPartial)
method_55333(com.mojang.datafixers.types.Type<T> arg0, com.mojang.serialization.Dynamic<?> arg1, boolean arg2)
readTyped(com.mojang.datafixers.types.Type<T> type, com.mojang.serialization.Dynamic<?> value, boolean allowPartial)
public static <T> List<T>
copyAndAdd(List<T> list, T element)
copyAndAdd(List<T> list, T element)
method_57108(List<T> arg0, T arg1)
withAppended(List<T> list, T valueToAppend)
public static <T> List<T>
copyAndAdd(List<T> list, T... elements)
copyAndAdd(List<T> list, T... elements)
method_1_2911(List<T> arg0, T... arg1)
withAppended(List<T> list, T... valuesToAppend)
public static <T> List<T>
copyAndAdd(T element, List<T> list)
copyAndAdd(T element, List<T> list)
method_58272(T arg0, List<T> arg1)
withPrepended(T valueToPrepend, List<T> list)
public static <K, V> Map<K, V>
copyAndPut(Map<K, V> map, K key, V value)
copyAndPut(Map<K, V> map, K key, V value)
method_57109(Map<K, V> arg0, K arg1, V arg2)
mapWith(Map<K, V> map, K keyToAppend, V valueToAppend)