类 HashOps

java.lang.Object
net.minecraft.util.HashOps
所有已实现的接口:
com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>

public class HashOps extends Object implements com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    (专用程序包) class 
     
    (专用程序包) final class 
     
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final HashOps
     
    (专用程序包) final com.google.common.hash.HashCode
     
    static final byte[]
     
    static final byte[]
     
    private static final byte[]
     
    private final com.google.common.hash.HashCode
     
    private final com.google.common.hash.HashCode
     
    private static final byte[]
     
    private final com.google.common.hash.HashCode
     
    private static final Comparator<com.google.common.hash.HashCode>
     
    (专用程序包) final com.google.common.hash.HashFunction
     
    private static final Comparator<Map.Entry<com.google.common.hash.HashCode,com.google.common.hash.HashCode>>
     
    private static final Comparator<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>>
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte
     
    private static final byte[]
     
    private final com.google.common.hash.HashCode
     
    private static final com.mojang.serialization.DataResult<Object>
     
  • 构造器概要

    构造器
    构造器
    说明
    HashOps(com.google.common.hash.HashFunction p_412557_)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    <U> U
    convertTo(com.mojang.serialization.DynamicOps<U> p_412264_, com.google.common.hash.HashCode p_412248_)
     
    com.google.common.hash.HashCode
    createBoolean(boolean p_412649_)
     
    com.google.common.hash.HashCode
    createByte(byte p_412636_)
     
    com.google.common.hash.HashCode
     
    com.google.common.hash.HashCode
    createDouble(double p_412066_)
     
    com.google.common.hash.HashCode
    createFloat(float p_412641_)
     
    com.google.common.hash.HashCode
    createInt(int p_412683_)
     
    com.google.common.hash.HashCode
     
    com.google.common.hash.HashCode
    createList(Stream<com.google.common.hash.HashCode> p_412225_)
     
    com.google.common.hash.HashCode
    createLong(long p_412271_)
     
    com.google.common.hash.HashCode
     
    com.google.common.hash.HashCode
    createMap(Map<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412512_)
     
    com.google.common.hash.HashCode
    createMap(Stream<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>> p_412416_)
     
    com.google.common.hash.HashCode
    createNumeric(Number p_412443_)
     
    com.google.common.hash.HashCode
    createShort(short p_412616_)
     
    com.google.common.hash.HashCode
    createString(String p_412211_)
     
    com.google.common.hash.HashCode
     
    com.google.common.hash.HashCode
     
    com.google.common.hash.HashCode
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    get(com.google.common.hash.HashCode p_412426_, String p_412356_)
     
    com.mojang.serialization.DataResult<Boolean>
    getBooleanValue(com.google.common.hash.HashCode p_412639_)
     
    com.mojang.serialization.DataResult<ByteBuffer>
    getByteBuffer(com.google.common.hash.HashCode p_412476_)
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    getGeneric(com.google.common.hash.HashCode p_412138_, com.google.common.hash.HashCode p_412331_)
     
    com.mojang.serialization.DataResult<IntStream>
    getIntStream(com.google.common.hash.HashCode p_412744_)
     
    com.mojang.serialization.DataResult<Consumer<Consumer<com.google.common.hash.HashCode>>>
    getList(com.google.common.hash.HashCode p_412386_)
     
    com.mojang.serialization.DataResult<LongStream>
    getLongStream(com.google.common.hash.HashCode p_412105_)
     
    com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<com.google.common.hash.HashCode>>
    getMap(com.google.common.hash.HashCode p_412339_)
     
    com.mojang.serialization.DataResult<Consumer<BiConsumer<com.google.common.hash.HashCode,com.google.common.hash.HashCode>>>
    getMapEntries(com.google.common.hash.HashCode p_412308_)
     
    com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>>>
    getMapValues(com.google.common.hash.HashCode p_412515_)
     
    com.mojang.serialization.DataResult<Number>
    getNumberValue(com.google.common.hash.HashCode p_412281_)
     
    getNumberValue(com.google.common.hash.HashCode p_412545_, Number p_412129_)
     
    com.mojang.serialization.DataResult<Stream<com.google.common.hash.HashCode>>
    getStream(com.google.common.hash.HashCode p_412047_)
     
    com.mojang.serialization.DataResult<String>
    getStringValue(com.google.common.hash.HashCode p_412375_)
     
    private static com.google.common.hash.Hasher
    hashMap(com.google.common.hash.Hasher p_412213_, Map<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412494_)
     
    (专用程序包) static com.google.common.hash.Hasher
    hashMap(com.google.common.hash.Hasher p_412189_, Stream<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>> p_412324_)
     
    com.mojang.serialization.ListBuilder<com.google.common.hash.HashCode>
     
    com.mojang.serialization.RecordBuilder<com.google.common.hash.HashCode>
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    mergeToList(com.google.common.hash.HashCode p_412567_, com.google.common.hash.HashCode p_412638_)
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    mergeToList(com.google.common.hash.HashCode p_412195_, List<com.google.common.hash.HashCode> p_412670_)
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    mergeToMap(com.google.common.hash.HashCode p_412061_, com.google.common.hash.HashCode p_412446_, com.google.common.hash.HashCode p_412770_)
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    mergeToMap(com.google.common.hash.HashCode p_412371_, com.mojang.serialization.MapLike<com.google.common.hash.HashCode> p_412753_)
     
    com.mojang.serialization.DataResult<com.google.common.hash.HashCode>
    mergeToMap(com.google.common.hash.HashCode p_412263_, Map<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412681_)
     
    com.google.common.hash.HashCode
    remove(com.google.common.hash.HashCode p_412437_, String p_412123_)
     
    com.google.common.hash.HashCode
    set(com.google.common.hash.HashCode p_412708_, String p_412229_, com.google.common.hash.HashCode p_412577_)
     
     
    private static <T> com.mojang.serialization.DataResult<T>
     
    com.google.common.hash.HashCode
    update(com.google.common.hash.HashCode p_412258_, String p_412582_, Function<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412141_)
     
    com.google.common.hash.HashCode
    updateGeneric(com.google.common.hash.HashCode p_412276_, com.google.common.hash.HashCode p_412115_, Function<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412233_)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    从接口继承的方法 com.mojang.serialization.DynamicOps

    compressMaps, convertList, convertMap, mergeToPrimitive, withDecoder, withEncoder, withParser
  • 字段详细资料

    • TAG_EMPTY

      private static final byte TAG_EMPTY
      另请参阅:
    • TAG_MAP_START

      private static final byte TAG_MAP_START
      另请参阅:
    • TAG_MAP_END

      private static final byte TAG_MAP_END
      另请参阅:
    • TAG_LIST_START

      private static final byte TAG_LIST_START
      另请参阅:
    • TAG_LIST_END

      private static final byte TAG_LIST_END
      另请参阅:
    • TAG_BYTE

      private static final byte TAG_BYTE
      另请参阅:
    • TAG_SHORT

      private static final byte TAG_SHORT
      另请参阅:
    • TAG_INT

      private static final byte TAG_INT
      另请参阅:
    • TAG_LONG

      private static final byte TAG_LONG
      另请参阅:
    • TAG_FLOAT

      private static final byte TAG_FLOAT
      另请参阅:
    • TAG_DOUBLE

      private static final byte TAG_DOUBLE
      另请参阅:
    • TAG_STRING

      private static final byte TAG_STRING
      另请参阅:
    • TAG_BOOLEAN

      private static final byte TAG_BOOLEAN
      另请参阅:
    • TAG_BYTE_ARRAY_START

      private static final byte TAG_BYTE_ARRAY_START
      另请参阅:
    • TAG_BYTE_ARRAY_END

      private static final byte TAG_BYTE_ARRAY_END
      另请参阅:
    • TAG_INT_ARRAY_START

      private static final byte TAG_INT_ARRAY_START
      另请参阅:
    • TAG_INT_ARRAY_END

      private static final byte TAG_INT_ARRAY_END
      另请参阅:
    • TAG_LONG_ARRAY_START

      private static final byte TAG_LONG_ARRAY_START
      另请参阅:
    • TAG_LONG_ARRAY_END

      private static final byte TAG_LONG_ARRAY_END
      另请参阅:
    • 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

      private static final com.mojang.serialization.DataResult<Object> UNSUPPORTED_OPERATION_ERROR
    • HASH_COMPARATOR

      private static final Comparator<com.google.common.hash.HashCode> HASH_COMPARATOR
    • MAP_ENTRY_ORDER

      private static final Comparator<Map.Entry<com.google.common.hash.HashCode,com.google.common.hash.HashCode>> MAP_ENTRY_ORDER
    • MAPLIKE_ENTRY_ORDER

      private static final Comparator<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>> MAPLIKE_ENTRY_ORDER
    • CRC32C_INSTANCE

      public static final HashOps CRC32C_INSTANCE
    • hashFunction

      final com.google.common.hash.HashFunction hashFunction
    • empty

      final com.google.common.hash.HashCode empty
    • emptyMap

      private final com.google.common.hash.HashCode emptyMap
    • emptyList

      private final com.google.common.hash.HashCode emptyList
    • trueHash

      private final com.google.common.hash.HashCode trueHash
    • falseHash

      private final com.google.common.hash.HashCode falseHash
  • 构造器详细资料

    • HashOps

      public HashOps(com.google.common.hash.HashFunction p_412557_)
  • 方法详细资料

    • empty

      public com.google.common.hash.HashCode empty()
      指定者:
      empty 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • emptyMap

      public com.google.common.hash.HashCode emptyMap()
      指定者:
      emptyMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • emptyList

      public com.google.common.hash.HashCode emptyList()
      指定者:
      emptyList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createNumeric

      public com.google.common.hash.HashCode createNumeric(Number p_412443_)
      指定者:
      createNumeric 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createByte

      public com.google.common.hash.HashCode createByte(byte p_412636_)
      指定者:
      createByte 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createShort

      public com.google.common.hash.HashCode createShort(short p_412616_)
      指定者:
      createShort 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createInt

      public com.google.common.hash.HashCode createInt(int p_412683_)
      指定者:
      createInt 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createLong

      public com.google.common.hash.HashCode createLong(long p_412271_)
      指定者:
      createLong 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createFloat

      public com.google.common.hash.HashCode createFloat(float p_412641_)
      指定者:
      createFloat 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createDouble

      public com.google.common.hash.HashCode createDouble(double p_412066_)
      指定者:
      createDouble 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createString

      public com.google.common.hash.HashCode createString(String p_412211_)
      指定者:
      createString 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createBoolean

      public com.google.common.hash.HashCode createBoolean(boolean p_412649_)
      指定者:
      createBoolean 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • hashMap

      private static com.google.common.hash.Hasher hashMap(com.google.common.hash.Hasher p_412213_, Map<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412494_)
    • hashMap

      static com.google.common.hash.Hasher hashMap(com.google.common.hash.Hasher p_412189_, Stream<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>> p_412324_)
    • createMap

      public com.google.common.hash.HashCode createMap(Stream<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>> p_412416_)
      指定者:
      createMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createMap

      public com.google.common.hash.HashCode createMap(Map<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412512_)
      指定者:
      createMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createList

      public com.google.common.hash.HashCode createList(Stream<com.google.common.hash.HashCode> p_412225_)
      指定者:
      createList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createByteList

      public com.google.common.hash.HashCode createByteList(ByteBuffer p_412081_)
      指定者:
      createByteList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createIntList

      public com.google.common.hash.HashCode createIntList(IntStream p_412517_)
      指定者:
      createIntList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • createLongList

      public com.google.common.hash.HashCode createLongList(LongStream p_412654_)
      指定者:
      createLongList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • remove

      public com.google.common.hash.HashCode remove(com.google.common.hash.HashCode p_412437_, String p_412123_)
      指定者:
      remove 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • mapBuilder

      public com.mojang.serialization.RecordBuilder<com.google.common.hash.HashCode> mapBuilder()
      指定者:
      mapBuilder 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • listBuilder

      public com.mojang.serialization.ListBuilder<com.google.common.hash.HashCode> listBuilder()
      指定者:
      listBuilder 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • convertTo

      public <U> U convertTo(com.mojang.serialization.DynamicOps<U> p_412264_, com.google.common.hash.HashCode p_412248_)
      指定者:
      convertTo 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getNumberValue

      public Number getNumberValue(com.google.common.hash.HashCode p_412545_, Number p_412129_)
      指定者:
      getNumberValue 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • set

      public com.google.common.hash.HashCode set(com.google.common.hash.HashCode p_412708_, String p_412229_, com.google.common.hash.HashCode p_412577_)
      指定者:
      set 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • update

      public com.google.common.hash.HashCode update(com.google.common.hash.HashCode p_412258_, String p_412582_, Function<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412141_)
      指定者:
      update 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • updateGeneric

      public com.google.common.hash.HashCode updateGeneric(com.google.common.hash.HashCode p_412276_, com.google.common.hash.HashCode p_412115_, Function<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412233_)
      指定者:
      updateGeneric 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • unsupported

      private static <T> com.mojang.serialization.DataResult<T> unsupported()
    • get

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> get(com.google.common.hash.HashCode p_412426_, String p_412356_)
      指定者:
      get 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getGeneric

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> getGeneric(com.google.common.hash.HashCode p_412138_, com.google.common.hash.HashCode p_412331_)
      指定者:
      getGeneric 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getNumberValue

      public com.mojang.serialization.DataResult<Number> getNumberValue(com.google.common.hash.HashCode p_412281_)
      指定者:
      getNumberValue 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getBooleanValue

      public com.mojang.serialization.DataResult<Boolean> getBooleanValue(com.google.common.hash.HashCode p_412639_)
      指定者:
      getBooleanValue 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getStringValue

      public com.mojang.serialization.DataResult<String> getStringValue(com.google.common.hash.HashCode p_412375_)
      指定者:
      getStringValue 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • mergeToList

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> mergeToList(com.google.common.hash.HashCode p_412567_, com.google.common.hash.HashCode p_412638_)
      指定者:
      mergeToList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • mergeToList

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> mergeToList(com.google.common.hash.HashCode p_412195_, List<com.google.common.hash.HashCode> p_412670_)
      指定者:
      mergeToList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • mergeToMap

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> mergeToMap(com.google.common.hash.HashCode p_412061_, com.google.common.hash.HashCode p_412446_, com.google.common.hash.HashCode p_412770_)
      指定者:
      mergeToMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • mergeToMap

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> mergeToMap(com.google.common.hash.HashCode p_412263_, Map<com.google.common.hash.HashCode,com.google.common.hash.HashCode> p_412681_)
      指定者:
      mergeToMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • mergeToMap

      public com.mojang.serialization.DataResult<com.google.common.hash.HashCode> mergeToMap(com.google.common.hash.HashCode p_412371_, com.mojang.serialization.MapLike<com.google.common.hash.HashCode> p_412753_)
      指定者:
      mergeToMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getMapValues

      public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<com.google.common.hash.HashCode,com.google.common.hash.HashCode>>> getMapValues(com.google.common.hash.HashCode p_412515_)
      指定者:
      getMapValues 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getMapEntries

      public com.mojang.serialization.DataResult<Consumer<BiConsumer<com.google.common.hash.HashCode,com.google.common.hash.HashCode>>> getMapEntries(com.google.common.hash.HashCode p_412308_)
      指定者:
      getMapEntries 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getStream

      public com.mojang.serialization.DataResult<Stream<com.google.common.hash.HashCode>> getStream(com.google.common.hash.HashCode p_412047_)
      指定者:
      getStream 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getList

      public com.mojang.serialization.DataResult<Consumer<Consumer<com.google.common.hash.HashCode>>> getList(com.google.common.hash.HashCode p_412386_)
      指定者:
      getList 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getMap

      public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<com.google.common.hash.HashCode>> getMap(com.google.common.hash.HashCode p_412339_)
      指定者:
      getMap 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getByteBuffer

      public com.mojang.serialization.DataResult<ByteBuffer> getByteBuffer(com.google.common.hash.HashCode p_412476_)
      指定者:
      getByteBuffer 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getIntStream

      public com.mojang.serialization.DataResult<IntStream> getIntStream(com.google.common.hash.HashCode p_412744_)
      指定者:
      getIntStream 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>
    • getLongStream

      public com.mojang.serialization.DataResult<LongStream> getLongStream(com.google.common.hash.HashCode p_412105_)
      指定者:
      getLongStream 在接口中 com.mojang.serialization.DynamicOps<com.google.common.hash.HashCode>