public class PlantComponentFactory
extends java.lang.Object
Entry
in a DataComponent
).Constructor and Description |
---|
PlantComponentFactory()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
PlantComponent |
createComponent(DataComponent dataComp)
Creates a PlantComponent based on the "type"
Entry in a
DataComponent. |
PlantComponent |
createComponent(java.lang.String type)
Creates a PlantComponent based on a type string.
|
public PlantComponent createComponent(java.lang.String type)
type
- The string corresponding to the type of PlantComponent to
create.public PlantComponent createComponent(DataComponent dataComp)
Entry
in a
DataComponent.dataComp
- The DataComponent that should have a "type" Entry.