Skip to main content

Introduction

This plugin allows an item to become a container that holds other items

Fields#

NameDescription
Starting ItemsList of items that are in the container to start with
Use Specific WindowUse a specific window for adding/removing items from this container
Window IdId of the window to use
Maximum ItemsMaximum number of items the container can hold
Maximum WeightMaximum weight the container can hold
Weight ModifierModifier to apply to the weight of items in the container
On Action State ChangedEvent raised whenever the action state changes

Properties#

NameDescription
isActionGets if the plugin is an action
titleTitle of the plugin
descriptionDescription of the plugin
actionKeysAction keys the plugin responds to
hostInventory hosting the plugin
itemGets the item associated with the plugin
iconIcon associated with the plugin
titlebarTextText to display in the titlebar for the plugin

Methods#

NameDescription
InitializeInitialize the plugin
IsActionReadyGet if a specific action is ready to perform
OnItemDroppedMethod called when another item is dropped onto this one (return true if event handled)
PerformActionPerform the default action
DataSavePrepare data for serialization and saving
AfterAddMethod run after item is added to inventory
AllowActionCheck if an action is allowed
BeforeAddMethod run before item is added to inventory
HasActionKeyCheck if plugin has action key
OnAfterAttackMethod to call whenever the player deals damage to another object
RunCommandRun a command
ShutdownShuts down the object