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_341193_, Unit p_340817_)
      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_341390_)
      Specified by:
      createNumeric in interface com.mojang.serialization.DynamicOps<Unit>
    • createByte

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.mojang.serialization.DataResult<Unit> mergeToMap(Unit p_340850_, Unit p_341356_, Unit p_341172_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Unit>
    • mergeToMap

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Unit remove(Unit p_341250_, String p_340980_)
      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