public abstract class PlantComponentLinker
extends java.lang.Object
Entry
values
from DataComponent
s with properties of PlantComponent
s.
It is recommended that sub-classes use the provided (and protected)
BaseVisitor
and override visit operations as necessary to determine
which Entries to link with the PlantComponent.
Constructor and Description |
---|
PlantComponentLinker(PlantBlockManager plantManager)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<EntryListener> |
linkComponents(PlantComponent plantComp,
DataComponent dataComp)
Links a PlantComponent with supported
Entry instances contained
in a DataComponent. |
public PlantComponentLinker(PlantBlockManager plantManager)
plantManager
- The PlantBlockManager that must link Entries with
PlantComponent properties.public abstract java.util.List<EntryListener> linkComponents(PlantComponent plantComp, DataComponent dataComp)
Entry
instances contained
in a DataComponent.plantComp
- The PlantComponent whose properties are contained in Entries.dataComp
- The DataComponent that contains the Entries.EntryListener
s created to link the Entries
and PlantComponents.