Class AssetCategory
- Namespace
 - Vintagestory.API.Common
 
- Assembly
 - VintagestoryAPI.dll
 
public class AssetCategory
  - Inheritance
 - 
      
      AssetCategory
 
- Inherited Members
 
- Extension Methods
 
Constructors
AssetCategory(string, bool, EnumAppSide)
public AssetCategory(string code, bool AffectsGameplay, EnumAppSide SideType)
  Parameters
codestringAffectsGameplayboolSideTypeEnumAppSide
Fields
blocktypes
public static AssetCategory blocktypes
  Field Value
categories
public static Dictionary<string, AssetCategory> categories
  Field Value
config
public static AssetCategory config
  Field Value
dialog
public static AssetCategory dialog
  Field Value
entities
public static AssetCategory entities
  Field Value
itemtypes
public static AssetCategory itemtypes
  Field Value
lang
public static AssetCategory lang
  Field Value
music
public static AssetCategory music
  Field Value
patches
public static AssetCategory patches
  Field Value
recipes
public static AssetCategory recipes
  Field Value
shaderincludes
public static AssetCategory shaderincludes
  Field Value
shaders
public static AssetCategory shaders
  Field Value
shapes
public static AssetCategory shapes
  Field Value
sounds
public static AssetCategory sounds
  Field Value
textures
public static AssetCategory textures
  Field Value
worldgen
public static AssetCategory worldgen
  Field Value
worldproperties
public static AssetCategory worldproperties
  Field Value
Properties
AffectsGameplay
Temporary solution to not change block types. Will be changed
public bool AffectsGameplay { get; }
  Property Value
Code
Path and name
public string Code { get; }
  Property Value
SideType
Determines wether it will be used on server, client or both.
public EnumAppSide SideType { get; }
  Property Value
Methods
FromCode(string)
Gets the asset category by code name
public static AssetCategory FromCode(string code)
  Parameters
codestringThe code name for the asset category.
Returns
- AssetCategory
 An asset category.
ToString()
Returns a string that represents the current object.
public override string ToString()
  Returns
- string
 A string that represents the current object.