Class NbtOps

java.lang.Object
net.minecraft.nbt.NbtOps
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<Tag>

public class NbtOps extends Object implements com.mojang.serialization.DynamicOps<Tag>
  • Field Details

  • Constructor Details

    • NbtOps

      protected NbtOps()
  • Method Details

    • empty

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

      public <U> U convertTo(com.mojang.serialization.DynamicOps<U> p_128980_, Tag p_128981_)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<Tag>
    • getNumberValue

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

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

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

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

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

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

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

      public Tag createDouble(double p_128972_)
      Specified by:
      createDouble in interface com.mojang.serialization.DynamicOps<Tag>
    • createBoolean

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

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

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

      public com.mojang.serialization.DataResult<Tag> mergeToList(Tag p_129041_, Tag p_129042_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<Tag>
    • mergeToList

      public com.mojang.serialization.DataResult<Tag> mergeToList(Tag p_129038_, List<Tag> p_129039_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<Tag>
    • mergeToMap

      public com.mojang.serialization.DataResult<Tag> mergeToMap(Tag p_129044_, Tag p_129045_, Tag p_129046_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Tag>
    • mergeToMap

      public com.mojang.serialization.DataResult<Tag> mergeToMap(Tag p_129032_, com.mojang.serialization.MapLike<Tag> p_129033_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Tag>
    • mergeToMap

      public com.mojang.serialization.DataResult<Tag> mergeToMap(Tag p_336265_, Map<Tag,Tag> p_331137_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Tag>
    • getMapValues

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

      public com.mojang.serialization.DataResult<Consumer<BiConsumer<Tag,Tag>>> getMapEntries(Tag p_129103_)
      Specified by:
      getMapEntries in interface com.mojang.serialization.DynamicOps<Tag>
    • getMap

      public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Tag>> getMap(Tag p_129105_)
      Specified by:
      getMap in interface com.mojang.serialization.DynamicOps<Tag>
    • createMap

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

      private static Tag tryUnwrap(CompoundTag p_251041_)
    • getStream

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

      public com.mojang.serialization.DataResult<Consumer<Consumer<Tag>>> getList(Tag p_129110_)
      Specified by:
      getList in interface com.mojang.serialization.DynamicOps<Tag>
    • getByteBuffer

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

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

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

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

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

      public Tag createLongList(LongStream p_129002_)
      Specified by:
      createLongList in interface com.mojang.serialization.DynamicOps<Tag>
    • createList

      public Tag createList(Stream<Tag> p_129052_)
      Specified by:
      createList in interface com.mojang.serialization.DynamicOps<Tag>
    • remove

      public Tag remove(Tag p_129035_, String p_129036_)
      Specified by:
      remove in interface com.mojang.serialization.DynamicOps<Tag>
    • toString

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

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

      private static Optional<NbtOps.ListCollector> createCollector(Tag p_249503_)