public interface IMaterialsDatabase extends IElementSource<Material>
Modifier and Type | Method and Description |
---|---|
void |
addMaterial(Material material)
This operation creates a new material in the database.
|
void |
deleteMaterial(Material material)
This operation deletes a material from the database.
|
void |
deleteMaterial(java.lang.String name)
This operation deletes a material from the database.
|
java.util.List<Material> |
getMaterials()
This operation returns all of the materials in the database.
|
void |
restoreDefaults()
This operation restores the database to its initial configuration,
destroying all new and updated material information in the process.
|
void |
updateMaterial(Material material)
This operation overwrites the information for a material in the database
with information from another.
|
getElements, getTableFormat
java.util.List<Material> getMaterials()
void addMaterial(Material material)
material
- the new Materialvoid deleteMaterial(java.lang.String name)
name
- the name of the materialvoid deleteMaterial(Material material)
material
- the Material to removevoid updateMaterial(Material material)
material
- The new Material information.void restoreDefaults()