Class SimpleMaterial
java.lang.Object
dev.engine_room.flywheel.lib.material.SimpleMaterial
- All Implemented Interfaces:
Material
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final CardinalLightingModeprotected final CutoutShaderprotected final DepthTestprotected final FogShaderprotected final LightShaderprotected final booleanprotected final booleanprotected final MaterialShadersprotected final net.minecraft.resources.ResourceLocationprotected final Transparencyprotected final booleanprotected final booleanprotected final WriteMask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould this material be rendered with backface culling?booleanblur()Should this material have linear filtering applied to the diffuse sampler?static SimpleMaterial.Builderbuilder()static SimpleMaterial.BuilderHow should this material receive cardinal lighting?cutout()fog()light()booleanmipmap()booleanshaders()net.minecraft.resources.ResourceLocationtexture()booleanuseLight()Should this material be rendered with block/sky lighting?boolean
-
Field Details
-
shaders
-
fog
-
cutout
-
light
-
texture
protected final net.minecraft.resources.ResourceLocation texture -
blur
protected final boolean blur -
mipmap
protected final boolean mipmap -
backfaceCulling
protected final boolean backfaceCulling -
polygonOffset
protected final boolean polygonOffset -
depthTest
-
transparency
-
writeMask
-
useOverlay
protected final boolean useOverlay -
useLight
protected final boolean useLight -
cardinalLightingMode
-
-
Constructor Details
-
SimpleMaterial
-
-
Method Details
-
builder
-
builderOf
-
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.
-