Class DelegatingOps<T>

java.lang.Object
net.minecraft.resources.DelegatingOps<T>
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
Direct Known Subclasses:
RegistryOps

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

  • Constructor Details

    • DelegatingOps

      protected DelegatingOps(com.mojang.serialization.DynamicOps<T> p_135467_)
  • Method Details

    • empty

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.mojang.serialization.DataResult<T> mergeToMap(T p_135535_, T p_135536_, T p_135537_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<T>
    • mergeToMap

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

      public com.mojang.serialization.DataResult<T> mergeToMap(T p_335567_, Map<T,T> p_327772_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<T>
    • mergeToPrimitive

      public com.mojang.serialization.DataResult<T> mergeToPrimitive(T p_330125_, T p_335137_)
      Specified by:
      mergeToPrimitive in interface com.mojang.serialization.DynamicOps<T>
    • getMapValues

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

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

      public T createMap(Map<T,T> p_336013_)
      Specified by:
      createMap in interface com.mojang.serialization.DynamicOps<T>
    • createMap

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

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

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

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

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

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

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

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

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

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

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

      public T remove(T p_135539_, String p_135540_)
      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>
    • getContext

      public <R> R getContext(ResourceLocation rl)
    • withContext

      public <R> R withContext(ResourceLocation key, Object ctx)