Class HashOps
java.lang.Object
net.minecraft.util.HashOps
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<HashCode>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HashOpsprivate final HashCodestatic final byte[]static final byte[]private static final byte[]private final HashCodeprivate final HashCodeprivate static final byte[]private final HashCodeprivate static final Comparator<HashCode> private final HashFunctionprivate static final Comparator<Map.Entry<HashCode, HashCode>> private static final Comparator<com.mojang.datafixers.util.Pair<HashCode, HashCode>> private static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byte[]private final HashCodeprivate static final com.mojang.serialization.DataResult<Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U> UcreateBoolean(boolean value) createByte(byte value) createByteList(ByteBuffer input) createDouble(double value) createFloat(float value) createInt(int value) createIntList(IntStream input) createList(Stream<HashCode> input) createLong(long value) createLongList(LongStream input) createNumeric(Number value) createShort(short value) createString(String value) empty()emptyMap()com.mojang.serialization.DataResult<HashCode> com.mojang.serialization.DataResult<Boolean> getBooleanValue(HashCode input) com.mojang.serialization.DataResult<ByteBuffer> getByteBuffer(HashCode input) com.mojang.serialization.DataResult<HashCode> getGeneric(HashCode input, HashCode key) com.mojang.serialization.DataResult<IntStream> getIntStream(HashCode input) com.mojang.serialization.DataResult<LongStream> getLongStream(HashCode input) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<HashCode>> com.mojang.serialization.DataResult<Consumer<BiConsumer<HashCode, HashCode>>> getMapEntries(HashCode input) getMapValues(HashCode input) com.mojang.serialization.DataResult<Number> getNumberValue(HashCode input) getNumberValue(HashCode input, Number defaultValue) com.mojang.serialization.DataResult<String> getStringValue(HashCode input) private static Hasherprivate static Hasherprivate booleancom.mojang.serialization.ListBuilder<HashCode> com.mojang.serialization.RecordBuilder<HashCode> com.mojang.serialization.DataResult<HashCode> mergeToList(HashCode prefix, HashCode value) com.mojang.serialization.DataResult<HashCode> mergeToList(HashCode prefix, List<HashCode> values) com.mojang.serialization.DataResult<HashCode> mergeToMap(HashCode prefix, HashCode key, HashCode value) com.mojang.serialization.DataResult<HashCode> mergeToMap(HashCode prefix, com.mojang.serialization.MapLike<HashCode> values) com.mojang.serialization.DataResult<HashCode> mergeToMap(HashCode prefix, Map<HashCode, HashCode> values) toString()private static <T> com.mojang.serialization.DataResult<T> Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mojang.serialization.DynamicOps
compressMaps, convertList, convertMap, mergeToPrimitive, withDecoder, withEncoder, withParser
-
Field Details
-
TAG_EMPTY
private static final byte TAG_EMPTY- See Also:
-
TAG_MAP_START
private static final byte TAG_MAP_START- See Also:
-
TAG_MAP_END
private static final byte TAG_MAP_END- See Also:
-
TAG_LIST_START
private static final byte TAG_LIST_START- See Also:
-
TAG_LIST_END
private static final byte TAG_LIST_END- See Also:
-
TAG_BYTE
private static final byte TAG_BYTE- See Also:
-
TAG_SHORT
private static final byte TAG_SHORT- See Also:
-
TAG_INT
private static final byte TAG_INT- See Also:
-
TAG_LONG
private static final byte TAG_LONG- See Also:
-
TAG_FLOAT
private static final byte TAG_FLOAT- See Also:
-
TAG_DOUBLE
private static final byte TAG_DOUBLE- See Also:
-
TAG_STRING
private static final byte TAG_STRING- See Also:
-
TAG_BOOLEAN
private static final byte TAG_BOOLEAN- See Also:
-
TAG_BYTE_ARRAY_START
private static final byte TAG_BYTE_ARRAY_START- See Also:
-
TAG_BYTE_ARRAY_END
private static final byte TAG_BYTE_ARRAY_END- See Also:
-
TAG_INT_ARRAY_START
private static final byte TAG_INT_ARRAY_START- See Also:
-
TAG_INT_ARRAY_END
private static final byte TAG_INT_ARRAY_END- See Also:
-
TAG_LONG_ARRAY_START
private static final byte TAG_LONG_ARRAY_START- See Also:
-
TAG_LONG_ARRAY_END
private static final byte TAG_LONG_ARRAY_END- See Also:
-
EMPTY_PAYLOAD
private static final byte[] EMPTY_PAYLOAD -
FALSE_PAYLOAD
private static final byte[] FALSE_PAYLOAD -
TRUE_PAYLOAD
private static final byte[] TRUE_PAYLOAD -
EMPTY_MAP_PAYLOAD
public static final byte[] EMPTY_MAP_PAYLOAD -
EMPTY_LIST_PAYLOAD
public static final byte[] EMPTY_LIST_PAYLOAD -
UNSUPPORTED_OPERATION_ERROR
-
HASH_COMPARATOR
-
MAP_ENTRY_ORDER
-
MAPLIKE_ENTRY_ORDER
private static final Comparator<com.mojang.datafixers.util.Pair<HashCode,HashCode>> MAPLIKE_ENTRY_ORDER -
CRC32C_INSTANCE
-
hashFunction
-
empty
-
emptyMap
-
emptyList
-
trueHash
-
falseHash
-
-
Constructor Details
-
HashOps
-
-
Method Details
-
empty
-
emptyMap
-
emptyList
-
createNumeric
-
createByte
-
createShort
-
createInt
-
createLong
-
createFloat
-
createDouble
-
createString
-
createBoolean
-
hashMap
-
hashMap
-
createMap
-
createMap
-
createList
-
createByteList
- Specified by:
createByteListin interfacecom.mojang.serialization.DynamicOps<HashCode>
-
createIntList
-
createLongList
- Specified by:
createLongListin interfacecom.mojang.serialization.DynamicOps<HashCode>
-
remove
-
mapBuilder
-
listBuilder
-
toString
-
convertTo
-
getNumberValue
-
set
-
update
-
updateGeneric
-
unsupported
private static <T> com.mojang.serialization.DataResult<T> unsupported() -
get
-
getGeneric
-
getNumberValue
-
getBooleanValue
-
getStringValue
-
isEmpty
-
mergeToList
-
mergeToList
-
mergeToMap
-
mergeToMap
-
mergeToMap
-
getMapValues
-
getMapEntries
-
getStream
-
getList
-
getMap
-
getByteBuffer
- Specified by:
getByteBufferin interfacecom.mojang.serialization.DynamicOps<HashCode>
-
getIntStream
-
getLongStream
- Specified by:
getLongStreamin interfacecom.mojang.serialization.DynamicOps<HashCode>
-