Class ShopSignFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.sign.ShopSignFactory
- All Implemented Interfaces:
ConfigurableFactory
A base factory for
ShopSign
objects.-
Constructor Details
-
ShopSignFactory
public ShopSignFactory()
-
-
Method Details
-
getShop
Extract the shop name from a context.- Parameters:
ctx
- The configuration context. Must provide 'shop'.- Returns:
- The shop name.
-
getTitle
Extract the sign title from a context.- Parameters:
ctx
- The configuration context. Must provide 'title'.- Returns:
- The sign title.
-
create
Create a shop sign.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A ShopSign.
- See Also:
ShopSign
-