Table of Contents

Class BlockMaterialUtil

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

Methods

MaterialBlastDropChances(EnumBlastType, EnumBlockMaterial)

Calculates the blast drop chance of a given material.

public static double MaterialBlastDropChances(EnumBlastType blastType, EnumBlockMaterial material)

Parameters

blastType EnumBlastType

The blast type the material is being it with.

material EnumBlockMaterial

The material of the block.

Returns

double

the resulting drop chance.

MaterialBlastResistance(EnumBlastType, EnumBlockMaterial)

Calculates the blast resistance of a given material.

public static double MaterialBlastResistance(EnumBlastType blastType, EnumBlockMaterial material)

Parameters

blastType EnumBlastType

The blast type the material is being it with.

material EnumBlockMaterial

The material of the block.

Returns

double

the resulting blast resistance.