Table of Contents

Class CreativeTabAndStackList

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class CreativeTabAndStackList
Inheritance
CreativeTabAndStackList
Inherited Members

Fields

Stacks

public JsonItemStack[] Stacks

Field Value

JsonItemStack[]

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 BinaryReader

The reader to read the json.

registry IClassRegistryAPI

The registry of blocks and items.

ToBytes(BinaryWriter, IClassRegistryAPI)

Writes all the data to the BinaryWriter.

public void ToBytes(BinaryWriter writer, IClassRegistryAPI registry)

Parameters

writer BinaryWriter

The writer to write the save data

registry IClassRegistryAPI

The registry of blocks and items.