BlockRenderType
Link to blockrendertype
This class was added by a mod with mod-id contenttweaker
. Так что если вы хотите использовать эту функцию, вам нужно установить этот мод.
Импорт класса
Link to импорт-класса
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 Copyimport mods.contenttweaker.block.BlockRenderType;
Enum Constants
Link to enum-constants
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
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название CUTOUT | Тип BlockRenderType | Имеет Getter true | Имеет Setter false | Описание Transparent, often used for non-full blocks, like saplings and beds. |
Название CUTOUT_MIPPED | Тип BlockRenderType | Имеет Getter true | Имеет Setter false | Описание Transparent, but mip mapped, like vanilla glass. |
Название SOLID | Тип BlockRenderType | Имеет Getter true | Имеет Setter false | Описание Solid, opaque. This is the default value. |
Название TRANSLUCENT | Тип BlockRenderType | Имеет Getter true | Имеет Setter false | Описание Translucent, like vanilla ice and water |