material
Class MaterialList

java.lang.Object
  extended by material.MaterialList

public class MaterialList
extends java.lang.Object

a list, wich contains all materials along with its name


Constructor Summary
MaterialList()
           
 
Method Summary
 void add(java.lang.String name, IMaterial material)
           
 IMaterial get(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterialList

public MaterialList()
Method Detail

add

public void add(java.lang.String name,
                IMaterial material)
Parameters:
name - name of the material
material - the material itself

get

public IMaterial get(java.lang.String name)
Parameters:
name - the name of the wanted material
Returns:
the material with the given name