yarn/mappings/net/minecraft/util/Util.mapping

126 lines
6.2 KiB
Plaintext

CLASS net/minecraft/class_156 net/minecraft/util/Util
FIELD field_1128 nanoTimeSupplier Ljava/util/function/LongSupplier;
FIELD field_1129 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_18034 NEXT_WORKER_ID Ljava/util/concurrent/atomic/AtomicInteger;
FIELD field_18035 MAIN_WORKER_EXECUTOR Ljava/util/concurrent/ExecutorService;
FIELD field_24477 IO_WORKER_EXECUTOR Ljava/util/concurrent/ExecutorService;
FIELD field_24622 BOOTSTRAP_EXECUTOR Ljava/util/concurrent/ExecutorService;
FIELD field_25140 NIL_UUID Ljava/util/UUID;
METHOD method_17815 stream (Ljava/util/Optional;)Ljava/util/stream/Stream;
METHOD method_17974 ifPresentOrElse (Ljava/util/Optional;Ljava/util/function/Consumer;Ljava/lang/Runnable;)Ljava/util/Optional;
METHOD method_18347 uncaughtExceptionHandler (Ljava/lang/Thread;Ljava/lang/Throwable;)V
ARG 0 thread
ARG 1 t
METHOD method_18349 getMainWorkerExecutor ()Ljava/util/concurrent/Executor;
METHOD method_18350 shutdownExecutors ()V
METHOD method_18839 debugRunnable (Ljava/lang/Runnable;Ljava/util/function/Supplier;)Ljava/lang/Runnable;
ARG 0 runnable
ARG 1 messageSupplier
METHOD method_19483 completeExceptionally (Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
METHOD method_20793 getLast (Ljava/util/List;)Ljava/lang/Object;
ARG 0 list
METHOD method_22320 throwOrPause (Ljava/lang/Throwable;)Ljava/lang/Throwable;
ARG 0 t
METHOD method_22321 getInnermostMessage (Ljava/lang/Throwable;)Ljava/lang/String;
ARG 0 t
METHOD method_24155 throwUnchecked (Ljava/lang/Throwable;)V
ARG 0 t
METHOD method_27172 getRandom ([ILjava/util/Random;)I
ARG 0 array
ARG 1 random
METHOD method_27173 getRandom ([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;
ARG 0 array
ARG 1 random
METHOD method_27760 backupAndReplace (Ljava/io/File;Ljava/io/File;Ljava/io/File;)V
ARG 0 current
ARG 1 newFile
ARG 2 backup
METHOD method_27761 moveCursor (Ljava/lang/String;II)I
COMMENT Moves the {@code cursor} in the {@code string} by a {@code delta} amount.
COMMENT Skips surrogate characters.
ARG 0 string
ARG 1 cursor
ARG 2 delta
METHOD method_27957 attemptShutdown (Ljava/util/concurrent/ExecutorService;)V
ARG 0 service
METHOD method_27958 getIoWorkerExecutor ()Ljava/util/concurrent/Executor;
METHOD method_27959 createIoWorker ()Ljava/util/concurrent/ExecutorService;
METHOD method_28122 createWorker (Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
ARG 0 name
METHOD method_28124 getBootstrapExecutor ()Ljava/util/concurrent/Executor;
METHOD method_29187 getChoiceType (Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
ARG 0 typeReference
ARG 1 id
METHOD method_29188 addPrefix (Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
ARG 0 prefix
ARG 1 consumer
METHOD method_29190 toArray (Ljava/util/stream/IntStream;I)Lcom/mojang/serialization/DataResult;
ARG 0 stream
ARG 1 length
METHOD method_29191 getChoiceTypeInternal (Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)Lcom/mojang/datafixers/types/Type;
ARG 0 typeReference
ARG 1 id
METHOD method_29476 startTimerHack ()V
METHOD method_29775 relativeCopy (Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
COMMENT Copies a file contained in the folder {@code src} to the folder {@code dest}.
COMMENT This will replicate any path structure that may exist between {@code src} and {@code toCopy}.
ARG 0 src
ARG 1 dest
ARG 2 toCopy
METHOD method_30309 replaceInvalidChars (Ljava/lang/String;Lnet/minecraft/class_5462;)Ljava/lang/String;
ARG 1 predicate
METHOD method_30622 attemptTasks (ILjava/lang/String;[Ljava/util/function/BooleanSupplier;)Z
ARG 0 retries
ARG 1 taskName
ARG 2 tasks
METHOD method_30624 deleteTask (Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
METHOD method_30625 renameTask (Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
ARG 0 src
ARG 1 dest
METHOD method_30626 backupAndReplace (Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
COMMENT Copies {@code current} to {@code backup} and then replaces {@code current} with {@code newPath}
ARG 0 current
ARG 1 newPath
ARG 2 backup
METHOD method_30627 attemptTasks ([Ljava/util/function/BooleanSupplier;)Z
METHOD method_30628 deletionVerifyTask (Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
ARG 0 path
METHOD method_30629 existenceCheckTask (Ljava/nio/file/Path;)Ljava/util/function/BooleanSupplier;
ARG 0 path
METHOD method_32309 getRandom (Ljava/util/List;Ljava/util/Random;)Ljava/lang/Object;
ARG 0 list
ARG 1 random
METHOD method_33141 toArray (Ljava/util/stream/DoubleStream;I)Lcom/mojang/serialization/DataResult;
ARG 0 stream
ARG 1 length
METHOD method_645 previous (Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
METHOD method_646 createTranslationKey (Ljava/lang/String;Lnet/minecraft/class_2960;)Ljava/lang/String;
ARG 0 type
ARG 1 id
METHOD method_648 getMeasuringTimeNano ()J
METHOD method_650 getValueAsString (Lnet/minecraft/class_2769;Ljava/lang/Object;)Ljava/lang/String;
METHOD method_651 getJVMFlags ()Ljava/util/stream/Stream;
METHOD method_652 combine (Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
ARG 0 futures
METHOD method_654 make (Ljava/lang/Object;Ljava/util/function/Consumer;)Ljava/lang/Object;
ARG 0 object
ARG 1 initializer
METHOD method_655 identityHashStrategy ()Lit/unimi/dsi/fastutil/Hash$Strategy;
METHOD method_656 make (Ljava/util/function/Supplier;)Ljava/lang/Object;
ARG 0 factory
METHOD method_658 getMeasuringTimeMs ()J
METHOD method_659 getEpochTimeMs ()J
METHOD method_660 next (Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
METHOD method_664 toMap ()Ljava/util/stream/Collector;
METHOD method_667 getLogger ()Lorg/apache/logging/log4j/Logger;
METHOD method_668 getOperatingSystem ()Lnet/minecraft/class_156$class_158;
CLASS class_157 IdentityHashStrategy
CLASS class_158 OperatingSystem
METHOD method_669 open (Ljava/net/URL;)V
ARG 1 url
METHOD method_670 open (Ljava/lang/String;)V
METHOD method_672 open (Ljava/io/File;)V
METHOD method_673 open (Ljava/net/URI;)V
METHOD method_674 getURLOpenCommand (Ljava/net/URL;)[Ljava/lang/String;
ARG 1 url