Introduction
This plugin allows an item to become a container that holds other items
#
FieldsName | Description |
---|---|
Starting Items | List of items that are in the container to start with |
Use Specific Window | Use a specific window for adding/removing items from this container |
Window Id | Id of the window to use |
Maximum Items | Maximum number of items the container can hold |
Maximum Weight | Maximum weight the container can hold |
Weight Modifier | Modifier to apply to the weight of items in the container |
On Action State Changed | Event raised whenever the action state changes |
#
PropertiesName | Description |
---|---|
isAction | Gets if the plugin is an action |
title | Title of the plugin |
description | Description of the plugin |
actionKeys | Action keys the plugin responds to |
host | Inventory hosting the plugin |
item | Gets the item associated with the plugin |
icon | Icon associated with the plugin |
titlebarText | Text to display in the titlebar for the plugin |
#
MethodsName | Description |
---|---|
Initialize | Initialize the plugin |
IsActionReady | Get if a specific action is ready to perform |
OnItemDropped | Method called when another item is dropped onto this one (return true if event handled) |
PerformAction | Perform the default action |
DataSave | Prepare data for serialization and saving |
AfterAdd | Method run after item is added to inventory |
AllowAction | Check if an action is allowed |
BeforeAdd | Method run before item is added to inventory |
HasActionKey | Check if plugin has action key |
OnAfterAttack | Method to call whenever the player deals damage to another object |
RunCommand | Run a command |
Shutdown | Shuts down the object |