net.minecraft

public class Util

x
net.minecraft.Util
net.minecraft.class_156
net.minecraft.unmapped.C_lvarvugc
net.minecraft.util.Util
net.minecraft.util.Util
net.minecraft.server.v1_16_R3.SystemUtils

Field summary

Modifier and TypeField
private static final AtomicInteger
c
WORKER_COUNT
field_18034
f_gshsyyvs
NEXT_WORKER_ID
field_215090_b
private static final ExecutorService
d
BOOTSTRAP_EXECUTOR
field_24622
f_mwatldea
BOOTSTRAP_EXECUTOR
field_240974_d_
private static final ExecutorService
e
BACKGROUND_EXECUTOR
field_18035
f_zimcxepj
MAIN_WORKER_EXECUTOR
field_215091_c
private static final ExecutorService
f
IO_POOL
field_24477
f_kmtdmvfj
IO_WORKER_EXECUTOR
field_240975_f_
public static LongSupplier
a
timeSource
field_1128
f_qqybtqnr
nanoTimeSupplier
field_211180_a
public static final UUID
b
NIL_UUID
field_25140
f_ahvemmlp
NIL_UUID
field_240973_b_
private static final org.apache.logging.log4j.Logger
g
LOGGER
field_1129
f_faeenrac
LOGGER
field_195650_a

Method summary

