Package net.minecraft.util
Class Util
java.lang.Object
net.minecraft.util.Util
- Mappings:
Namespace Name official ad
intermediary net/minecraft/class_156
named net/minecraft/util/Util
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ExecutorService
private static final ExecutorService
static final FileSystemProvider
(package private) static final Logger
private static final ExecutorService
private static final String
private static final int
static LongSupplier
private static final AtomicInteger
static final UUID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
attemptShutdown
(ExecutorService service) private static boolean
attemptTasks
(int retries, String taskName, BooleanSupplier[] tasks) private static boolean
attemptTasks
(BooleanSupplier[] tasks) static void
backupAndReplace
(File current, File newFile, File backup) static void
backupAndReplace
(Path current, Path newPath, Path backup) Copiescurrent
tobackup
and then replacescurrent
withnewPath
static <V> CompletableFuture<List<V>>
combine
(List<? extends CompletableFuture<? extends V>> futures) Combines a list offutures
into one future that holds a list of their results.static <V> CompletableFuture<List<V>>
combineSafe
(List<? extends CompletableFuture<? extends V>> futures) Combines a list offutures
into one future that holds a list of their results.static <T> CompletableFuture<T>
completeExceptionally
(Throwable throwable) private static ExecutorService
static String
createTranslationKey
(String type, @Nullable Identifier id) private static ExecutorService
createWorker
(String name) static Runnable
debugRunnable
(Runnable runnable, Supplier<String> messageSupplier) static Runnable
debugRunnable
(String activeThreadName, Runnable task) static <V> Supplier<V>
debugSupplier
(String activeThreadName, Supplier<V> supplier) private static BooleanSupplier
deleteTask
(Path path) private static BooleanSupplier
deletionVerifyTask
(Path path) static void
private static BooleanSupplier
existenceCheckTask
(Path path) static ExecutorService
static @Nullable com.mojang.datafixers.types.Type<?>
getChoiceType
(com.mojang.datafixers.DSL.TypeReference typeReference, String id) private static @Nullable com.mojang.datafixers.types.Type<?>
getChoiceTypeInternal
(com.mojang.datafixers.DSL.TypeReference typeReference, String id) static long
static String
static ExecutorService
static <T> T
static ExecutorService
private static int
static long
static long
static Util.OperatingSystem
static int
static <T> T
static <T> T
static <T extends Comparable<T>>
StringgetValueAsString
(Property<T> property, Object value) static <K> Hash.Strategy<K>
static <T> Optional<T>
ifPresentOrElse
(Optional<T> optional, Consumer<T> presentAction, Runnable elseAction) static <T> T
static <T> T
static <T,
U, R> BiFunction<T, U, R> memoize
(BiFunction<T, U, R> biFunction) static <T,
R> Function<T, R> static int
moveCursor
(String string, int cursor, int delta) Moves thecursor
in thestring
by adelta
amount.static <T> T
private static void
static <T> T
static void
relativeCopy
(Path src, Path dest, Path toCopy) Copies a file contained in the foldersrc
to the folderdest
.private static BooleanSupplier
renameTask
(Path src, Path dest) static String
replaceInvalidChars
(String string, CharPredicate predicate) static void
setMissingBreakpointHandler
(Consumer<String> missingBreakpointHandler) static void
static void
static <T> Stream<T>
static <T extends Throwable>
TthrowOrPause
(T t) static void
static <T> com.mojang.serialization.DataResult<List<T>>
static com.mojang.serialization.DataResult<int[]>
toMap()
private static void
uncaughtExceptionHandler
(Thread thread, Throwable t)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official d
Lad;d:Lorg/apache/logging/log4j/Logger;
intermediary field_1129
Lnet/minecraft/class_156;field_1129:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/util/Util;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MAX_PARALLELISM
private static final int MAX_PARALLELISM- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lad;e:I
intermediary field_34891
Lnet/minecraft/class_156;field_34891:I
named MAX_PARALLELISM
Lnet/minecraft/util/Util;MAX_PARALLELISM:I
-
MAX_BG_THREADS_PROPERTY
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lad;f:Ljava/lang/String;
intermediary field_34892
Lnet/minecraft/class_156;field_34892:Ljava/lang/String;
named MAX_BG_THREADS_PROPERTY
Lnet/minecraft/util/Util;MAX_BG_THREADS_PROPERTY:Ljava/lang/String;
-
NEXT_WORKER_ID
- Mappings:
Namespace Name Mixin selector official g
Lad;g:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_18034
Lnet/minecraft/class_156;field_18034:Ljava/util/concurrent/atomic/AtomicInteger;
named NEXT_WORKER_ID
Lnet/minecraft/util/Util;NEXT_WORKER_ID:Ljava/util/concurrent/atomic/AtomicInteger;
-
BOOTSTRAP_EXECUTOR
- Mappings:
Namespace Name Mixin selector official h
Lad;h:Ljava/util/concurrent/ExecutorService;
intermediary field_24622
Lnet/minecraft/class_156;field_24622:Ljava/util/concurrent/ExecutorService;
named BOOTSTRAP_EXECUTOR
Lnet/minecraft/util/Util;BOOTSTRAP_EXECUTOR:Ljava/util/concurrent/ExecutorService;
-
MAIN_WORKER_EXECUTOR
- Mappings:
Namespace Name Mixin selector official i
Lad;i:Ljava/util/concurrent/ExecutorService;
intermediary field_18035
Lnet/minecraft/class_156;field_18035:Ljava/util/concurrent/ExecutorService;
named MAIN_WORKER_EXECUTOR
Lnet/minecraft/util/Util;MAIN_WORKER_EXECUTOR:Ljava/util/concurrent/ExecutorService;
-
IO_WORKER_EXECUTOR
- Mappings:
Namespace Name Mixin selector official j
Lad;j:Ljava/util/concurrent/ExecutorService;
intermediary field_24477
Lnet/minecraft/class_156;field_24477:Ljava/util/concurrent/ExecutorService;
named IO_WORKER_EXECUTOR
Lnet/minecraft/util/Util;IO_WORKER_EXECUTOR:Ljava/util/concurrent/ExecutorService;
-
nanoTimeSupplier
- Mappings:
Namespace Name Mixin selector official a
Lad;a:Ljava/util/function/LongSupplier;
intermediary field_1128
Lnet/minecraft/class_156;field_1128:Ljava/util/function/LongSupplier;
named nanoTimeSupplier
Lnet/minecraft/util/Util;nanoTimeSupplier:Ljava/util/function/LongSupplier;
-
NIL_UUID
- Mappings:
Namespace Name Mixin selector official b
Lad;b:Ljava/util/UUID;
intermediary field_25140
Lnet/minecraft/class_156;field_25140:Ljava/util/UUID;
named NIL_UUID
Lnet/minecraft/util/Util;NIL_UUID:Ljava/util/UUID;
-
JAR_FILE_SYSTEM_PROVIDER
- Mappings:
Namespace Name Mixin selector official c
Lad;c:Ljava/nio/file/spi/FileSystemProvider;
intermediary field_33859
Lnet/minecraft/class_156;field_33859:Ljava/nio/file/spi/FileSystemProvider;
named JAR_FILE_SYSTEM_PROVIDER
Lnet/minecraft/util/Util;JAR_FILE_SYSTEM_PROVIDER:Ljava/nio/file/spi/FileSystemProvider;
-
missingBreakpointHandler
- Mappings:
Namespace Name Mixin selector official k
Lad;k:Ljava/util/function/Consumer;
intermediary field_34893
Lnet/minecraft/class_156;field_34893:Ljava/util/function/Consumer;
named missingBreakpointHandler
Lnet/minecraft/util/Util;missingBreakpointHandler:Ljava/util/function/Consumer;
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
toMap
- Mappings:
Namespace Name Mixin selector official a
Lad;a()Ljava/util/stream/Collector;
intermediary method_664
Lnet/minecraft/class_156;method_664()Ljava/util/stream/Collector;
named toMap
Lnet/minecraft/util/Util;toMap()Ljava/util/stream/Collector;
-
getValueAsString
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Lcpg;Ljava/lang/Object;)Ljava/lang/String;
intermediary method_650
Lnet/minecraft/class_156;method_650(Lnet/minecraft/class_2769;Ljava/lang/Object;)Ljava/lang/String;
named getValueAsString
Lnet/minecraft/util/Util;getValueAsString(Lnet/minecraft/state/property/Property;Ljava/lang/Object;)Ljava/lang/String;
-
createTranslationKey
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;Lyh;)Ljava/lang/String;
intermediary method_646
Lnet/minecraft/class_156;method_646(Ljava/lang/String;Lnet/minecraft/class_2960;)Ljava/lang/String;
named createTranslationKey
Lnet/minecraft/util/Util;createTranslationKey(Ljava/lang/String;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
-
getMeasuringTimeMs
public static long getMeasuringTimeMs()- Mappings:
Namespace Name Mixin selector official b
Lad;b()J
intermediary method_658
Lnet/minecraft/class_156;method_658()J
named getMeasuringTimeMs
Lnet/minecraft/util/Util;getMeasuringTimeMs()J
-
getMeasuringTimeNano
public static long getMeasuringTimeNano()- Mappings:
Namespace Name Mixin selector official c
Lad;c()J
intermediary method_648
Lnet/minecraft/class_156;method_648()J
named getMeasuringTimeNano
Lnet/minecraft/util/Util;getMeasuringTimeNano()J
-
getEpochTimeMs
public static long getEpochTimeMs()- Mappings:
Namespace Name Mixin selector official d
Lad;d()J
intermediary method_659
Lnet/minecraft/class_156;method_659()J
named getEpochTimeMs
Lnet/minecraft/util/Util;getEpochTimeMs()J
-
createWorker
- Mappings:
Namespace Name Mixin selector official b
Lad;b(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
intermediary method_28122
Lnet/minecraft/class_156;method_28122(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
named createWorker
Lnet/minecraft/util/Util;createWorker(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
-
getMaxBackgroundThreads
private static int getMaxBackgroundThreads()- Mappings:
Namespace Name Mixin selector official m
Lad;m()I
intermediary method_38648
Lnet/minecraft/class_156;method_38648()I
named getMaxBackgroundThreads
Lnet/minecraft/util/Util;getMaxBackgroundThreads()I
-
getBootstrapExecutor
- Mappings:
Namespace Name Mixin selector official e
Lad;e()Ljava/util/concurrent/ExecutorService;
intermediary method_28124
Lnet/minecraft/class_156;method_28124()Ljava/util/concurrent/ExecutorService;
named getBootstrapExecutor
Lnet/minecraft/util/Util;getBootstrapExecutor()Ljava/util/concurrent/ExecutorService;
-
getMainWorkerExecutor
- Mappings:
Namespace Name Mixin selector official f
Lad;f()Ljava/util/concurrent/ExecutorService;
intermediary method_18349
Lnet/minecraft/class_156;method_18349()Ljava/util/concurrent/ExecutorService;
named getMainWorkerExecutor
Lnet/minecraft/util/Util;getMainWorkerExecutor()Ljava/util/concurrent/ExecutorService;
-
getIoWorkerExecutor
- Mappings:
Namespace Name Mixin selector official g
Lad;g()Ljava/util/concurrent/ExecutorService;
intermediary method_27958
Lnet/minecraft/class_156;method_27958()Ljava/util/concurrent/ExecutorService;
named getIoWorkerExecutor
Lnet/minecraft/util/Util;getIoWorkerExecutor()Ljava/util/concurrent/ExecutorService;
-
shutdownExecutors
public static void shutdownExecutors()- Mappings:
Namespace Name Mixin selector official h
Lad;h()V
intermediary method_18350
Lnet/minecraft/class_156;method_18350()V
named shutdownExecutors
Lnet/minecraft/util/Util;shutdownExecutors()V
-
attemptShutdown
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/concurrent/ExecutorService;)V
intermediary method_27957
Lnet/minecraft/class_156;method_27957(Ljava/util/concurrent/ExecutorService;)V
named attemptShutdown
Lnet/minecraft/util/Util;attemptShutdown(Ljava/util/concurrent/ExecutorService;)V
-
createIoWorker
- Mappings:
Namespace Name Mixin selector official n
Lad;n()Ljava/util/concurrent/ExecutorService;
intermediary method_27959
Lnet/minecraft/class_156;method_27959()Ljava/util/concurrent/ExecutorService;
named createIoWorker
Lnet/minecraft/util/Util;createIoWorker()Ljava/util/concurrent/ExecutorService;
-
completeExceptionally
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
intermediary method_19483
Lnet/minecraft/class_156;method_19483(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
named completeExceptionally
Lnet/minecraft/util/Util;completeExceptionally(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
-
throwUnchecked
- Mappings:
Namespace Name Mixin selector official b
Lad;b(Ljava/lang/Throwable;)V
intermediary method_24155
Lnet/minecraft/class_156;method_24155(Ljava/lang/Throwable;)V
named throwUnchecked
Lnet/minecraft/util/Util;throwUnchecked(Ljava/lang/Throwable;)V
-
uncaughtExceptionHandler
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/Thread;Ljava/lang/Throwable;)V
intermediary method_18347
Lnet/minecraft/class_156;method_18347(Ljava/lang/Thread;Ljava/lang/Throwable;)V
named uncaughtExceptionHandler
Lnet/minecraft/util/Util;uncaughtExceptionHandler(Ljava/lang/Thread;Ljava/lang/Throwable;)V
-
getChoiceType
@Nullable public static @Nullable com.mojang.datafixers.types.Type<?> getChoiceType(com.mojang.datafixers.DSL.TypeReference typeReference, String id) - Mappings:
Namespace Name Mixin selector official a
Lad;a(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
intermediary method_29187
Lnet/minecraft/class_156;method_29187(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
named getChoiceType
Lnet/minecraft/util/Util;getChoiceType(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
-
getChoiceTypeInternal
@Nullable private static @Nullable com.mojang.datafixers.types.Type<?> getChoiceTypeInternal(com.mojang.datafixers.DSL.TypeReference typeReference, String id) - Mappings:
Namespace Name Mixin selector official b
Lad;b(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
intermediary method_29191
Lnet/minecraft/class_156;method_29191(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
named getChoiceTypeInternal
Lnet/minecraft/util/Util;getChoiceTypeInternal(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
-
debugRunnable
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Runnable;
intermediary method_33787
Lnet/minecraft/class_156;method_33787(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Runnable;
named debugRunnable
Lnet/minecraft/util/Util;debugRunnable(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Runnable;
-
debugSupplier
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;
intermediary method_37910
Lnet/minecraft/class_156;method_37910(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;
named debugSupplier
Lnet/minecraft/util/Util;debugSupplier(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;
-
getOperatingSystem
- Mappings:
Namespace Name Mixin selector official i
Lad;i()Lad$b;
intermediary method_668
Lnet/minecraft/class_156;method_668()Lnet/minecraft/class_156$class_158;
named getOperatingSystem
Lnet/minecraft/util/Util;getOperatingSystem()Lnet/minecraft/util/Util$OperatingSystem;
-
getJVMFlags
- Mappings:
Namespace Name Mixin selector official j
Lad;j()Ljava/util/stream/Stream;
intermediary method_651
Lnet/minecraft/class_156;method_651()Ljava/util/stream/Stream;
named getJVMFlags
Lnet/minecraft/util/Util;getJVMFlags()Ljava/util/stream/Stream;
-
getLast
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/List;)Ljava/lang/Object;
intermediary method_20793
Lnet/minecraft/class_156;method_20793(Ljava/util/List;)Ljava/lang/Object;
named getLast
Lnet/minecraft/util/Util;getLast(Ljava/util/List;)Ljava/lang/Object;
-
next
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_660
Lnet/minecraft/class_156;method_660(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
named next
Lnet/minecraft/util/Util;next(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
-
previous
- Mappings:
Namespace Name Mixin selector official b
Lad;b(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_645
Lnet/minecraft/class_156;method_645(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
named previous
Lnet/minecraft/util/Util;previous(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
-
make
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/function/Supplier;)Ljava/lang/Object;
intermediary method_656
Lnet/minecraft/class_156;method_656(Ljava/util/function/Supplier;)Ljava/lang/Object;
named make
Lnet/minecraft/util/Util;make(Ljava/util/function/Supplier;)Ljava/lang/Object;
-
make
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;
intermediary method_654
Lnet/minecraft/class_156;method_654(Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;
named make
Lnet/minecraft/util/Util;make(Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;
-
identityHashStrategy
- Mappings:
Namespace Name Mixin selector official k
Lad;k()Lit/unimi/dsi/fastutil/Hash$Strategy;
intermediary method_655
Lnet/minecraft/class_156;method_655()Lit/unimi/dsi/fastutil/Hash$Strategy;
named identityHashStrategy
Lnet/minecraft/util/Util;identityHashStrategy()Lit/unimi/dsi/fastutil/Hash$Strategy;
-
combineSafe
public static <V> CompletableFuture<List<V>> combineSafe(List<? extends CompletableFuture<? extends V>> futures) Combines a list offutures
into one future that holds a list of their results.This version expects all futures to complete successfully and is not optimized in case any of the input futures throws.
- Parameters:
futures
- the completable futures to combine- Returns:
- the combined future
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lad;b(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
intermediary method_33791
Lnet/minecraft/class_156;method_33791(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
named combineSafe
Lnet/minecraft/util/Util;combineSafe(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
-
combine
public static <V> CompletableFuture<List<V>> combine(List<? extends CompletableFuture<? extends V>> futures) Combines a list offutures
into one future that holds a list of their results.The returned future is fail-fast; if any of the input futures fails, this returned future will be immediately completed exceptionally than waiting for other input futures.
- Parameters:
futures
- the completable futures to combine- Returns:
- the combined future
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lad;c(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
intermediary method_652
Lnet/minecraft/class_156;method_652(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
named combine
Lnet/minecraft/util/Util;combine(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
-
stream
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/Optional;)Ljava/util/stream/Stream;
intermediary method_17815
Lnet/minecraft/class_156;method_17815(Ljava/util/Optional;)Ljava/util/stream/Stream;
named stream
Lnet/minecraft/util/Util;stream(Ljava/util/Optional;)Ljava/util/stream/Stream;
-
ifPresentOrElse
public static <T> Optional<T> ifPresentOrElse(Optional<T> optional, Consumer<T> presentAction, Runnable elseAction) - Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;
intermediary method_17974
Lnet/minecraft/class_156;method_17974(Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;
named ifPresentOrElse
Lnet/minecraft/util/Util;ifPresentOrElse(Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;
-
debugRunnable
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;
intermediary method_18839
Lnet/minecraft/class_156;method_18839(Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;
named debugRunnable
Lnet/minecraft/util/Util;debugRunnable(Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;
-
error
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;)V
intermediary method_33559
Lnet/minecraft/class_156;method_33559(Ljava/lang/String;)V
named error
Lnet/minecraft/util/Util;error(Ljava/lang/String;)V
-
throwOrPause
- Mappings:
Namespace Name Mixin selector official c
Lad;c(Ljava/lang/Throwable;)Ljava/lang/Throwable;
intermediary method_22320
Lnet/minecraft/class_156;method_22320(Ljava/lang/Throwable;)Ljava/lang/Throwable;
named throwOrPause
Lnet/minecraft/util/Util;throwOrPause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
-
setMissingBreakpointHandler
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/function/Consumer;)V
intermediary method_38646
Lnet/minecraft/class_156;method_38646(Ljava/util/function/Consumer;)V
named setMissingBreakpointHandler
Lnet/minecraft/util/Util;setMissingBreakpointHandler(Ljava/util/function/Consumer;)V
-
pause
- Mappings:
Namespace Name Mixin selector official c
Lad;c(Ljava/lang/String;)V
intermediary method_33560
Lnet/minecraft/class_156;method_33560(Ljava/lang/String;)V
named pause
Lnet/minecraft/util/Util;pause(Ljava/lang/String;)V
-
getInnermostMessage
- Mappings:
Namespace Name Mixin selector official d
Lad;d(Ljava/lang/Throwable;)Ljava/lang/String;
intermediary method_22321
Lnet/minecraft/class_156;method_22321(Ljava/lang/Throwable;)Ljava/lang/String;
named getInnermostMessage
Lnet/minecraft/util/Util;getInnermostMessage(Ljava/lang/Throwable;)Ljava/lang/String;
-
getRandom
- Mappings:
Namespace Name Mixin selector official a
Lad;a([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;
intermediary method_27173
Lnet/minecraft/class_156;method_27173([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;
named getRandom
Lnet/minecraft/util/Util;getRandom([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;
-
getRandom
- Mappings:
Namespace Name Mixin selector official a
Lad;a([ILjava/util/Random;)I
intermediary method_27172
Lnet/minecraft/class_156;method_27172([ILjava/util/Random;)I
named getRandom
Lnet/minecraft/util/Util;getRandom([ILjava/util/Random;)I
-
getRandom
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;
intermediary method_32309
Lnet/minecraft/class_156;method_32309(Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;
named getRandom
Lnet/minecraft/util/Util;getRandom(Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;
-
renameTask
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
intermediary method_30625
Lnet/minecraft/class_156;method_30625(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
named renameTask
Lnet/minecraft/util/Util;renameTask(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
deleteTask
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
intermediary method_30624
Lnet/minecraft/class_156;method_30624(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
named deleteTask
Lnet/minecraft/util/Util;deleteTask(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
deletionVerifyTask
- Mappings:
Namespace Name Mixin selector official b
Lad;b(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
intermediary method_30628
Lnet/minecraft/class_156;method_30628(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
named deletionVerifyTask
Lnet/minecraft/util/Util;deletionVerifyTask(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
existenceCheckTask
- Mappings:
Namespace Name Mixin selector official c
Lad;c(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
intermediary method_30629
Lnet/minecraft/class_156;method_30629(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
named existenceCheckTask
Lnet/minecraft/util/Util;existenceCheckTask(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
attemptTasks
- Mappings:
Namespace Name Mixin selector official a
Lad;a([Ljava/util/function/BooleanSupplier;)Z
intermediary method_30627
Lnet/minecraft/class_156;method_30627([Ljava/util/function/BooleanSupplier;)Z
named attemptTasks
Lnet/minecraft/util/Util;attemptTasks([Ljava/util/function/BooleanSupplier;)Z
-
attemptTasks
- Mappings:
Namespace Name Mixin selector official a
Lad;a(ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Z
intermediary method_30622
Lnet/minecraft/class_156;method_30622(ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Z
named attemptTasks
Lnet/minecraft/util/Util;attemptTasks(ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Z
-
backupAndReplace
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/io/File;Ljava/io/File;Ljava/io/File;)V
intermediary method_27760
Lnet/minecraft/class_156;method_27760(Ljava/io/File;Ljava/io/File;Ljava/io/File;)V
named backupAndReplace
Lnet/minecraft/util/Util;backupAndReplace(Ljava/io/File;Ljava/io/File;Ljava/io/File;)V
-
backupAndReplace
Copiescurrent
tobackup
and then replacescurrent
withnewPath
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
intermediary method_30626
Lnet/minecraft/class_156;method_30626(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
named backupAndReplace
Lnet/minecraft/util/Util;backupAndReplace(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
-
moveCursor
Moves thecursor
in thestring
by adelta
amount. Skips surrogate characters.- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;II)I
intermediary method_27761
Lnet/minecraft/class_156;method_27761(Ljava/lang/String;II)I
named moveCursor
Lnet/minecraft/util/Util;moveCursor(Ljava/lang/String;II)I
-
addPrefix
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
intermediary method_29188
Lnet/minecraft/class_156;method_29188(Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
named addPrefix
Lnet/minecraft/util/Util;addPrefix(Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
-
toArray
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;
intermediary method_29190
Lnet/minecraft/class_156;method_29190(Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;
named toArray
Lnet/minecraft/util/Util;toArray(Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;
-
toArray
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/List;I)Lcom/mojang/serialization/DataResult;
intermediary method_33141
Lnet/minecraft/class_156;method_33141(Ljava/util/List;I)Lcom/mojang/serialization/DataResult;
named toArray
Lnet/minecraft/util/Util;toArray(Ljava/util/List;I)Lcom/mojang/serialization/DataResult;
-
startTimerHack
public static void startTimerHack()- Mappings:
Namespace Name Mixin selector official l
Lad;l()V
intermediary method_29476
Lnet/minecraft/class_156;method_29476()V
named startTimerHack
Lnet/minecraft/util/Util;startTimerHack()V
-
relativeCopy
Copies a file contained in the foldersrc
to the folderdest
. This will replicate any path structure that may exist betweensrc
andtoCopy
.- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lad;b(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
intermediary method_29775
Lnet/minecraft/class_156;method_29775(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
named relativeCopy
Lnet/minecraft/util/Util;relativeCopy(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
-
replaceInvalidChars
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/lang/String;Lo;)Ljava/lang/String;
intermediary method_30309
Lnet/minecraft/class_156;method_30309(Ljava/lang/String;Lnet/minecraft/class_5462;)Ljava/lang/String;
named replaceInvalidChars
Lnet/minecraft/util/Util;replaceInvalidChars(Ljava/lang/String;Lnet/minecraft/client/util/CharPredicate;)Ljava/lang/String;
-
memoize
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/function/Function;)Ljava/util/function/Function;
intermediary method_34866
Lnet/minecraft/class_156;method_34866(Ljava/util/function/Function;)Ljava/util/function/Function;
named memoize
Lnet/minecraft/util/Util;memoize(Ljava/util/function/Function;)Ljava/util/function/Function;
-
memoize
- Mappings:
Namespace Name Mixin selector official a
Lad;a(Ljava/util/function/BiFunction;)Ljava/util/function/BiFunction;
intermediary method_34865
Lnet/minecraft/class_156;method_34865(Ljava/util/function/BiFunction;)Ljava/util/function/BiFunction;
named memoize
Lnet/minecraft/util/Util;memoize(Ljava/util/function/BiFunction;)Ljava/util/function/BiFunction;
-