Class Material
Inheritance
java.lang.Object
Material
Syntax
public class Material extends MappedValues
Constructors
Material()
Declaration
Fields
DEFAULT_MATERIAL
Declaration
public static final Material DEFAULT_MATERIAL= new Material().addTexture("default",
new Texture(Material.DEFAULT_TEXTURE).load())
Field Value
DEFAULT_TEXTURE
Declaration
public static final String DEFAULT_TEXTURE= "defaultModelTexture.png"
Field Value
Type |
Description |
final String |
|
Methods
addColor(String name, Color value)
Declaration
public void addColor(String name, Color value)
Parameters
Type |
Name |
Description |
String |
name |
|
Color |
value |
|
addTexture(String name, Texture texture)
Declaration
public Material addTexture(String name, Texture texture)
Parameters
Type |
Name |
Description |
String |
name |
|
Texture |
texture |
|
Returns
getColor(String name)
Declaration
public Color getColor(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
getColorBinds()
Declaration
public Map<String, Color> getColorBinds()
Returns
Type |
Description |
Map<String, Color> |
|
getTexture(String name)
Returns a texture if present and mapped to the name provided. Note: This can return a null value.
Declaration
public Texture getTexture(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
getTextureBinds()
Declaration
public Map<String, Texture> getTextureBinds()
Returns
Type |
Description |
Map<String, Texture> |
|