Class JavaOps

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

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

    • INSTANCE

      public static final JavaOps INSTANCE
  • Constructor Details

    • JavaOps

      private JavaOps()
  • Method Details

    • empty

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

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

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

      public <U> U convertTo(com.mojang.serialization.DynamicOps<U> p_312002_, Object p_309625_)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<Object>
    • getNumberValue

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

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

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

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

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

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

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

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

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

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

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

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

      public com.mojang.serialization.DataResult<Object> mergeToList(Object p_311409_, Object p_310745_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<Object>
    • mergeToList

      public com.mojang.serialization.DataResult<Object> mergeToList(Object p_311714_, List<Object> p_310475_)
      Specified by:
      mergeToList in interface com.mojang.serialization.DynamicOps<Object>
    • mergeToMap

      public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_311964_, Object p_311197_, Object p_310964_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Object>
    • mergeToMap

      public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_312957_, Map<Object,Object> p_311321_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Object>
    • mapLikeToMap

      private static Map<Object,Object> mapLikeToMap(com.mojang.serialization.MapLike<Object> p_310456_)
    • mergeToMap

      public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_313174_, com.mojang.serialization.MapLike<Object> p_310148_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Object>
    • getMapEntries

      static Stream<com.mojang.datafixers.util.Pair<Object,Object>> getMapEntries(Map<?,?> p_311276_)
    • getMapValues

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

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

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

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

      public Object createMap(Map<Object,Object> p_310264_)
      Specified by:
      createMap in interface com.mojang.serialization.DynamicOps<Object>
    • getStream

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

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

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

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

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

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

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

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

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

      public Object remove(Object p_311673_, String p_310356_)
      Specified by:
      remove in interface com.mojang.serialization.DynamicOps<Object>
    • mapBuilder

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

      public String toString()
      Overrides:
      toString in class Object