Affectable, Behavable, java.lang.Cloneable, CloseableLockable, CMObject, java.lang.Comparable<CMObject>, Contingent, DBIdentifiable, Environmental, Expireable, Item, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, WearableDeadBody, DeckOfCards, FuelConsumer, HandOfCardsBackpack, BagOfEndlessness, BagOfHolding, BandedArmor, Bed, Boat, ChainMailArmor, ChainMailVest, Chair, CloseableContainer, Corpse, Dress, DrowChainMailArmor, EternityBarkArmor, EternityLeafArmor, EternityLeafShield, FieldPlate, FullPlate, GenArmor, GenBagOfEndlessness, GenBagOfHolding, GenBed, GenBelt, GenBoardable, GenBoat, GenCage, GenCageRideable, GenCannon, GenCaravan, GenCastle, GenChair, GenCigar, GenClanArmor, GenClanCastle, GenClanCommonContainer, GenClanConcierge, GenClanContainer, GenClanSailorsCap, GenClanTabbard, GenCloak, GenCompGenerator, GenCompLauncher, GenComputerConsole, GenContainer, GenCorpse, GenDress, GenDrink, GenElecContainer, GenElecPanel, GenEmptyDrink, GenFountain, GenFurniture, GenGangline, GenGiftContainer, GenGrapples, GenLiquidResource, GenMobilePortal, GenMultiPotion, GenNavigableBoardable, GenPants, GenPerfume, GenPiano, GenPipe, GenPortal, GenPotion, GenRideable, GenSailingShip, GenScale, GenShield, GenShipEngine, GenShipPanel, GenShipThruster, GenShirt, GenShoes, GenSiegableBoardable, GenSiegeWeapon, GenSpaceShip, GenStove, GenTable, GenTent, GenTriCorder, GenTub, GenWater, GlovesSpeed, GlowingMageArmor, GoodyBag, GreatHelm, Hat, Hat_Intelligence, Helmet, HerbChest, HideArmor, HoleInTheGround, Hood, HorseCart, Ingredients, LargeChest, LargeSack, LeatherArmor, LeatherBoots, LeatherBracers, LeatherCap, LeatherGauntlets, LifeFountain, LockableContainer, MetalBracers, MichaelsMithrilChain, NeedleChest, OilFlask, PaddedArmor, Pan, Pants, PortableHole, Pot, RingMail, Robes, ScaleMail, Shirt, Shoes, SmallChest, SmallSack, SplintMail, Spring, StdArmor, StdBoardable, StdCage, StdCageRideable, StdClanArmor, StdClanCommonContainer, StdClanConcierge, StdClanContainer, StdClanSailorsCap, StdClanTabbard, StdCompFuelConsumer, StdCompGenerator, StdCompLauncher, StdCompPanel, StdComputerConsole, StdContainer, StdContainerWrapper, StdDeckOfCards, StdDrink, StdElecCompContainer, StdElecContainer, StdElecPanel, StdGrapples, StdHandOfCards, StdNavigableBoardable, StdPerfume, StdPortal, StdPortalWrapper, StdPotion, StdRideable, StdRideableWrapper, StdShield, StdShipEngine, StdShipThruster, StdSiegableBoardable, StdSiegeWeapon, StdSmokable, StdTriCorder, StdTub, SteelGauntlets, StuddedLeatherArmor, ThreadbareRobes, TrappedChest, WalkingBoots, Waterskin, Wineskinpublic interface Container extends Item, CloseableLockable
Wearable.CODES| Modifier and Type | Field | Description |
|---|---|---|
static int |
CONTAIN_ANYTHING |
Container type that overrides all others -- the container can hold anything!
|
static int |
CONTAIN_BODIES |
Container Type flag that means the container can hold corpses
|
static int |
CONTAIN_CAGED |
Container Type flag that means the container can hold caged animals
|
static int |
CONTAIN_CLOTHES |
Container Type flag that means the container can hold clothing
|
static int |
CONTAIN_COINS |
Container Type flag that means the container can hold coins
|
static int |
CONTAIN_DAGGERS |
Container Type flag that means the container can hold daggers
|
static java.lang.String[] |
CONTAIN_DESCS |
Ordinal list of the names of all the container bitmask types.
|
static int |
CONTAIN_DRINKABLES |
Container Type flag that means the container can hold drinkables
|
static int |
CONTAIN_EATABLES |
Container Type flag that means the container can hold foods
|
static int |
CONTAIN_FOOTWEAR |
Container Type flag that means the container can hold shoes
|
static int |
CONTAIN_KEYS |
Container Type flag that means the container can hold keys
|
static int |
CONTAIN_LIQUID |
Container Type flag that means the container can hold liquids
|
static int |
CONTAIN_ONEHANDWEAPONS |
Container Type flag that means the container can hold one handed weapons
|
static int |
CONTAIN_OTHERWEAPONS |
Container Type flag that means the container can hold other weapons
|
static int |
CONTAIN_RAWMATERIALS |
Container Type flag that means the container can hold raw resources
|
static int |
CONTAIN_READABLES |
Container Type flag that means the container can hold books and such
|
static int |
CONTAIN_SCROLLS |
Container Type flag that means the container can hold scrolls
|
static int |
CONTAIN_SHIELDS |
Container Type flag that means the container can hold shields
|
static int |
CONTAIN_SMOKEABLES |
Container Type flag that means the container can hold smokeables
|
static int |
CONTAIN_SSCOMPONENTS |
Container Type flag that means the container can hold space ship components
|
static int |
CONTAIN_SWORDS |
Container Type flag that means the container can hold swords
|
idConverterSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESETDEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canContain(Item I) |
Returns whether this container is allowed to contain the given object.
|
int |
capacity() |
Returns the maximum weight that can fit inside this container.
|
long |
containTypes() |
Returns a bitmap of the types of things that this container can hold.
|
void |
emptyPlease(boolean flatten) |
Empties this container into its owner.
|
ReadOnlyList<Item> |
getContents() |
Returns all the immediate items in this container, including
other containers, but not the contents of those innner containers.
|
ReadOnlyList<Item> |
getDeepContents() |
Returns all the items in this container, including other
containers and THEIR contents, recursively.
|
boolean |
hasContent() |
Returns whether there is anything at all in this container.
|
boolean |
isInside(Item I) |
Returns whether the given item is, in fact, inside this container, even
recursively.
|
void |
setCapacity(int newValue) |
Sets the maximum weight that can fit inside this container.
|
void |
setContainTypes(long containTypes) |
Sets a bitmap of the types of things that this container can hold.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptsdefaultsClosed, defaultsLocked, hasADoor, hasALock, isLocked, isOpen, keyName, openDelayTicks, setDoorsNLocks, setKeyName, setOpenDelayTickscopyOf, ID, initializeClass, newInstanceamDestroyed, destroy, isSavable, setSavablecanSaveDatabaseID, databaseID, setDatabaseIDdescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, textexpirationDate, setExpirationDatebaseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, valuegetSaveStatIndex, getStat, getStatCodes, isStat, setStatexecuteMsg, okMessagedescription, displayText, genericName, nameisReadable, readableText, setReadable, setReadableTextaffectCharState, affectCharStats, affectPhyStatsgetTickStatus, name, tickamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearstatic final int CONTAIN_ANYTHING
setContainTypes(long),
containTypes(),
Constant Field Valuesstatic final int CONTAIN_LIQUID
static final int CONTAIN_COINS
static final int CONTAIN_SWORDS
static final int CONTAIN_DAGGERS
static final int CONTAIN_OTHERWEAPONS
static final int CONTAIN_ONEHANDWEAPONS
static final int CONTAIN_BODIES
static final int CONTAIN_READABLES
static final int CONTAIN_SCROLLS
static final int CONTAIN_CAGED
static final int CONTAIN_KEYS
static final int CONTAIN_DRINKABLES
static final int CONTAIN_CLOTHES
static final int CONTAIN_SMOKEABLES
static final int CONTAIN_SSCOMPONENTS
static final int CONTAIN_FOOTWEAR
static final int CONTAIN_RAWMATERIALS
static final int CONTAIN_EATABLES
static final int CONTAIN_SHIELDS
static final java.lang.String[] CONTAIN_DESCS
setContainTypes(long),
containTypes()ReadOnlyList<Item> getDeepContents()
getContents()ReadOnlyList<Item> getContents()
getDeepContents()int capacity()
setCapacity(int)void setCapacity(int newValue)
newValue - the maximum weight that can fit inside this containercapacity()boolean hasContent()
boolean canContain(Item I)
I - the item to check against the allowed contentsetContainTypes(long),
containTypes()boolean isInside(Item I)
I - the item to check against the contentlong containTypes()
setContainTypes(long),
CONTAIN_ANYTHING,
CONTAIN_DESCSvoid setContainTypes(long containTypes)
containTypes - a bitmap of the types of things that this container can hold.containTypes(),
CONTAIN_ANYTHING,
CONTAIN_DESCSvoid emptyPlease(boolean flatten)
flatten - if true, will also remove all recursive items from their containers