Class DelegatingDynamicOps<T>

  • All Implemented Interfaces:
    com.mojang.serialization.DynamicOps<T>
    Direct Known Subclasses:
    WorldGenSettingsExport, WorldSettingsImport

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

      Fields 
      Modifier and Type Field Description
      protected com.mojang.serialization.DynamicOps<T> delegate  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DelegatingDynamicOps​(com.mojang.serialization.DynamicOps<T> p_i232586_1_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compressMaps()  
      <U> U convertTo​(com.mojang.serialization.DynamicOps<U> p_convertTo_1_, T p_convertTo_2_)  
      T createBoolean​(boolean p_createBoolean_1_)  
      T createByte​(byte p_createByte_1_)  
      T createByteList​(java.nio.ByteBuffer p_createByteList_1_)  
      T createDouble​(double p_createDouble_1_)  
      T createFloat​(float p_createFloat_1_)  
      T createInt​(int p_createInt_1_)  
      T createIntList​(java.util.stream.IntStream p_createIntList_1_)  
      T createList​(java.util.stream.Stream<T> p_createList_1_)  
      T createLong​(long p_createLong_1_)  
      T createLongList​(java.util.stream.LongStream p_createLongList_1_)  
      T createMap​(java.util.stream.Stream<com.mojang.datafixers.util.Pair<T,​T>> p_createMap_1_)  
      T createNumeric​(java.lang.Number p_createNumeric_1_)  
      T createShort​(short p_createShort_1_)  
      T createString​(java.lang.String p_createString_1_)  
      T empty()  
      com.mojang.serialization.DataResult<java.lang.Boolean> getBooleanValue​(T p_getBooleanValue_1_)  
      com.mojang.serialization.DataResult<java.nio.ByteBuffer> getByteBuffer​(T p_getByteBuffer_1_)  
      com.mojang.serialization.DataResult<java.util.stream.IntStream> getIntStream​(T p_getIntStream_1_)  
      com.mojang.serialization.DataResult<java.util.function.Consumer<java.util.function.Consumer<T>>> getList​(T p_getList_1_)  
      com.mojang.serialization.DataResult<java.util.stream.LongStream> getLongStream​(T p_getLongStream_1_)  
      com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>> getMap​(T p_getMap_1_)  
      com.mojang.serialization.DataResult<java.util.function.Consumer<java.util.function.BiConsumer<T,​T>>> getMapEntries​(T p_getMapEntries_1_)  
      com.mojang.serialization.DataResult<java.util.stream.Stream<com.mojang.datafixers.util.Pair<T,​T>>> getMapValues​(T p_getMapValues_1_)  
      com.mojang.serialization.DataResult<java.lang.Number> getNumberValue​(T p_getNumberValue_1_)  
      com.mojang.serialization.DataResult<java.util.stream.Stream<T>> getStream​(T p_getStream_1_)  
      com.mojang.serialization.DataResult<java.lang.String> getStringValue​(T p_getStringValue_1_)  
      com.mojang.serialization.ListBuilder<T> listBuilder()  
      com.mojang.serialization.RecordBuilder<T> mapBuilder()  
      com.mojang.serialization.DataResult<T> mergeToList​(T p_mergeToList_1_, java.util.List<T> p_mergeToList_2_)  
      com.mojang.serialization.DataResult<T> mergeToList​(T p_mergeToList_1_, T p_mergeToList_2_)  
      com.mojang.serialization.DataResult<T> mergeToMap​(T p_mergeToMap_1_, com.mojang.serialization.MapLike<T> p_mergeToMap_2_)  
      com.mojang.serialization.DataResult<T> mergeToMap​(T p_mergeToMap_1_, T p_mergeToMap_2_, T p_mergeToMap_3_)  
      T remove​(T p_remove_1_, java.lang.String p_remove_2_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.mojang.serialization.DynamicOps

        convertList, convertMap, createMap, emptyList, emptyMap, get, getGeneric, getNumberValue, mergeToMap, mergeToPrimitive, set, update, updateGeneric, withDecoder, withEncoder, withParser
    • Field Detail

      • delegate

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

      • DelegatingDynamicOps

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

      • 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<java.lang.Number> getNumberValue​(T p_getNumberValue_1_)
        Specified by:
        getNumberValue in interface com.mojang.serialization.DynamicOps<T>
      • createNumeric

        public T createNumeric​(java.lang.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<java.lang.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<java.lang.String> getStringValue​(T p_getStringValue_1_)
        Specified by:
        getStringValue in interface com.mojang.serialization.DynamicOps<T>
      • createString

        public T createString​(java.lang.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_,
                                                                  java.util.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<java.util.stream.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<java.util.function.Consumer<java.util.function.BiConsumer<T,​T>>> getMapEntries​(T p_getMapEntries_1_)
        Specified by:
        getMapEntries in interface com.mojang.serialization.DynamicOps<T>
      • createMap

        public T createMap​(java.util.stream.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<java.util.stream.Stream<T>> getStream​(T p_getStream_1_)
        Specified by:
        getStream in interface com.mojang.serialization.DynamicOps<T>
      • getList

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

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

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

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

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

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

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

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

        public T remove​(T p_remove_1_,
                        java.lang.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>