Class PasswordPortalFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.portal.PasswordPortalFactory
- All Implemented Interfaces:
ConfigurableFactory
A factory for
PasswordPortal
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a password portal.protected int
getIntValue(ConfigurableFactoryContext ctx, String key)
protected String
getStringValue(ConfigurableFactoryContext ctx, String key)
-
Constructor Details
-
PasswordPortalFactory
public PasswordPortalFactory()
-
-
Method Details
-
create
Create a password portal.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A PasswordPortal.
- Throws:
IllegalArgumentException
- If there is a problem with the attributes. The exception message should be a value suitable for meaningful user interpretation.- See Also:
PasswordPortal
-
getStringValue
-
getIntValue
-