AbstractWorld

From MupeWiki

AbstractWorld is a superclass for World, containing all the content data and methods that aren't usually edited. AbstractWorld is in the ContentClasses.jar, so most developers never see the actual code. There are plenty of useful methods it provides, here's just a few of the most commonly used. For full list, check javadocs.

boolean move(Base target, Base to)

Moving target object into to object. If possible/allowed.

Room defaultRoom()

Direct access to default room object.

Base getObject(long id)

To access an object by ID number. This is almost never needed though, since you can make your client API with objects as parameters already (which basically just means that MUPE does these getObject() calls for you).

boolean removeObject(Base target)

Removes object from world's object database. Also removes all of its contents. Note that other links to these objects may remain, so removing them doesn't necessarily free up the memory yet.

String clientMove(User caller, Base target, Base to)

Same as move(), but this one is accessible from client and checks for object ownership before moving.