Class ForwardingDynamicOps<T>

java.lang.Object
net.minecraft.util.dynamic.ForwardingDynamicOps<T>
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
Direct Known Subclasses:
RegistryOps, RegistryReadingOps

public abstract class ForwardingDynamicOps<T> extends Object implements com.mojang.serialization.DynamicOps<T>
A dynamic ops that delegates all operations from another one.
Mappings:
Namespace Name
official wp
intermediary net/minecraft/class_5379
named net/minecraft/util/dynamic/ForwardingDynamicOps
  • Field Details

    • delegate

      protected final com.mojang.serialization.DynamicOps<T> delegate
      Mappings:
      Namespace Name Mixin selector
      official a Lwp;a:Lcom/mojang/serialization/DynamicOps;
      intermediary field_25503 Lnet/minecraft/class_5379;field_25503:Lcom/mojang/serialization/DynamicOps;
      named delegate Lnet/minecraft/util/dynamic/ForwardingDynamicOps;delegate:Lcom/mojang/serialization/DynamicOps;
  • Constructor Details

    • ForwardingDynamicOps

      protected ForwardingDynamicOps(com.mojang.serialization.DynamicOps<T> delegate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwp;<init>(Lcom/mojang/serialization/DynamicOps;)V
      intermediary <init> Lnet/minecraft/class_5379;<init>(Lcom/mojang/serialization/DynamicOps;)V
      named <init> Lnet/minecraft/util/dynamic/ForwardingDynamicOps;<init>(Lcom/mojang/serialization/DynamicOps;)V
  • 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> dynamicOps, T t)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<T>
    • getNumberValue

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.mojang.serialization.DataResult<T> mergeToMap(T t, T t2, T t3)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<T>
    • mergeToMap

      public com.mojang.serialization.DataResult<T> mergeToMap(T t, com.mojang.serialization.MapLike<T> mapLike)
      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 t)
      Specified by:
      getMapValues in interface com.mojang.serialization.DynamicOps<T>
    • getMapEntries

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

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

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

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

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

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

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

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

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

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

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

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

      public T remove(T t, String string)
      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>