Deity, GridLocale, ItemPossessor, LocationRoom, MOB, RoomAlligator, AngryCitizen, Ape, Assassin, Beaver, Bee, BlackBear, BlackDragon, BlueDragon, BrassDragon, BronzeDragon, BrownBear, BrownSnake, Buck, Buffalo, Bugbear, Bull, Cat, CaveGrid, CaveMaze, CaveRoom, CaveSeaPort, CaveSurface, Centaur, Centipede, Cheetah, Chicken, Chimp, Citizen, CityStreet, ClimbableLedge, ClimbableSurface, Cobra, CombatDummy, CommonBat, CopperDragon, Cougar, Cow, Coyote, Crocodile, DarkStoneRoom, Deer, DefaultItemCollection, Desert, DesertGrid, DesertMaze, DesertThinGrid, DireWolf, Doe, Dog, Dolphin, Doppleganger, Dragon, DrowElf, DrowPriestess, DrowWarrior, DrowWizard, Duck, Elephant, EndlessOcean, EndlessSky, EndlessThinOcean, EndlessThinSky, Falcon, FireGiant, FlyingInsect, Fox, Frog, FrostGiant, FrozenMountains, FrozenPlains, GardenSnake, GenAuctioneer, GenBanker, GenCow, GenDeity, GenGatheringSkill, GenHorse, GenLibrarian, GenMob, GenPostman, GenRideable, GenRideableUndead, GenShopkeeper, GenUndead, GiantBat, GiantScorpion, Gnoll, Goat, GoatDoe, Goblin, GoldDragon, Gorilla, GreatLake, GreatThinLake, GreenDragon, Hawk, HeavenlyServent, HideoutShelter, HillGiant, Hills, HillsGrid, HillsThinGrid, Hornet, Horse, HotRoom, IcePlains, IceRoom, IndoorInTheAir, IndoorShallowWater, IndoorUnderWater, IndoorUnderWaterColumnGrid, IndoorUnderWaterGrid, IndoorUnderWaterThinGrid, IndoorWaterSurface, IndoorWaterSurfaceColumn, IndoorWaterThinSurface, InTheAir, InvisibleStalker, Jaguar, Jungle, JungleGrid, JungleThinGrid, Kitten, LargeBat, LargeCaveRoom, LargeStoneRoom, LargeWoodRoom, Lion, Lizard, LizardMan, LizardManShaman, LongerRoad, LongestRoad, LongRoad, MagicFreeRoom, MagicShelter, MetalRoom, MetalRoomMaze, Minotaur, Monkey, MountainLion, Mountains, MountainsGrid, MountainsMaze, MountainsThinGrid, MountainSurface, MountainSurfaceGrid, MountainSurfaceThinGrid, Mouse, Naga, OceanGrid, OceanThinGrid, Ogre, Orc, OverTheLedge, Owl, Panther, Parakeet, Pegasus, PegasusGreater, Penguin, Pig, Plains, PlainsGrid, PlainsThinGrid, Puppy, Python, Rabbit, Rat, Rattlesnake, Raven, RedDragon, Road, RoadGrid, RoadThinGrid, Rooster, SaltWaterSurface, SaltWaterSurfaceColumn, SaltWaterThinSurface, Scorpion, Seal, SeaPort, SewerMaze, SewerRoom, ShallowWater, Shark, Sheep, ShipDeck, ShipHeavyGunDeck, ShipHold, ShipLightGunDeck, ShipMagazine, ShipMedGunDeck, ShipQuarter, Shore, ShoreGrid, SilverDragon, Skeleton, Snake, SpacePort, Spider, Squirrel, StdAuctioneer, StdBanker, StdDeity, StdFactoryMOB, StdGrid, StdLibrarian, StdMaze, StdMOB, StdMobWrapper, StdPostman, StdRideable, StdRideableWrapper, StdRoom, StdShopKeeper, StdThinGrid, StoneGiant, StoneGolem, StoneGrid, StoneMaze, StoneRoom, StoneThinGrid, Swamp, SwampGrid, SwampThinGrid, Swordfish, Teacher, ThinRoom, Tiger, Toad, TreeSurface, Troll, Turtle, UmberHulk, Undead, UndergroundCityStreet, UnderSaltWater, UnderSaltWaterColumnGrid, UnderSaltWaterGrid, UnderSaltWaterMaze, UnderSaltWaterThinGrid, UnderWater, UnderwaterCityStreet, UnderWaterColumnGrid, UnderWaterGrid, UnderWaterMaze, UnderWaterThinGrid, Void, Vulture, Walrus, WaterSurface, WaterSurfaceColumn, WaterThinSurface, WeakItemCollection, WetCaveGrid, WetCaveMaze, WetCaveRoom, Whale, Whirlpool, WhiteBear, WhiteDragon, WildEagle, Wolf, Wolverine, WoodenDeck, WoodRoom, WoodRoomGrid, WoodRoomMaze, WoodRoomThinGrid, Woods, WoodSeaPort, WoodsGrid, WoodsMaze, WoodsThinGrid, Worm, Wyvern, Zombiepublic interface ItemCollection extends CMObject
idConverter| Modifier and Type | Method | Description |
|---|---|---|
void |
addItem(Item item) |
Adds a new item to its possessor.
|
void |
delAllItems(boolean destroy) |
Removes all items from this collection
|
void |
delItem(Item item) |
Removes the item from this possessor.
|
void |
eachItem(EachApplicable<Item> applier) |
Applies the given code to each item in this collection
|
Item |
findItem(Item goodLocation,
java.lang.String itemID) |
Returns the item in the given container that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller name is found).
|
Item |
findItem(java.lang.String itemID) |
Returns the item in this possessor that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller name is found).
|
java.util.List<Item> |
findItems(Item goodLocation,
java.lang.String itemID) |
Returns all items in the given container that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller names are found).
|
java.util.List<Item> |
findItems(java.lang.String itemID) |
Returns all items in this possessor that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller names are found).
|
Item |
getItem(int i) |
Returns the item at the given index, regardless of container status,
visibility, or other modifiers.
|
Item |
getRandomItem() |
Returns a random item in this collection, or null
|
boolean |
isContent(Item item) |
Returns whether the given item is in this possessors list.
|
java.util.Enumeration<Item> |
items() |
An enumeration of all the items at this possessor.
|
int |
numItems() |
Returns the total number of items at this possessor, regardless
of container status.
|
copyOf, ID, initializeClass, name, newInstancevoid addItem(Item item)
item - the item to adddelItem(Item)void delItem(Item item)
item - the item to removeint numItems()
Item getItem(int i)
i - the index of the itemItem getRandomItem()
java.util.Enumeration<Item> items()
Item findItem(Item goodLocation, java.lang.String itemID)
goodLocation - the container to look in, or null for noneitemID - the name or partial name of the item to fetchItem findItem(java.lang.String itemID)
itemID - the name or partial name of the item to fetchjava.util.List<Item> findItems(Item goodLocation, java.lang.String itemID)
goodLocation - the container to look in, or null for noneitemID - the name or partial name of the item to fetchjava.util.List<Item> findItems(java.lang.String itemID)
itemID - the name or partial name of the item to fetchboolean isContent(Item item)
item - the item to checkvoid delAllItems(boolean destroy)
destroy - true to also destroy the itemsvoid eachItem(EachApplicable<Item> applier)
applier - code to execute against each object