public class NBTWriteContext
extends com.fasterxml.jackson.core.json.JsonWriteContext
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
NBTWriter |
writer |
| Constructor and Description |
|---|
NBTWriteContext(NBTGenerator generator,
int type,
NBTWriteContext parent,
com.fasterxml.jackson.core.json.DupDetector dups,
String name,
DataOutput output) |
| Modifier and Type | Method and Description |
|---|---|
NBTWriteContext |
createChildArrayContext() |
NBTWriteContext |
createChildArrayContext(Object currValue) |
NBTWriteContext |
createChildObjectContext() |
NBTWriteContext |
createChildObjectContext(Object currValue) |
void |
end() |
DataOutput |
getOutput() |
protected NBTWriteContext |
reset(int type,
Object currValue) |
protected NBTWriteContext |
reset(int type,
String name,
DataOutput output) |
void |
writeValue(com.nukkitx.nbt.NbtType<?> type,
Object value) |
clearAndGetParent, createRootContext, createRootContext, getCurrentName, getCurrentValue, getDupDetector, getParent, hasCurrentName, reset, setCurrentValue, withDupDetector, writeFieldName, writeValuepublic NBTWriteContext(NBTGenerator generator, int type, NBTWriteContext parent, com.fasterxml.jackson.core.json.DupDetector dups, String name, DataOutput output)
public NBTWriteContext createChildArrayContext()
createChildArrayContext in class com.fasterxml.jackson.core.json.JsonWriteContextpublic NBTWriteContext createChildArrayContext(Object currValue)
createChildArrayContext in class com.fasterxml.jackson.core.json.JsonWriteContextpublic NBTWriteContext createChildObjectContext()
createChildObjectContext in class com.fasterxml.jackson.core.json.JsonWriteContextpublic NBTWriteContext createChildObjectContext(Object currValue)
createChildObjectContext in class com.fasterxml.jackson.core.json.JsonWriteContextprotected NBTWriteContext reset(int type, String name, DataOutput output)
protected NBTWriteContext reset(int type, Object currValue)
reset in class com.fasterxml.jackson.core.json.JsonWriteContextpublic void writeValue(com.nukkitx.nbt.NbtType<?> type,
Object value)
throws IOException
IOExceptionpublic void end()
throws IOException
IOExceptionpublic DataOutput getOutput()
Copyright © 2021 FasterXML. All rights reserved.