public enum BlendMode extends Enum<BlendMode>
| Enum Constant and Description |
|---|
CUTOUT
Pixels with alpha > 0.5 are rendered as if
SOLID. |
CUTOUT_MIPPED
Pixels with alpha > 0.5 are rendered as if
SOLID. |
DEFAULT
Emulate blending behavior of
BlockRenderLayer associated with the block. |
SOLID
Fully opaque with depth test, no blending.
|
TRANSLUCENT
Pixels are blended with the background according to alpha color values.
|
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.client.render.RenderLayer |
blockRenderLayer |
| Modifier and Type | Method and Description |
|---|---|
static BlendMode |
fromRenderLayer(net.minecraft.client.render.RenderLayer renderLayer) |
static BlendMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlendMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlendMode DEFAULT
BlockRenderLayer associated with the block.public static final BlendMode SOLID
public static final BlendMode CUTOUT_MIPPED
SOLID. Other pixels are not rendered.
Texture mip-map enabled. Used for leaves.public static final BlendMode CUTOUT
SOLID. Other pixels are not rendered.
Texture mip-map disabled. Used for iron bars, glass and other cutout sprites with hard edges.public static final BlendMode TRANSLUCENT
public static BlendMode[] values()
for (BlendMode c : BlendMode.values()) System.out.println(c);
public static BlendMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static BlendMode fromRenderLayer(net.minecraft.client.render.RenderLayer renderLayer)