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_304871_, Object p_304579_)
      Specified by:
      convertTo in interface com.mojang.serialization.DynamicOps<Object>
    • getNumberValue

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_304566_, Object p_304866_, Object p_304617_)
      Specified by:
      mergeToMap in interface com.mojang.serialization.DynamicOps<Object>
    • mergeToMap

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Object remove(Object p_304813_, String p_304872_)
      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