Class PersonalChestFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.chest.PersonalChestFactory
- All Implemented Interfaces:
ConfigurableFactory
A factory for
PersonalChest
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a personal chest.protected String
Extract the slot name from a context.
-
Constructor Details
-
PersonalChestFactory
public PersonalChestFactory()
-
-
Method Details
-
getSlot
Extract the slot name from a context.- Parameters:
ctx
- The configuration context. 'slot' must be defined in ctx- Returns:
- The slot name.
-
create
Create a personal chest.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A PersonalChest.
- Throws:
IllegalArgumentException
- If there is a problem with the attributes. The exception message should be a value suitable for meaningful user interpretation.- See Also:
PersonalChest
-