Class HashOps

java.lang.Object
net.minecraft.util.HashOps
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<HashCode>

public class HashOps extends Object implements com.mojang.serialization.DynamicOps<HashCode>
  • Field Details

  • Constructor Details

  • Method Details

    • empty

      public HashCode empty()
      Specified by:
      empty in interface com.mojang.serialization.DynamicOps<HashCode>
    • emptyMap

      public HashCode emptyMap()
      Specified by:
      emptyMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • emptyList

      public HashCode emptyList()
      Specified by:
      emptyList in interface com.mojang.serialization.DynamicOps<HashCode>
    • createNumeric

      public HashCode createNumeric(Number pI)
      Specified by:
      createNumeric in interface com.mojang.serialization.DynamicOps<HashCode>
    • createByte

      public HashCode createByte(byte pValue)
      Specified by:
      createByte in interface com.mojang.serialization.DynamicOps<HashCode>
    • createShort

      public HashCode createShort(short pValue)
      Specified by:
      createShort in interface com.mojang.serialization.DynamicOps<HashCode>
    • createInt

      public HashCode createInt(int pValue)
      Specified by:
      createInt in interface com.mojang.serialization.DynamicOps<HashCode>
    • createLong

      public HashCode createLong(long pValue)
      Specified by:
      createLong in interface com.mojang.serialization.DynamicOps<HashCode>
    • createFloat

      public HashCode createFloat(float pValue)
      Specified by:
      createFloat in interface com.mojang.serialization.DynamicOps<HashCode>
    • createDouble

      public HashCode createDouble(double pValue)
      Specified by:
      createDouble in interface com.mojang.serialization.DynamicOps<HashCode>
    • createString

      public HashCode createString(String pValue)
      Specified by:
      createString in interface com.mojang.serialization.DynamicOps<HashCode>
    • createBoolean

      public HashCode createBoolean(boolean pValue)
      Specified by:
      createBoolean in interface com.mojang.serialization.DynamicOps<HashCode>
    • hashMap

      private static Hasher hashMap(Hasher pHasher, Map<HashCode,HashCode> pMap)
    • hashMap

      static Hasher hashMap(Hasher pHasher, Stream<com.mojang.datafixers.util.Pair<HashCode,HashCode>> pMap)
    • createMap

      public HashCode createMap(Stream<com.mojang.datafixers.util.Pair<HashCode,HashCode>> pMap)
      Specified by:
      createMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • createMap

      public HashCode createMap(Map<HashCode,HashCode> pMap)
      Specified by:
      createMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • createList

      public HashCode createList(Stream<HashCode> pInput)
      Specified by:
      createList in interface com.mojang.serialization.DynamicOps<HashCode>
    • createByteList

      public HashCode createByteList(ByteBuffer pInput)
      Specified by:
      createByteList in interface com.mojang.serialization.DynamicOps<HashCode>
    • createIntList

      public HashCode createIntList(IntStream pInput)
      Specified by:
      createIntList in interface com.mojang.serialization.DynamicOps<HashCode>
    • createLongList

      public HashCode createLongList(LongStream pInput)
      Specified by:
      createLongList in interface com.mojang.serialization.DynamicOps<HashCode>
    • remove

      public HashCode remove(HashCode pInput, String pKey)
      Specified by:
      remove in interface com.mojang.serialization.DynamicOps<HashCode>
    • mapBuilder

      public com.mojang.serialization.RecordBuilder<HashCode> mapBuilder()
      Specified by:
      mapBuilder in interface com.mojang.serialization.DynamicOps<HashCode>
    • listBuilder

      public com.mojang.serialization.ListBuilder<HashCode> listBuilder()
      Specified by:
      listBuilder in interface com.mojang.serialization.DynamicOps<HashCode>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • convertTo

      public <U> U convertTo(com.mojang.serialization.DynamicOps<U> pOps, HashCode pHashCode)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<HashCode>
    • getNumberValue

      public Number getNumberValue(HashCode pHashCode, Number pNumber)
      Specified by:
      getNumberValue in interface com.mojang.serialization.DynamicOps<HashCode>
    • set

      public HashCode set(HashCode pInput, String pKey, HashCode pValue)
      Specified by:
      set in interface com.mojang.serialization.DynamicOps<HashCode>
    • update

      public HashCode update(HashCode pInput, String pKey, Function<HashCode,HashCode> pUpdater)
      Specified by:
      update in interface com.mojang.serialization.DynamicOps<HashCode>
    • updateGeneric

      public HashCode updateGeneric(HashCode pInput, HashCode pKey, Function<HashCode,HashCode> pUpdater)
      Specified by:
      updateGeneric in interface com.mojang.serialization.DynamicOps<HashCode>
    • unsupported

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

      public com.mojang.serialization.DataResult<HashCode> get(HashCode pInput, String pKey)
      Specified by:
      get in interface com.mojang.serialization.DynamicOps<HashCode>
    • getGeneric

      public com.mojang.serialization.DataResult<HashCode> getGeneric(HashCode pInput, HashCode pKey)
      Specified by:
      getGeneric in interface com.mojang.serialization.DynamicOps<HashCode>
    • getNumberValue

      public com.mojang.serialization.DataResult<Number> getNumberValue(HashCode pInput)
      Specified by:
      getNumberValue in interface com.mojang.serialization.DynamicOps<HashCode>
    • getBooleanValue

      public com.mojang.serialization.DataResult<Boolean> getBooleanValue(HashCode pInput)
      Specified by:
      getBooleanValue in interface com.mojang.serialization.DynamicOps<HashCode>
    • getStringValue

      public com.mojang.serialization.DataResult<String> getStringValue(HashCode pInput)
      Specified by:
      getStringValue in interface com.mojang.serialization.DynamicOps<HashCode>
    • mergeToList

      public com.mojang.serialization.DataResult<HashCode> mergeToList(HashCode pList, HashCode pValue)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<HashCode>
    • mergeToList

      public com.mojang.serialization.DataResult<HashCode> mergeToList(HashCode pList, List<HashCode> pValues)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<HashCode>
    • mergeToMap

      public com.mojang.serialization.DataResult<HashCode> mergeToMap(HashCode pList, HashCode pKey, HashCode pValue)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • mergeToMap

      public com.mojang.serialization.DataResult<HashCode> mergeToMap(HashCode pList, Map<HashCode,HashCode> pValues)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • mergeToMap

      public com.mojang.serialization.DataResult<HashCode> mergeToMap(HashCode pList, com.mojang.serialization.MapLike<HashCode> pValues)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • getMapValues

      public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<HashCode,HashCode>>> getMapValues(HashCode pInput)
      Specified by:
      getMapValues in interface com.mojang.serialization.DynamicOps<HashCode>
    • getMapEntries

      public com.mojang.serialization.DataResult<Consumer<BiConsumer<HashCode,HashCode>>> getMapEntries(HashCode pInput)
      Specified by:
      getMapEntries in interface com.mojang.serialization.DynamicOps<HashCode>
    • getStream

      public com.mojang.serialization.DataResult<Stream<HashCode>> getStream(HashCode pInput)
      Specified by:
      getStream in interface com.mojang.serialization.DynamicOps<HashCode>
    • getList

      public com.mojang.serialization.DataResult<Consumer<Consumer<HashCode>>> getList(HashCode pInput)
      Specified by:
      getList in interface com.mojang.serialization.DynamicOps<HashCode>
    • getMap

      public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<HashCode>> getMap(HashCode pInput)
      Specified by:
      getMap in interface com.mojang.serialization.DynamicOps<HashCode>
    • getByteBuffer

      public com.mojang.serialization.DataResult<ByteBuffer> getByteBuffer(HashCode pInput)
      Specified by:
      getByteBuffer in interface com.mojang.serialization.DynamicOps<HashCode>
    • getIntStream

      public com.mojang.serialization.DataResult<IntStream> getIntStream(HashCode pInput)
      Specified by:
      getIntStream in interface com.mojang.serialization.DynamicOps<HashCode>
    • getLongStream

      public com.mojang.serialization.DataResult<LongStream> getLongStream(HashCode pInput)
      Specified by:
      getLongStream in interface com.mojang.serialization.DynamicOps<HashCode>