This class was added by a mod with mod-id contenttweaker. 因此,如果要使用此功能,则需要安装此mod。

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.contenttweaker.block.BlockRenderType;

BlockRenderType is an enum. It has 4 enum constants. They are accessible using the code below.

ZenScript
Copy

// Solid, opaque. This is the default value.
BlockRenderType.SOLID

// Translucent, like vanilla ice and water
BlockRenderType.TRANSLUCENT

// Transparent, often used for non-full blocks, like saplings and beds.
BlockRenderType.CUTOUT

// Transparent, but mip mapped, like vanilla glass.
BlockRenderType.CUTOUT_MIPPED

Static Properties

Link to static-properties

名称类型可获得可设置描述
名称
CUTOUT
类型
BlockRenderType
可获得
true
可设置
false
描述
Transparent, often used for non-full blocks, like saplings and beds.
名称
CUTOUT_MIPPED
类型
BlockRenderType
可获得
true
可设置
false
描述
Transparent, but mip mapped, like vanilla glass.
名称
SOLID
类型
BlockRenderType
可获得
true
可设置
false
描述
Solid, opaque. This is the default value.
名称
TRANSLUCENT
类型
BlockRenderType
可获得
true
可设置
false
描述
Translucent, like vanilla ice and water