Class NullOps
java.lang.Object
net.minecraft.util.NullOps
- All Implemented Interfaces:
DynamicOps<Unit>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U> UconvertTo(DynamicOps<U> outOps, Unit input) createBoolean(boolean value) createByte(byte value) createByteList(ByteBuffer input) createDouble(double value) createFloat(float value) createInt(int value) createIntList(IntStream input) createList(Stream<Unit> input) createLong(long value) createLongList(LongStream input) createNumeric(Number value) createShort(short value) createString(String value) empty()emptyMap()getBooleanValue(Unit input) getByteBuffer(Unit input) getIntStream(Unit input) getLongStream(Unit input) getMapEntries(Unit input) DataResult<Stream<Pair<Unit, Unit>>> getMapValues(Unit input) getNumberValue(Unit input) getStringValue(Unit input) mergeToList(Unit input, List<Unit> values) mergeToList(Unit input, Unit value) Only successful if first argument is a list/array or emptymergeToMap(Unit input, MapLike<Unit> values) mergeToMap(Unit input, Map<Unit, Unit> values) mergeToMap(Unit input, Unit key, Unit value) Only successful if first argument is a map or emptytoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DynamicOps
compressMaps, convertList, convertMap, get, getGeneric, getNumberValue, mergeToPrimitive, set, update, updateGeneric, withDecoder, withEncoder, withParser
-
Field Details
-
INSTANCE
-
EMPTY_MAP
-
-
Constructor Details
-
NullOps
private NullOps()
-
-
Method Details
-
convertTo
- Specified by:
convertToin interfaceDynamicOps<Unit>
-
empty
- Specified by:
emptyin interfaceDynamicOps<Unit>
-
emptyMap
- Specified by:
emptyMapin interfaceDynamicOps<Unit>
-
emptyList
- Specified by:
emptyListin interfaceDynamicOps<Unit>
-
createNumeric
- Specified by:
createNumericin interfaceDynamicOps<Unit>
-
createByte
- Specified by:
createBytein interfaceDynamicOps<Unit>
-
createShort
- Specified by:
createShortin interfaceDynamicOps<Unit>
-
createInt
- Specified by:
createIntin interfaceDynamicOps<Unit>
-
createLong
- Specified by:
createLongin interfaceDynamicOps<Unit>
-
createFloat
- Specified by:
createFloatin interfaceDynamicOps<Unit>
-
createDouble
- Specified by:
createDoublein interfaceDynamicOps<Unit>
-
createBoolean
- Specified by:
createBooleanin interfaceDynamicOps<Unit>
-
createString
- Specified by:
createStringin interfaceDynamicOps<Unit>
-
getNumberValue
- Specified by:
getNumberValuein interfaceDynamicOps<Unit>
-
getBooleanValue
- Specified by:
getBooleanValuein interfaceDynamicOps<Unit>
-
getStringValue
- Specified by:
getStringValuein interfaceDynamicOps<Unit>
-
mergeToList
Description copied from interface:DynamicOpsOnly successful if first argument is a list/array or empty- Specified by:
mergeToListin interfaceDynamicOps<Unit>
-
mergeToList
- Specified by:
mergeToListin interfaceDynamicOps<Unit>
-
mergeToMap
Description copied from interface:DynamicOpsOnly successful if first argument is a map or empty- Specified by:
mergeToMapin interfaceDynamicOps<Unit>
-
mergeToMap
- Specified by:
mergeToMapin interfaceDynamicOps<Unit>
-
mergeToMap
- Specified by:
mergeToMapin interfaceDynamicOps<Unit>
-
getMapValues
- Specified by:
getMapValuesin interfaceDynamicOps<Unit>
-
getMapEntries
- Specified by:
getMapEntriesin interfaceDynamicOps<Unit>
-
getMap
- Specified by:
getMapin interfaceDynamicOps<Unit>
-
getStream
- Specified by:
getStreamin interfaceDynamicOps<Unit>
-
getList
- Specified by:
getListin interfaceDynamicOps<Unit>
-
getByteBuffer
- Specified by:
getByteBufferin interfaceDynamicOps<Unit>
-
getIntStream
- Specified by:
getIntStreamin interfaceDynamicOps<Unit>
-
getLongStream
- Specified by:
getLongStreamin interfaceDynamicOps<Unit>
-
createMap
-
createMap
-
createList
- Specified by:
createListin interfaceDynamicOps<Unit>
-
createByteList
- Specified by:
createByteListin interfaceDynamicOps<Unit>
-
createIntList
- Specified by:
createIntListin interfaceDynamicOps<Unit>
-
createLongList
- Specified by:
createLongListin interfaceDynamicOps<Unit>
-
remove
-
mapBuilder
- Specified by:
mapBuilderin interfaceDynamicOps<Unit>
-
listBuilder
- Specified by:
listBuilderin interfaceDynamicOps<Unit>
-
toString
-