Class NullOps

java.lang.Object
net.minecraft.util.NullOps
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<Unit>

public class NullOps extends Object implements com.mojang.serialization.DynamicOps<Unit>
  • Field Details

    • INSTANCE

      public static final NullOps INSTANCE
  • Constructor Details

    • NullOps

      private NullOps()
  • Method Details

    • convertTo

      public <U> U convertTo(com.mojang.serialization.DynamicOps<U> p_335263_, Unit p_330577_)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<Unit>
    • empty

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

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

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

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

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

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

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

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

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

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

      public Unit createBoolean(boolean p_332728_)
      Specified by:
      createBoolean in interface com.mojang.serialization.DynamicOps<Unit>
    • createString

      public Unit createString(String p_331594_)
      Specified by:
      createString in interface com.mojang.serialization.DynamicOps<Unit>
    • getNumberValue

      public com.mojang.serialization.DataResult<Number> getNumberValue(Unit p_331567_)
      Specified by:
      getNumberValue in interface com.mojang.serialization.DynamicOps<Unit>
    • getBooleanValue

      public com.mojang.serialization.DataResult<Boolean> getBooleanValue(Unit p_330383_)
      Specified by:
      getBooleanValue in interface com.mojang.serialization.DynamicOps<Unit>
    • getStringValue

      public com.mojang.serialization.DataResult<String> getStringValue(Unit p_328159_)
      Specified by:
      getStringValue in interface com.mojang.serialization.DynamicOps<Unit>
    • mergeToList

      public com.mojang.serialization.DataResult<Unit> mergeToList(Unit p_332194_, Unit p_331336_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<Unit>
    • mergeToList

      public com.mojang.serialization.DataResult<Unit> mergeToList(Unit p_330584_, List<Unit> p_335250_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<Unit>
    • mergeToMap

      public com.mojang.serialization.DataResult<Unit> mergeToMap(Unit p_328865_, Unit p_336101_, Unit p_328794_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Unit>
    • mergeToMap

      public com.mojang.serialization.DataResult<Unit> mergeToMap(Unit p_332909_, Map<Unit,Unit> p_336158_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Unit>
    • mergeToMap

      public com.mojang.serialization.DataResult<Unit> mergeToMap(Unit p_332286_, com.mojang.serialization.MapLike<Unit> p_332604_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Unit>
    • getMapValues

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

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

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

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

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

      public com.mojang.serialization.DataResult<ByteBuffer> getByteBuffer(Unit p_334054_)
      Specified by:
      getByteBuffer in interface com.mojang.serialization.DynamicOps<Unit>
    • getIntStream

      public com.mojang.serialization.DataResult<IntStream> getIntStream(Unit p_328303_)
      Specified by:
      getIntStream in interface com.mojang.serialization.DynamicOps<Unit>
    • getLongStream

      public com.mojang.serialization.DataResult<LongStream> getLongStream(Unit p_331380_)
      Specified by:
      getLongStream in interface com.mojang.serialization.DynamicOps<Unit>
    • createMap

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

      public Unit createMap(Map<Unit,Unit> p_333052_)
      Specified by:
      createMap in interface com.mojang.serialization.DynamicOps<Unit>
    • createList

      public Unit createList(Stream<Unit> p_335375_)
      Specified by:
      createList in interface com.mojang.serialization.DynamicOps<Unit>
    • createByteList

      public Unit createByteList(ByteBuffer p_333560_)
      Specified by:
      createByteList in interface com.mojang.serialization.DynamicOps<Unit>
    • createIntList

      public Unit createIntList(IntStream p_329926_)
      Specified by:
      createIntList in interface com.mojang.serialization.DynamicOps<Unit>
    • createLongList

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

      public Unit remove(Unit p_333113_, String p_328025_)
      Specified by:
      remove in interface com.mojang.serialization.DynamicOps<Unit>
    • mapBuilder

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

      public String toString()
      Overrides:
      toString in class Object