public class Material extends Attributes
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
id |
attributes, mask, sorted| Constructor and Description |
|---|
Material()
Create an empty material
|
Material(Array<Attribute> attributes)
Create a material with the specified attributes
|
Material(Attribute... attributes)
Create a material with the specified attributes
|
Material(Material copyFrom)
Create a material which is an exact copy of the specified material
|
Material(java.lang.String id)
Create an empty material
|
Material(java.lang.String id,
Array<Attribute> attributes)
Create a material with the specified attributes
|
Material(java.lang.String id,
Attribute... attributes)
Create a material with the specified attributes
|
Material(java.lang.String id,
Material copyFrom)
Create a material which is an exact copy of the specified material
|
| Modifier and Type | Method and Description |
|---|---|
Material |
copy()
Create a copy of this material
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
attributesHash, clear, compare, compareTo, get, get, get, getMask, has, indexOf, iterator, remove, same, same, set, set, set, set, set, set, size, sortpublic Material()
public Material(java.lang.String id)
public Material(Attribute... attributes)
public Material(java.lang.String id,
Attribute... attributes)
public Material(Array<Attribute> attributes)
public Material(java.lang.String id,
Array<Attribute> attributes)
public Material(Material copyFrom)
public Material(java.lang.String id,
Material copyFrom)
public final Material copy()
public int hashCode()
hashCode in class Attributespublic boolean equals(java.lang.Object other)
equals in interface java.util.Comparator<Attribute>equals in class Attributes