Package net.minecraft.util
Class Util
java.lang.Object
net.minecraft.util.Util
- Mappings:
Namespace Name official adintermediary net/minecraft/class_156named net/minecraft/util/Util
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ExecutorServicestatic FileSystemProviderprivate static ExecutorService(package private) static Loggerprivate static ExecutorServicestatic LongSupplierprivate static AtomicIntegerstatic UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidattemptShutdown(ExecutorService service)private static booleanattemptTasks(int retries, String taskName, BooleanSupplier[] tasks)private static booleanattemptTasks(BooleanSupplier[] tasks)static voidbackupAndReplace(File current, File newFile, File backup)static voidbackupAndReplace(Path current, Path newPath, Path backup)Copiescurrenttobackupand then replacescurrentwithnewPathstatic <V> CompletableFuture<List<V>>combine(List<? extends CompletableFuture<? extends V>> futures)Combines a list offuturesinto one future that holds a list of their results.static <V> CompletableFuture<List<V>>combineSafe(List<? extends CompletableFuture<? extends V>> futures)Combines a list offuturesinto one future that holds a list of their results.static <T> CompletableFuture<T>completeExceptionally(Throwable throwable)private static ExecutorServicestatic StringcreateTranslationKey(String type, @Nullable Identifier id)private static ExecutorServicecreateWorker(String name)static RunnabledebugRunnable(Runnable runnable, Supplier<String> messageSupplier)static RunnabledebugRunnable(String activeThreadName, Runnable task)private static BooleanSupplierdeleteTask(Path path)private static BooleanSupplierdeletionVerifyTask(Path path)static voidprivate static BooleanSupplierexistenceCheckTask(Path path)static Executorstatic @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 longstatic Stringstatic Executorstatic <T> Tstatic Executorstatic longstatic longstatic Util.OperatingSystemstatic intstatic <T> Tstatic <T> Tstatic <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> Tstatic <T> Tstatic <T, U, R> BiFunction<T,U,R>memoize(BiFunction<T,U,R> biFunction)static <T, R> Function<T,R>static intmoveCursor(String string, int cursor, int delta)Moves thecursorin thestringby adeltaamount.static <T> Tprivate static voidpause()static <T> Tstatic voidrelativeCopy(Path src, Path dest, Path toCopy)Copies a file contained in the foldersrcto the folderdest.private static BooleanSupplierrenameTask(Path src, Path dest)static StringreplaceInvalidChars(String string, CharPredicate predicate)static voidstatic voidstatic <T> Stream<T>static <T extends Throwable>
TthrowOrPause(T t)static voidstatic <T> com.mojang.serialization.DataResult<List<T>>static com.mojang.serialization.DataResult<int[]>toMap()private static voiduncaughtExceptionHandler(Thread thread, Throwable t)
-
Field Details
-
NEXT_WORKER_ID
- Mappings:
Namespace Name Mixin selector official dLad;d:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_18034Lnet/minecraft/class_156;field_18034:Ljava/util/concurrent/atomic/AtomicInteger;named NEXT_WORKER_IDLnet/minecraft/util/Util;NEXT_WORKER_ID:Ljava/util/concurrent/atomic/AtomicInteger;
-
BOOTSTRAP_EXECUTOR
- Mappings:
Namespace Name Mixin selector official eLad;e:Ljava/util/concurrent/ExecutorService;intermediary field_24622Lnet/minecraft/class_156;field_24622:Ljava/util/concurrent/ExecutorService;named BOOTSTRAP_EXECUTORLnet/minecraft/util/Util;BOOTSTRAP_EXECUTOR:Ljava/util/concurrent/ExecutorService;
-
MAIN_WORKER_EXECUTOR
- Mappings:
Namespace Name Mixin selector official fLad;f:Ljava/util/concurrent/ExecutorService;intermediary field_18035Lnet/minecraft/class_156;field_18035:Ljava/util/concurrent/ExecutorService;named MAIN_WORKER_EXECUTORLnet/minecraft/util/Util;MAIN_WORKER_EXECUTOR:Ljava/util/concurrent/ExecutorService;
-
IO_WORKER_EXECUTOR
- Mappings:
Namespace Name Mixin selector official gLad;g:Ljava/util/concurrent/ExecutorService;intermediary field_24477Lnet/minecraft/class_156;field_24477:Ljava/util/concurrent/ExecutorService;named IO_WORKER_EXECUTORLnet/minecraft/util/Util;IO_WORKER_EXECUTOR:Ljava/util/concurrent/ExecutorService;
-
nanoTimeSupplier
- Mappings:
Namespace Name Mixin selector official aLad;a:Ljava/util/function/LongSupplier;intermediary field_1128Lnet/minecraft/class_156;field_1128:Ljava/util/function/LongSupplier;named nanoTimeSupplierLnet/minecraft/util/Util;nanoTimeSupplier:Ljava/util/function/LongSupplier;
-
NIL_UUID
- Mappings:
Namespace Name Mixin selector official bLad;b:Ljava/util/UUID;intermediary field_25140Lnet/minecraft/class_156;field_25140:Ljava/util/UUID;named NIL_UUIDLnet/minecraft/util/Util;NIL_UUID:Ljava/util/UUID;
-
field_33859
- Mappings:
Namespace Name Mixin selector official cLad;c:Ljava/nio/file/spi/FileSystemProvider;intermediary field_33859Lnet/minecraft/class_156;field_33859:Ljava/nio/file/spi/FileSystemProvider;named field_33859Lnet/minecraft/util/Util;field_33859:Ljava/nio/file/spi/FileSystemProvider;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official hLad;h:Lorg/apache/logging/log4j/Logger;intermediary field_1129Lnet/minecraft/class_156;field_1129:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/util/Util;LOGGER:Lorg/apache/logging/log4j/Logger;
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
toMap
- Mappings:
Namespace Name Mixin selector official aLad;a()Ljava/util/stream/Collector;intermediary method_664Lnet/minecraft/class_156;method_664()Ljava/util/stream/Collector;named toMapLnet/minecraft/util/Util;toMap()Ljava/util/stream/Collector;
-
getValueAsString
public static <T extends Comparable<T>> String getValueAsString(Property<T> property, Object value)- Mappings:
Namespace Name Mixin selector official aLad;a(Lclv;Ljava/lang/Object;)Ljava/lang/String;intermediary method_650Lnet/minecraft/class_156;method_650(Lnet/minecraft/class_2769;Ljava/lang/Object;)Ljava/lang/String;named getValueAsStringLnet/minecraft/util/Util;getValueAsString(Lnet/minecraft/state/property/Property;Ljava/lang/Object;)Ljava/lang/String;
-
createTranslationKey
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/String;Lww;)Ljava/lang/String;intermediary method_646Lnet/minecraft/class_156;method_646(Ljava/lang/String;Lnet/minecraft/class_2960;)Ljava/lang/String;named createTranslationKeyLnet/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 bLad;b()Jintermediary method_658Lnet/minecraft/class_156;method_658()Jnamed getMeasuringTimeMsLnet/minecraft/util/Util;getMeasuringTimeMs()J
-
getMeasuringTimeNano
public static long getMeasuringTimeNano()- Mappings:
Namespace Name Mixin selector official cLad;c()Jintermediary method_648Lnet/minecraft/class_156;method_648()Jnamed getMeasuringTimeNanoLnet/minecraft/util/Util;getMeasuringTimeNano()J
-
getEpochTimeMs
public static long getEpochTimeMs()- Mappings:
Namespace Name Mixin selector official dLad;d()Jintermediary method_659Lnet/minecraft/class_156;method_659()Jnamed getEpochTimeMsLnet/minecraft/util/Util;getEpochTimeMs()J
-
createWorker
- Mappings:
Namespace Name Mixin selector official bLad;b(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;intermediary method_28122Lnet/minecraft/class_156;method_28122(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;named createWorkerLnet/minecraft/util/Util;createWorker(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
-
getBootstrapExecutor
- Mappings:
Namespace Name Mixin selector official eLad;e()Ljava/util/concurrent/Executor;intermediary method_28124Lnet/minecraft/class_156;method_28124()Ljava/util/concurrent/Executor;named getBootstrapExecutorLnet/minecraft/util/Util;getBootstrapExecutor()Ljava/util/concurrent/Executor;
-
getMainWorkerExecutor
- Mappings:
Namespace Name Mixin selector official fLad;f()Ljava/util/concurrent/Executor;intermediary method_18349Lnet/minecraft/class_156;method_18349()Ljava/util/concurrent/Executor;named getMainWorkerExecutorLnet/minecraft/util/Util;getMainWorkerExecutor()Ljava/util/concurrent/Executor;
-
getIoWorkerExecutor
- Mappings:
Namespace Name Mixin selector official gLad;g()Ljava/util/concurrent/Executor;intermediary method_27958Lnet/minecraft/class_156;method_27958()Ljava/util/concurrent/Executor;named getIoWorkerExecutorLnet/minecraft/util/Util;getIoWorkerExecutor()Ljava/util/concurrent/Executor;
-
shutdownExecutors
public static void shutdownExecutors()- Mappings:
Namespace Name Mixin selector official hLad;h()Vintermediary method_18350Lnet/minecraft/class_156;method_18350()Vnamed shutdownExecutorsLnet/minecraft/util/Util;shutdownExecutors()V
-
attemptShutdown
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/concurrent/ExecutorService;)Vintermediary method_27957Lnet/minecraft/class_156;method_27957(Ljava/util/concurrent/ExecutorService;)Vnamed attemptShutdownLnet/minecraft/util/Util;attemptShutdown(Ljava/util/concurrent/ExecutorService;)V
-
createIoWorker
- Mappings:
Namespace Name Mixin selector official mLad;m()Ljava/util/concurrent/ExecutorService;intermediary method_27959Lnet/minecraft/class_156;method_27959()Ljava/util/concurrent/ExecutorService;named createIoWorkerLnet/minecraft/util/Util;createIoWorker()Ljava/util/concurrent/ExecutorService;
-
completeExceptionally
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;intermediary method_19483Lnet/minecraft/class_156;method_19483(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;named completeExceptionallyLnet/minecraft/util/Util;completeExceptionally(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
-
throwUnchecked
- Mappings:
Namespace Name Mixin selector official bLad;b(Ljava/lang/Throwable;)Vintermediary method_24155Lnet/minecraft/class_156;method_24155(Ljava/lang/Throwable;)Vnamed throwUncheckedLnet/minecraft/util/Util;throwUnchecked(Ljava/lang/Throwable;)V
-
uncaughtExceptionHandler
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/Thread;Ljava/lang/Throwable;)Vintermediary method_18347Lnet/minecraft/class_156;method_18347(Ljava/lang/Thread;Ljava/lang/Throwable;)Vnamed uncaughtExceptionHandlerLnet/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 aLad;a(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;intermediary method_29187Lnet/minecraft/class_156;method_29187(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;named getChoiceTypeLnet/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 bLad;b(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;intermediary method_29191Lnet/minecraft/class_156;method_29191(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;named getChoiceTypeInternalLnet/minecraft/util/Util;getChoiceTypeInternal(Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
-
debugRunnable
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Runnable;intermediary method_33787Lnet/minecraft/class_156;method_33787(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Runnable;named debugRunnableLnet/minecraft/util/Util;debugRunnable(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Runnable;
-
getOperatingSystem
- Mappings:
Namespace Name Mixin selector official iLad;i()Lad$b;intermediary method_668Lnet/minecraft/class_156;method_668()Lnet/minecraft/class_156$class_158;named getOperatingSystemLnet/minecraft/util/Util;getOperatingSystem()Lnet/minecraft/util/Util$OperatingSystem;
-
getJVMFlags
- Mappings:
Namespace Name Mixin selector official jLad;j()Ljava/util/stream/Stream;intermediary method_651Lnet/minecraft/class_156;method_651()Ljava/util/stream/Stream;named getJVMFlagsLnet/minecraft/util/Util;getJVMFlags()Ljava/util/stream/Stream;
-
getLast
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/List;)Ljava/lang/Object;intermediary method_20793Lnet/minecraft/class_156;method_20793(Ljava/util/List;)Ljava/lang/Object;named getLastLnet/minecraft/util/Util;getLast(Ljava/util/List;)Ljava/lang/Object;
-
next
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;intermediary method_660Lnet/minecraft/class_156;method_660(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;named nextLnet/minecraft/util/Util;next(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
-
previous
- Mappings:
Namespace Name Mixin selector official bLad;b(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;intermediary method_645Lnet/minecraft/class_156;method_645(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;named previousLnet/minecraft/util/Util;previous(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
-
make
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/function/Supplier;)Ljava/lang/Object;intermediary method_656Lnet/minecraft/class_156;method_656(Ljava/util/function/Supplier;)Ljava/lang/Object;named makeLnet/minecraft/util/Util;make(Ljava/util/function/Supplier;)Ljava/lang/Object;
-
make
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;intermediary method_654Lnet/minecraft/class_156;method_654(Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;named makeLnet/minecraft/util/Util;make(Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;
-
identityHashStrategy
- Mappings:
Namespace Name Mixin selector official kLad;k()Lit/unimi/dsi/fastutil/Hash$Strategy;intermediary method_655Lnet/minecraft/class_156;method_655()Lit/unimi/dsi/fastutil/Hash$Strategy;named identityHashStrategyLnet/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 offuturesinto 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:
combine(List)- Mappings:
Namespace Name Mixin selector official bLad;b(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;intermediary method_33791Lnet/minecraft/class_156;method_33791(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;named combineSafeLnet/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 offuturesinto 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:
combineSafe(List)- Mappings:
Namespace Name Mixin selector official cLad;c(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;intermediary method_652Lnet/minecraft/class_156;method_652(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;named combineLnet/minecraft/util/Util;combine(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
-
stream
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/Optional;)Ljava/util/stream/Stream;intermediary method_17815Lnet/minecraft/class_156;method_17815(Ljava/util/Optional;)Ljava/util/stream/Stream;named streamLnet/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 aLad;a(Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;intermediary method_17974Lnet/minecraft/class_156;method_17974(Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;named ifPresentOrElseLnet/minecraft/util/Util;ifPresentOrElse(Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;
-
debugRunnable
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;intermediary method_18839Lnet/minecraft/class_156;method_18839(Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;named debugRunnableLnet/minecraft/util/Util;debugRunnable(Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;
-
error
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/String;)Vintermediary method_33559Lnet/minecraft/class_156;method_33559(Ljava/lang/String;)Vnamed errorLnet/minecraft/util/Util;error(Ljava/lang/String;)V
-
throwOrPause
- Mappings:
Namespace Name Mixin selector official cLad;c(Ljava/lang/Throwable;)Ljava/lang/Throwable;intermediary method_22320Lnet/minecraft/class_156;method_22320(Ljava/lang/Throwable;)Ljava/lang/Throwable;named throwOrPauseLnet/minecraft/util/Util;throwOrPause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
-
pause
private static void pause()- Mappings:
Namespace Name Mixin selector official nLad;n()Vintermediary method_33560Lnet/minecraft/class_156;method_33560()Vnamed pauseLnet/minecraft/util/Util;pause()V
-
getInnermostMessage
- Mappings:
Namespace Name Mixin selector official dLad;d(Ljava/lang/Throwable;)Ljava/lang/String;intermediary method_22321Lnet/minecraft/class_156;method_22321(Ljava/lang/Throwable;)Ljava/lang/String;named getInnermostMessageLnet/minecraft/util/Util;getInnermostMessage(Ljava/lang/Throwable;)Ljava/lang/String;
-
getRandom
- Mappings:
Namespace Name Mixin selector official aLad;a([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;intermediary method_27173Lnet/minecraft/class_156;method_27173([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;named getRandomLnet/minecraft/util/Util;getRandom([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;
-
getRandom
- Mappings:
Namespace Name Mixin selector official aLad;a([ILjava/util/Random;)Iintermediary method_27172Lnet/minecraft/class_156;method_27172([ILjava/util/Random;)Inamed getRandomLnet/minecraft/util/Util;getRandom([ILjava/util/Random;)I
-
getRandom
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;intermediary method_32309Lnet/minecraft/class_156;method_32309(Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;named getRandomLnet/minecraft/util/Util;getRandom(Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;
-
renameTask
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;intermediary method_30625Lnet/minecraft/class_156;method_30625(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;named renameTaskLnet/minecraft/util/Util;renameTask(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
deleteTask
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;intermediary method_30624Lnet/minecraft/class_156;method_30624(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;named deleteTaskLnet/minecraft/util/Util;deleteTask(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
deletionVerifyTask
- Mappings:
Namespace Name Mixin selector official bLad;b(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;intermediary method_30628Lnet/minecraft/class_156;method_30628(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;named deletionVerifyTaskLnet/minecraft/util/Util;deletionVerifyTask(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
existenceCheckTask
- Mappings:
Namespace Name Mixin selector official cLad;c(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;intermediary method_30629Lnet/minecraft/class_156;method_30629(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;named existenceCheckTaskLnet/minecraft/util/Util;existenceCheckTask(Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
-
attemptTasks
- Mappings:
Namespace Name Mixin selector official aLad;a([Ljava/util/function/BooleanSupplier;)Zintermediary method_30627Lnet/minecraft/class_156;method_30627([Ljava/util/function/BooleanSupplier;)Znamed attemptTasksLnet/minecraft/util/Util;attemptTasks([Ljava/util/function/BooleanSupplier;)Z
-
attemptTasks
- Mappings:
Namespace Name Mixin selector official aLad;a(ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Zintermediary method_30622Lnet/minecraft/class_156;method_30622(ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Znamed attemptTasksLnet/minecraft/util/Util;attemptTasks(ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Z
-
backupAndReplace
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/io/File;Ljava/io/File;Ljava/io/File;)Vintermediary method_27760Lnet/minecraft/class_156;method_27760(Ljava/io/File;Ljava/io/File;Ljava/io/File;)Vnamed backupAndReplaceLnet/minecraft/util/Util;backupAndReplace(Ljava/io/File;Ljava/io/File;Ljava/io/File;)V
-
backupAndReplace
Copiescurrenttobackupand then replacescurrentwithnewPath- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Vintermediary method_30626Lnet/minecraft/class_156;method_30626(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Vnamed backupAndReplaceLnet/minecraft/util/Util;backupAndReplace(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
-
moveCursor
Moves thecursorin thestringby adeltaamount. Skips surrogate characters.- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/String;II)Iintermediary method_27761Lnet/minecraft/class_156;method_27761(Ljava/lang/String;II)Inamed moveCursorLnet/minecraft/util/Util;moveCursor(Ljava/lang/String;II)I
-
addPrefix
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;intermediary method_29188Lnet/minecraft/class_156;method_29188(Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;named addPrefixLnet/minecraft/util/Util;addPrefix(Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
-
toArray
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;intermediary method_29190Lnet/minecraft/class_156;method_29190(Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;named toArrayLnet/minecraft/util/Util;toArray(Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;
-
toArray
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/List;I)Lcom/mojang/serialization/DataResult;intermediary method_33141Lnet/minecraft/class_156;method_33141(Ljava/util/List;I)Lcom/mojang/serialization/DataResult;named toArrayLnet/minecraft/util/Util;toArray(Ljava/util/List;I)Lcom/mojang/serialization/DataResult;
-
startTimerHack
public static void startTimerHack()- Mappings:
Namespace Name Mixin selector official lLad;l()Vintermediary method_29476Lnet/minecraft/class_156;method_29476()Vnamed startTimerHackLnet/minecraft/util/Util;startTimerHack()V
-
relativeCopy
Copies a file contained in the foldersrcto the folderdest. This will replicate any path structure that may exist betweensrcandtoCopy.- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLad;b(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Vintermediary method_29775Lnet/minecraft/class_156;method_29775(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)Vnamed relativeCopyLnet/minecraft/util/Util;relativeCopy(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
-
replaceInvalidChars
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/lang/String;Lo;)Ljava/lang/String;intermediary method_30309Lnet/minecraft/class_156;method_30309(Ljava/lang/String;Lnet/minecraft/class_5462;)Ljava/lang/String;named replaceInvalidCharsLnet/minecraft/util/Util;replaceInvalidChars(Ljava/lang/String;Lnet/minecraft/client/util/CharPredicate;)Ljava/lang/String;
-
memoize
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/function/Function;)Ljava/util/function/Function;intermediary method_34866Lnet/minecraft/class_156;method_34866(Ljava/util/function/Function;)Ljava/util/function/Function;named memoizeLnet/minecraft/util/Util;memoize(Ljava/util/function/Function;)Ljava/util/function/Function;
-
memoize
- Mappings:
Namespace Name Mixin selector official aLad;a(Ljava/util/function/BiFunction;)Ljava/util/function/BiFunction;intermediary method_34865Lnet/minecraft/class_156;method_34865(Ljava/util/function/BiFunction;)Ljava/util/function/BiFunction;named memoizeLnet/minecraft/util/Util;memoize(Ljava/util/function/BiFunction;)Ljava/util/function/BiFunction;
-