Class SimpleMaterial.Builder
java.lang.Object
com.jozufozu.flywheel.lib.material.SimpleMaterial.Builder
- All Implemented Interfaces:
Material
- Enclosing class:
- SimpleMaterial
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected CutoutShaderprotected DepthTestprotected booleanprotected FogShaderprotected booleanprotected booleanprotected MaterialShadersprotected net.minecraft.resources.ResourceLocationprotected Transparencyprotected booleanprotected booleanprotected WriteMask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould 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()cutout()cutout(CutoutShader value) booleandiffuse()Should this material be rendered with diffuse lighting?diffuse(boolean value) fog()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
-
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 -
diffuse
protected boolean diffuse
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
copyFrom
-
shaders
-
fog
-
cutout
-
texture
-
blur
-
mipmap
-
backfaceCulling
-
polygonOffset
-
depthTest
-
transparency
-
writeMask
-
useOverlay
-
useLight
-
diffuse
-
shaders
-
fog
-
cutout
-
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? -
diffuse
public boolean diffuse()Description copied from interface:MaterialShould this material be rendered with diffuse lighting? -
build
-