Version 1.5APIs subject to change!

multiverse.server.plugins
Class InventoryClient

java.lang.Object
  extended by multiverse.server.plugins.InventoryClient

public class InventoryClient
extends java.lang.Object

client for sending/getting messages to the InventoryPlugin


Nested Class Summary
static class InventoryClient.ActivateMessage
          the obj is the "main" oid for the message since that is what the InventoryPlugin is subscribing on
static class InventoryClient.AddItemMessage
           
static class InventoryClient.InvUpdateMessage
           
static class InventoryClient.ItemInfo
           
static class InventoryClient.LootAllMessage
          message is asking the inventory plugin to execute looting by looter of the passed in container
static class InventoryClient.RemoveOrFindItemMessage
           
 
Field Summary
static java.lang.String INV_METHOD_OID
           
static java.lang.String INV_METHOD_TEMPLATE
           
static java.lang.String INV_METHOD_TEMPLATE_LIST
           
static Namespace ITEM_NAMESPACE
           
static MessageType MSG_TYPE_ACTIVATE
           
static MessageType MSG_TYPE_ADD_ITEM
           
static MessageType MSG_TYPE_CREATE_INV
           
static MessageType MSG_TYPE_DESTROY_ITEM
           
static MessageType MSG_TYPE_INV_FIND
           
static MessageType MSG_TYPE_INV_REMOVE
           
static MessageType MSG_TYPE_INV_UPDATE
           
static MessageType MSG_TYPE_LOOTALL
           
static Namespace NAMESPACE
           
static java.lang.String TEMPL_ACTIVATE_HOOK
           
static java.lang.String TEMPL_DCMAP
           
static java.lang.String TEMPL_EQUIP_INFO
           
static java.lang.String TEMPL_ICON
           
static java.lang.String TEMPL_ITEMS
          template starting items
 
Constructor Summary
InventoryClient()
           
 
Method Summary
static void activateObject(java.lang.Long objOid, java.lang.Long activatorOid, java.lang.Long targetOid)
           
static boolean addItem(java.lang.Long containerOid, java.lang.Long mobOid, java.lang.Long rootContainerOid, java.lang.Long itemOid)
           
static java.lang.Long createInventory(java.lang.Long oid)
           
static java.lang.Long findItem(java.lang.Long mobOid, java.lang.String templateName)
           
static java.util.List<java.lang.Long> findItems(java.lang.Long mobOid, java.util.ArrayList<java.lang.String> templateNames)
           
static void getInventory(java.lang.Long objOid)
          Requests a full inventory update from the InventoryPlugin
static boolean lootAll(java.lang.Long looterOid, java.lang.Long containerOid)
           
static java.lang.Long removeItem(java.lang.Long mobOid, java.lang.Long itemOid)
           
static java.lang.Long removeItem(java.lang.Long mobOid, java.lang.String templateName)
           
static java.util.List<java.lang.Long> removeItems(java.lang.Long mobOid, java.util.ArrayList<java.lang.String> templateNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_TYPE_ADD_ITEM

public static final MessageType MSG_TYPE_ADD_ITEM

MSG_TYPE_CREATE_INV

public static final MessageType MSG_TYPE_CREATE_INV

MSG_TYPE_INV_UPDATE

public static final MessageType MSG_TYPE_INV_UPDATE

MSG_TYPE_ACTIVATE

public static final MessageType MSG_TYPE_ACTIVATE

MSG_TYPE_LOOTALL

public static final MessageType MSG_TYPE_LOOTALL

MSG_TYPE_INV_FIND

public static final MessageType MSG_TYPE_INV_FIND

MSG_TYPE_INV_REMOVE

public static final MessageType MSG_TYPE_INV_REMOVE

MSG_TYPE_DESTROY_ITEM

public static final MessageType MSG_TYPE_DESTROY_ITEM

INV_METHOD_OID

public static final java.lang.String INV_METHOD_OID
See Also:
Constant Field Values

INV_METHOD_TEMPLATE

public static final java.lang.String INV_METHOD_TEMPLATE
See Also:
Constant Field Values

INV_METHOD_TEMPLATE_LIST

public static final java.lang.String INV_METHOD_TEMPLATE_LIST
See Also:
Constant Field Values

TEMPL_ITEMS

public static final java.lang.String TEMPL_ITEMS
template starting items

See Also:
Constant Field Values

TEMPL_EQUIP_INFO

public static final java.lang.String TEMPL_EQUIP_INFO
See Also:
Constant Field Values

TEMPL_ACTIVATE_HOOK

public static final java.lang.String TEMPL_ACTIVATE_HOOK
See Also:
Constant Field Values

TEMPL_ICON

public static final java.lang.String TEMPL_ICON
See Also:
Constant Field Values

TEMPL_DCMAP

public static final java.lang.String TEMPL_DCMAP
See Also:
Constant Field Values

NAMESPACE

public static Namespace NAMESPACE

ITEM_NAMESPACE

public static Namespace ITEM_NAMESPACE
Constructor Detail

InventoryClient

public InventoryClient()
Method Detail

getInventory

public static void getInventory(java.lang.Long objOid)
Requests a full inventory update from the InventoryPlugin


createInventory

public static java.lang.Long createInventory(java.lang.Long oid)

activateObject

public static void activateObject(java.lang.Long objOid,
                                  java.lang.Long activatorOid,
                                  java.lang.Long targetOid)

lootAll

public static boolean lootAll(java.lang.Long looterOid,
                              java.lang.Long containerOid)

addItem

public static boolean addItem(java.lang.Long containerOid,
                              java.lang.Long mobOid,
                              java.lang.Long rootContainerOid,
                              java.lang.Long itemOid)

removeItem

public static java.lang.Long removeItem(java.lang.Long mobOid,
                                        java.lang.Long itemOid)

removeItem

public static java.lang.Long removeItem(java.lang.Long mobOid,
                                        java.lang.String templateName)

removeItems

public static java.util.List<java.lang.Long> removeItems(java.lang.Long mobOid,
                                                         java.util.ArrayList<java.lang.String> templateNames)

findItem

public static java.lang.Long findItem(java.lang.Long mobOid,
                                      java.lang.String templateName)

findItems

public static java.util.List<java.lang.Long> findItems(java.lang.Long mobOid,
                                                       java.util.ArrayList<java.lang.String> templateNames)


Copyright © 2008 The Multiverse Network, Inc.