Class DelegatingDynamicOps<T>

java.lang.Object
net.minecraft.util.datafix.DelegatingDynamicOps<T>
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
Direct Known Subclasses:
WorldGenSettingsExport, WorldSettingsImport

public abstract class DelegatingDynamicOps<T> extends Object implements com.mojang.serialization.DynamicOps<T>
  • Field Details

    • delegate

      protected final com.mojang.serialization.DynamicOps<T> delegate
  • Constructor Details

    • DelegatingDynamicOps

      protected DelegatingDynamicOps(com.mojang.serialization.DynamicOps<T> p_i232586_1_)
  • Method Details

    • empty

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

      public <U> U convertTo(com.mojang.serialization.DynamicOps<U> p_convertTo_1_, T p_convertTo_2_)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<T>
    • getNumberValue

      public com.mojang.serialization.DataResult<Number> getNumberValue(T p_getNumberValue_1_)
      Specified by:
      getNumberValue in interface com.mojang.serialization.DynamicOps<T>
    • createNumeric

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

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

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

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

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

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

      public T createDouble(double p_createDouble_1_)
      Specified by:
      createDouble in interface com.mojang.serialization.DynamicOps<T>
    • getBooleanValue

      public com.mojang.serialization.DataResult<Boolean> getBooleanValue(T p_getBooleanValue_1_)
      Specified by:
      getBooleanValue in interface com.mojang.serialization.DynamicOps<T>
    • createBoolean

      public T createBoolean(boolean p_createBoolean_1_)
      Specified by:
      createBoolean in interface com.mojang.serialization.DynamicOps<T>
    • getStringValue

      public com.mojang.serialization.DataResult<String> getStringValue(T p_getStringValue_1_)
      Specified by:
      getStringValue in interface com.mojang.serialization.DynamicOps<T>
    • createString

      public T createString(String p_createString_1_)
      Specified by:
      createString in interface com.mojang.serialization.DynamicOps<T>
    • mergeToList

      public com.mojang.serialization.DataResult<T> mergeToList(T p_mergeToList_1_, T p_mergeToList_2_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<T>
    • mergeToList

      public com.mojang.serialization.DataResult<T> mergeToList(T p_mergeToList_1_, List<T> p_mergeToList_2_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<T>
    • mergeToMap

      public com.mojang.serialization.DataResult<T> mergeToMap(T p_mergeToMap_1_, T p_mergeToMap_2_, T p_mergeToMap_3_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<T>
    • mergeToMap

      public com.mojang.serialization.DataResult<T> mergeToMap(T p_mergeToMap_1_, com.mojang.serialization.MapLike<T> p_mergeToMap_2_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<T>
    • getMapValues

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

      public com.mojang.serialization.DataResult<Consumer<BiConsumer<T,T>>> getMapEntries(T p_getMapEntries_1_)
      Specified by:
      getMapEntries in interface com.mojang.serialization.DynamicOps<T>
    • createMap

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

      public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>> getMap(T p_getMap_1_)
      Specified by:
      getMap in interface com.mojang.serialization.DynamicOps<T>
    • getStream

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

      public com.mojang.serialization.DataResult<Consumer<Consumer<T>>> getList(T p_getList_1_)
      Specified by:
      getList in interface com.mojang.serialization.DynamicOps<T>
    • createList

      public T createList(Stream<T> p_createList_1_)
      Specified by:
      createList in interface com.mojang.serialization.DynamicOps<T>
    • getByteBuffer

      public com.mojang.serialization.DataResult<ByteBuffer> getByteBuffer(T p_getByteBuffer_1_)
      Specified by:
      getByteBuffer in interface com.mojang.serialization.DynamicOps<T>
    • createByteList

      public T createByteList(ByteBuffer p_createByteList_1_)
      Specified by:
      createByteList in interface com.mojang.serialization.DynamicOps<T>
    • getIntStream

      public com.mojang.serialization.DataResult<IntStream> getIntStream(T p_getIntStream_1_)
      Specified by:
      getIntStream in interface com.mojang.serialization.DynamicOps<T>
    • createIntList

      public T createIntList(IntStream p_createIntList_1_)
      Specified by:
      createIntList in interface com.mojang.serialization.DynamicOps<T>
    • getLongStream

      public com.mojang.serialization.DataResult<LongStream> getLongStream(T p_getLongStream_1_)
      Specified by:
      getLongStream in interface com.mojang.serialization.DynamicOps<T>
    • createLongList

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

      public T remove(T p_remove_1_, String p_remove_2_)
      Specified by:
      remove in interface com.mojang.serialization.DynamicOps<T>
    • compressMaps

      public boolean compressMaps()
      Specified by:
      compressMaps in interface com.mojang.serialization.DynamicOps<T>
    • listBuilder

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

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