Class FishSourceFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.useable.FishSourceFactory
- All Implemented Interfaces:
ConfigurableFactory
A factory for
FishSource
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a personal fish source.protected String
Extract the species name from a context.
-
Constructor Details
-
FishSourceFactory
public FishSourceFactory()
-
-
Method Details
-
getSpecies
Extract the species name from a context.- Parameters:
ctx
- The configuration context.- Returns:
- The species name.
- Throws:
IllegalArgumentException
- If the attribute is invalid.
-
create
Create a personal fish source.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A FishSource.
- See Also:
FishSource
-