Class CreativeTabAndStackList
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class CreativeTabAndStackList
- Inheritance
-
CreativeTabAndStackList
- Inherited Members
Fields
Stacks
public JsonItemStack[] Stacks
Field Value
Tabs
public string[] Tabs
Field Value
- string[]
Methods
FromBytes(BinaryReader, IClassRegistryAPI)
Reads the blocks and items from the Json files and converts them to an array of tabs which contain those blocks and items.
public void FromBytes(BinaryReader reader, IClassRegistryAPI registry)
Parameters
reader
BinaryReaderThe reader to read the json.
registry
IClassRegistryAPIThe registry of blocks and items.
ToBytes(BinaryWriter, IClassRegistryAPI)
Writes all the data to the BinaryWriter.
public void ToBytes(BinaryWriter writer, IClassRegistryAPI registry)
Parameters
writer
BinaryWriterThe writer to write the save data
registry
IClassRegistryAPIThe registry of blocks and items.