Package net.minecraft.util
package net.minecraft.util
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
Util
contains most of
the utility methods.-
ClassDescriptionAn enum indicating the hand interaction's result.A record holding session services used by the server.An enum representing an entity's arm.CachedMapper<K,
V> A mapper that caches the latest input-output pair, so that repeated calls with the same argument do not call the expensive mapper function.Represents an object which can be cleared.Contains constants for commonly used colors in0xAARRGGBB
format.An enum representing 16 dye colors.A buffered input stream that uses a fixed-size buffer array.An enum holding formattings.An enum representing an entity's hand.An identifier used to identify things.A piece of extra data that a subclass may attach to an identifier.An exception that tracks the names of the invalid files and the path to the invalid element in a hierarchical tree structure (such as JSON).An exception thrown when parsing or constructing anIdentifier
that contains an invalid character.Contains utility methods for spawning item entities scattered around a certain position.Provides methods for validating and deserializing JSON elements.JsonSerializing.GsonSerializer<E,T extends JsonSerializableType<E>> JsonSerializing.SerializerBuilder<E,T extends JsonSerializableType<E>> A builder for serializing types to JSON that can either obtain a type from a registry to handle JSON conversion or handle with a custom logic bound to a type.Lazy<T>Deprecated.Represents something that can be named, such as block entities or entities.Contains utility methods that accept or return nullable values.Pair<A,B> A class holding path-related utility methods.Contains string-related helper methods.An interface, implemented by enums, that allows the enum to be serialized by codecs.Deprecated.Fetches the hardware and software information to populate crash reports and debug profiles.An exception that has a user-friendlyText
attached.ThrowableDeliverer<T extends Throwable>A class holding utility methods related to time and durations.Utilities to perform a topological sort.An option whose text can be translated.TypeFilter<B,T extends B> A filter that determines if an object of some supertypeB
can be treated as an object of some subtypeT
.A class holding various utility methods.An enum representing the operating system of the current platform.A ZIP compressor builds up a ZIP file.
Suppliers.memoize(com.google.common.base.Supplier<T>)
instead.