Class Material
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.entities.Material
- All Implemented Interfaces:
ICustomPropertyProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MaterialCeramic material.static final MaterialFlesh material.static final MaterialFoliage material.static final MaterialPlastic material.static final MaterialSteel material.static final MaterialStone material.static final MaterialDefault fall-back material used when no specific material is assigned.static final MaterialWood material. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MaterialReturns the material registered under the supplied name (case-insensitive), orUNDEFINEDif no such material exists.static Collection<Material> Returns all registered materials, including any custom ones created at runtime.getName()Returns the display name of this material.toString()Methods inherited from class CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Field Details
-
UNDEFINED
Default fall-back material used when no specific material is assigned. -
CERAMIC
Ceramic material. -
FLESH
Flesh material. -
FOLIAGE
Foliage material. -
PLASTIC
Plastic material. -
STEEL
Steel material. -
STONE
Stone material. -
WOOD
Wood material.
-
-
Constructor Details
-
Material
Initializes a new instance of theMaterialclass.- Parameters:
name- The name of the material.
-
-
Method Details
-
get
-
getMaterials
Returns all registered materials, including any custom ones created at runtime.- Returns:
- the registered materials
-
getName
-
toString
-