Modifier and TypeMethod
public static <K, V> Collector<Map$Entry<? extends K, ? extends V>, ?, Map<K, V>>
a()
toMap()
method_664()
m_ftciccth()
toMap()
func_199749_a()
public static <T extends Comparable<T>> String
a(cfj<T> arg0, Object arg1)
getPropertyName(Property<T> arg0, Object arg1)
method_650(class_2769<T> arg0, Object arg1)
m_vgutcxlm(C_vzlztuyw<T> arg0, Object arg1)
getValueAsString(Property<T> arg0, Object arg1)
func_200269_a(Property<T> arg0, Object arg1)
public static String
a(String arg0, vk arg1)
makeDescriptionId(String arg0, ResourceLocation arg1)
method_646(String arg0, class_2960 arg1)
m_wpeqdapc(String arg0, C_ncpywfca arg1)
createTranslationKey(String type, Identifier id)
func_200697_a(String arg0, ResourceLocation arg1)
public static long
b()
getMillis()
method_658()
m_qjjrrmre()
getMeasuringTimeMs()
func_211177_b()
getMonotonicMillis()
public static long
c()
getNanos()
method_648()
m_xtrebjef()
getMeasuringTimeNano()
func_211178_c()
getMonotonicNanos()
public static long
d()
getEpochMillis()
method_659()
m_elihuwxg()
getEpochTimeMs()
func_211179_d()
getTimeMillis()
private static ExecutorService
a(String arg0)
makeExecutor(String arg0)
method_28122(String arg0)
m_mytcolvj(String arg0)
createWorker(String name)
func_240979_a_(String arg0)
public static Executor
e()
bootstrapExecutor()
method_28124()
m_wbsjgjfk()
getBootstrapExecutor()
func_240991_e_()
public static Executor
f()
backgroundExecutor()
method_18349()
m_hnnezaif()
getMainWorkerExecutor()
func_215072_e()
public static Executor
g()
ioPool()
method_27958()
m_gatbnpas()
getIoWorkerExecutor()
func_240992_g_()
public static void
h()
shutdownExecutors()
method_18350()
m_kcnenfvs()
shutdownExecutors()
func_240993_h_()
private static void
a(ExecutorService arg0)
shutdownExecutor(ExecutorService arg0)
method_27957(ExecutorService arg0)
m_oaamqqhk(ExecutorService arg0)
attemptShutdown(ExecutorService service)
func_240985_a_(ExecutorService arg0)
private static ExecutorService
n()
makeIoExecutor()
method_27959()
m_wkoofosm()
createIoWorker()
func_240995_n_()
private static void
a(Thread arg0, Throwable arg1)
onThreadException(Thread arg0, Throwable arg1)
method_18347(Thread arg0, Throwable arg1)
m_eprinqay(Thread arg0, Throwable arg1)
method_18347(Thread arg0, Throwable arg1)
func_240983_a_(Thread arg0, Throwable arg1)
public static com.mojang.datafixers.types.Type<?>
a(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
fetchChoiceType(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
method_29187(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
m_yvfdsqix(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
getChoiceType(com.mojang.datafixers.DSL$TypeReference typeReference, String id)
func_240976_a_(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
private static com.mojang.datafixers.types.Type<?>
b(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
doFetchChoiceType(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
method_29191(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
m_cclbyaoh(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
getChoiceTypeInternal(com.mojang.datafixers.DSL$TypeReference typeReference, String id)
func_240990_b_(com.mojang.datafixers.DSL$TypeReference arg0, String arg1)
public static Util$OS
i()
getPlatform()
method_668()
m_rmfqlirq()
getOperatingSystem()
func_110647_a()
public static Stream<String>
j()
getVmArguments()
method_651()
m_fppetslt()
getJVMFlags()
func_211565_f()
public static <T> T
a(List<T> arg0)
lastOf(List<T> arg0)
method_20793(List<T> arg0)
m_jzncpgce(List<T> arg0)
getLast(List<T> list)
func_223378_a(List<T> arg0)
public static <T> T
a(Iterable<T> arg0, T arg1)
findNextInIterable(Iterable<T> arg0, T arg1)
method_660(Iterable<T> arg0, T arg1)
m_nshqaczo(Iterable<T> arg0, T arg1)
next(Iterable<T> arg0, T arg1)
func_195647_a(Iterable<T> arg0, T arg1)
public static <T> T
b(Iterable<T> arg0, T arg1)
findPreviousInIterable(Iterable<T> arg0, T arg1)
method_645(Iterable<T> arg0, T arg1)
m_vcjnmiex(Iterable<T> arg0, T arg1)
previous(Iterable<T> arg0, T arg1)
func_195648_b(Iterable<T> arg0, T arg1)
public static <T> T
a(Supplier<T> arg0)
make(Supplier<T> arg0)
method_656(Supplier<T> arg0)
m_wwakmmib(Supplier<T> arg0)
make(Supplier<T> factory)
func_199748_a(Supplier<T> arg0)
public static <T> T
a(T arg0, Consumer<T> arg1)
make(T arg0, Consumer<T> arg1)
method_654(T arg0, Consumer<T> arg1)
m_ewfqjfze(T arg0, Consumer<T> arg1)
make(T object, Consumer<T> initializer)
func_200696_a(T arg0, Consumer<T> arg1)
public static <K> it.unimi.dsi.fastutil.Hash$Strategy<K>
k()
identityStrategy()
method_655()
m_lbsfwkrf()
identityHashStrategy()
func_212443_g()
public static <V> CompletableFuture<List<V>>
b(List<? extends CompletableFuture<? extends V>> arg0)
sequence(List<? extends CompletableFuture<? extends V>> arg0)
method_652(List<? extends CompletableFuture<? extends V>> arg0)
m_kpixdiyc(List<? extends CompletableFuture<? extends V>> arg0)
combine(List<? extends CompletableFuture<? extends V>> futures)
func_215079_b(List<? extends CompletableFuture<? extends V>> arg0)
public static <T> Stream<T>
a(Optional<? extends T> arg0)
toStream(Optional<? extends T> arg0)
method_17815(Optional<? extends T> arg0)
m_hlfyewqw(Optional<? extends T> arg0)
stream(Optional<? extends T> arg0)
func_215081_a(Optional<? extends T> arg0)
public static <T> Optional<T>
a(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
ifElse(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
method_17974(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
m_qpdauvpg(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
ifPresentOrElse(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
func_215077_a(Optional<T> arg0, Consumer<T> arg1, Runnable arg2)
public static Runnable
a(Runnable arg0, Supplier<String> arg1)
name(Runnable arg0, Supplier<String> arg1)
method_18839(Runnable arg0, Supplier<String> arg1)
m_skylxoye(Runnable arg0, Supplier<String> arg1)
debugRunnable(Runnable runnable, Supplier<String> messageSupplier)
func_215075_a(Runnable arg0, Supplier<String> arg1)
public static <T extends Throwable> T
c(T arg0)
pauseInIde(T arg0)
method_22320(T arg0)
m_eguhqvxr(T arg0)
throwOrPause(T t)
func_229757_c_(T arg0)
public static String
d(Throwable arg0)
describeError(Throwable arg0)
method_22321(Throwable arg0)
m_gxlhducm(Throwable arg0)
getInnermostMessage(Throwable t)
func_229758_d_(Throwable arg0)
public static <T> T
a(T[] arg0, Random arg1)
getRandom(T[] arg0, Random arg1)
method_27173(T[] arg0, Random arg1)
m_vyeltxpm(T[] arg0, Random arg1)
getRandom(T[] array, Random random)
func_240989_a_(T[] arg0, Random arg1)
public static int
a(int[] arg0, Random arg1)
getRandom(int[] arg0, Random arg1)
method_27172(int[] arg0, Random arg1)
m_poeexonq(int[] arg0, Random arg1)
getRandom(int[] array, Random random)
func_240988_a_(int[] arg0, Random arg1)
private static BooleanSupplier
a(Path arg0, Path arg1)
createRenamer(Path arg0, Path arg1)
method_30625(Path arg0, Path arg1)
m_lyrrqjlr(Path arg0, Path arg1)
renameTask(Path src, Path dest)
func_244363_a(Path arg0, Path arg1)
private static BooleanSupplier
a(Path arg0)
createDeleter(Path arg0)
method_30624(Path arg0)
m_kbwjpgkm(Path arg0)
deleteTask(Path arg0)
func_244362_a(Path arg0)
private static BooleanSupplier
b(Path arg0)
createFileDeletedCheck(Path arg0)
method_30628(Path arg0)
m_teucbfzd(Path arg0)
deletionVerifyTask(Path path)
func_244366_b(Path arg0)
private static BooleanSupplier
c(Path arg0)
createFileCreatedCheck(Path arg0)
method_30629(Path arg0)
m_aidzvymm(Path arg0)
existenceCheckTask(Path path)
func_244367_c(Path arg0)
private static boolean
a(BooleanSupplier... arg0)
executeInSequence(BooleanSupplier... arg0)
method_30627(BooleanSupplier... arg0)
m_uduxgasu(BooleanSupplier... arg0)
attemptTasks(BooleanSupplier... arg0)
func_244365_a(BooleanSupplier... arg0)
private static boolean
a(int arg0, String arg1, BooleanSupplier... arg2)
runWithRetries(int arg0, String arg1, BooleanSupplier... arg2)
method_30622(int arg0, String arg1, BooleanSupplier... arg2)
m_yrtzlgsc(int arg0, String arg1, BooleanSupplier... arg2)
attemptTasks(int retries, String taskName, BooleanSupplier... tasks)
func_244359_a(int arg0, String arg1, BooleanSupplier... arg2)
public static void
a(File arg0, File arg1, File arg2)
safeReplaceFile(File arg0, File arg1, File arg2)
method_27760(File arg0, File arg1, File arg2)
m_gteslhvq(File arg0, File arg1, File arg2)
backupAndReplace(File current, File newFile, File backup)
func_240977_a_(File arg0, File arg1, File arg2)
public static void
a(Path arg0, Path arg1, Path arg2)
safeReplaceFile(Path arg0, Path arg1, Path arg2)
method_30626(Path arg0, Path arg1, Path arg2)
m_qfufoqzt(Path arg0, Path arg1, Path arg2)
backupAndReplace(Path current, Path newPath, Path backup)
func_244364_a(Path arg0, Path arg1, Path arg2)
public static Consumer<String>
a(String arg0, Consumer<String> arg1)
prefix(String arg0, Consumer<String> arg1)
method_29188(String arg0, Consumer<String> arg1)
m_wpgsfqzf(String arg0, Consumer<String> arg1)
method_29188(String arg0, Consumer<String> arg1)
func_240982_a_(String arg0, Consumer<String> arg1)
public static com.mojang.serialization.DataResult<int[]>
a(IntStream arg0, int arg1)
fixedSize(IntStream arg0, int arg1)
method_29190(IntStream arg0, int arg1)
m_jwzecoof(IntStream arg0, int arg1)
toIntArray(IntStream intStream, int length)
func_240987_a_(IntStream arg0, int arg1)
public static void
l()
startTimerHackThread()
method_29476()
m_oigccakw()
startTimerHack()
func_240994_l_()
public static <T> CompletableFuture<T>
a(Throwable arg0)
failedFuture(Throwable arg0)
method_19483(Throwable arg0)
m_wgykosui(Throwable arg0)
completeExceptionally(Throwable arg0)
func_215087_a(Throwable arg0)
public static void
b(Throwable arg0)
throwAsRuntime(Throwable arg0)
method_24155(Throwable arg0)
m_vgcxoqmg(Throwable arg0)
throwUnchecked(Throwable arg0)
func_229756_b_(Throwable arg0)
public static int
a(String arg0, int arg1, int arg2)
offsetByCodepoints(String arg0, int arg1, int arg2)
method_27761(String arg0, int arg1, int arg2)
m_vwigcqkp(String arg0, int arg1, int arg2)
moveCursor(String string, int cursor, int delta)
func_240980_a_(String arg0, int arg1, int arg2)
public static void
b(Path arg0, Path arg1, Path arg2)
copyBetweenDirs(Path arg0, Path arg1, Path arg2)
method_29775(Path arg0, Path arg1, Path arg2)
m_ydhyxwlc(Path arg0, Path arg1, Path arg2)
relativeCopy(Path src, Path dest, Path toCopy)
func_240984_a_(Path arg0, Path arg1, Path arg2)
public static String
a(String arg0, j arg1)
sanitizeName(String arg0, CharPredicate arg1)
method_30309(String arg0, class_5462 arg1)
m_lgfbfuzz(String arg0, C_zpuwkbhr arg1)
replaceInvalidChars(String arg0, CharPredicate predicate)
func_244361_a(String arg0, ICharacterPredicate arg1)