Class SimpleMaterial.Builder
java.lang.Object
dev.engine_room.flywheel.lib.material.SimpleMaterial.Builder
- All Implemented Interfaces:
Material
- Enclosing class:
SimpleMaterial
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected CardinalLightingModeprotected CutoutShaderprotected DepthTestprotected FogShaderprotected LightShaderprotected booleanprotected booleanprotected MaterialShadersprotected net.minecraft.resources.ResourceLocationprotected Transparencyprotected booleanprotected booleanprotected WriteMask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this material should receive ambient occlusion from nearby chunk geometry.ambientOcclusion(boolean ambientOcclusion) booleanShould this material be rendered with backface culling?backfaceCulling(boolean value) booleanblur()Should this material have linear filtering applied to the diffuse sampler?blur(boolean value) build()How should this material receive cardinal lighting?cutout()cutout(CutoutShader value) diffuse(boolean value) Deprecated, for removal: This API element is subject to removal in a future version.fog()light()light(LightShader value) booleanmipmap()mipmap(boolean value) booleanpolygonOffset(boolean value) shaders()shaders(MaterialShaders value) net.minecraft.resources.ResourceLocationtexture()texture(net.minecraft.resources.ResourceLocation value) transparency(Transparency value) booleanuseLight()Should this material be rendered with block/sky lighting?useLight(boolean value) booleanuseOverlay(boolean value)
-
Field Details
-
shaders
-
fog
-
cutout
-
light
-
texture
protected net.minecraft.resources.ResourceLocation texture -
blur
protected boolean blur -
mipmap
protected boolean mipmap -
backfaceCulling
protected boolean backfaceCulling -
polygonOffset
protected boolean polygonOffset -
depthTest
-
transparency
-
writeMask
-
useOverlay
protected boolean useOverlay -
useLight
protected boolean useLight -
cardinalLightingMode
-
ambientOcclusion
protected boolean ambientOcclusion
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
copyFrom
-
shaders
-
fog
-
cutout
-
light
-
texture
-
blur
-
mipmap
-
backfaceCulling
-
polygonOffset
-
depthTest
-
transparency
-
writeMask
-
useOverlay
-
useLight
-
diffuse
Deprecated, for removal: This API element is subject to removal in a future version.UsecardinalLightingMode(CardinalLightingMode)instead. -
cardinalLightingMode
-
ambientOcclusion
-
shaders
-
fog
-
cutout
-
light
-
texture
public net.minecraft.resources.ResourceLocation texture() -
blur
public boolean blur()Description copied from interface:MaterialShould this material have linear filtering applied to the diffuse sampler? -
mipmap
public boolean mipmap() -
backfaceCulling
public boolean backfaceCulling()Description copied from interface:MaterialShould this material be rendered with backface culling?- Specified by:
backfaceCullingin interfaceMaterial- Returns:
trueif this material should be rendered with backface culling.
-
polygonOffset
public boolean polygonOffset()- Specified by:
polygonOffsetin interfaceMaterial
-
depthTest
-
transparency
- Specified by:
transparencyin interfaceMaterial
-
writeMask
-
useOverlay
public boolean useOverlay()- Specified by:
useOverlayin interfaceMaterial
-
useLight
public boolean useLight()Description copied from interface:MaterialShould this material be rendered with block/sky lighting? -
cardinalLightingMode
Description copied from interface:MaterialHow should this material receive cardinal lighting?- Specified by:
cardinalLightingModein interfaceMaterial- Returns:
- The cardinal lighting mode.
-
ambientOcclusion
public boolean ambientOcclusion()Description copied from interface:MaterialWhether this material should receive ambient occlusion from nearby chunk geometry.- Specified by:
ambientOcclusionin interfaceMaterial- Returns:
trueif this material should receive ambient occlusion.
-
build
-
cardinalLightingMode(CardinalLightingMode)instead.