Package cn.nukkit.block.customblock.type
Class MaterialsFactory
java.lang.Object
cn.nukkit.block.customblock.type.MaterialsFactory
Materials工厂类
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static MaterialsFactory
of
(CompoundTag Materials) 静态构造方法向Materials CompoundTag中填写内容process
(@NonNull String face, Boolean ambientOcclusion, Boolean faceDimming, @NonNull String renderMethod, @NonNull String texture) 向Materials CompoundTag中填写内容
-
Method Details
-
of
静态构造方法- Parameters:
Materials
- 被加工的Materials CompoundTag- Returns:
- 工厂实例
-
process
public MaterialsFactory process(@NonNull @NonNull String face, @NonNull @NonNull String renderMethod, @NonNull @NonNull String texture) 向Materials CompoundTag中填写内容- Parameters:
face
- 指定几何模型中对应的面,可选值:
'up', 'down', 'north', 'south', 'east', 'west', or '*'.renderMethod
- 要使用的渲染方法 可选值:
'opaque', 'alpha_test', 'blend', 'double_sided'.texture
- 指定几何模型中对应的面材质的纹理名称。
-
process
public MaterialsFactory process(@NonNull @NonNull String face, Boolean ambientOcclusion, Boolean faceDimming, @NonNull @NonNull String renderMethod, @NonNull @NonNull String texture) 向Materials CompoundTag中填写内容- Parameters:
face
- 指定几何模型中对应的面,可选值:
'up', 'down', 'north', 'south', 'east', 'west', or '*'.ambientOcclusion
- 这种材质在照明时是否应该应用环境光遮蔽?faceDimming
- 这种材料是否应该根据它所面对的方向变暗?renderMethod
- 要使用的渲染方法 可选值:
'opaque', 'alpha_test', 'blend', 'double_sided'.texture
- 指定几何模型中对应的面材质的纹理名称。
-
build
-