|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModel
An interface specifying a model for use in the mod environment. The model is designed according to the Model-View-Presenter paradigm. Capable of producing a list of resource types and returning resources of the selected type as ResourceNodes. Also capable of writing the current ResouceNodes held in the model to a file.
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
getCategories()
Get available categories or types of resources held by the model |
java.util.List<IResourceNode> |
getResourcesFromCategory(java.lang.String category)
Returns all ResourceNodes of a given type specified by a String. |
void |
writeResources(java.io.File file)
Write the resources to a file for use when running a game mod or to edit later. |
Method Detail |
---|
java.util.Collection<java.lang.String> getCategories()
java.util.List<IResourceNode> getResourcesFromCategory(java.lang.String category)
category
-
void writeResources(java.io.File file)
file
- File which the resources should be written to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |