Affectable, Behavable, java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, WearableAmmunition, AmmunitionWeapon, Armor, BodyToken, Book, CagedAnimal, ClanItem, Coins, Computer, Container, DeadBody, DeckOfCards, DoorKey, ElecPanel, Electronics, FalseLimb, Food, FuelConsumer, HandOfCards, InnKey, Light, MagicDust, MiscMagic, MusicalInstrument, NavigableItem, PackagedItems, Pill, PlayingCard, Potion, PowerGenerator, PowerSource, RawMaterial, RecipesBook, RoomMap, Scroll, Shield, ShipDirectional, ShipEngine, ShipWarComponent, SiegableItem, Software, SpaceObject.SpaceGateway, TechComponent, Technical, Wand, WeaponApple, ArchonJournal, ArchonStaff, Arquebus, Asteroid, Backpack, BagOfEndlessness, BagOfHolding, BandedArmor, BardMap, BattleAxe, Bed, Boat, Broom, Cestus, ChainMailArmor, ChainMailVest, Chair, Claymore, CloseableContainer, Corpse, CubicGate, Dagger, DaggerOfVenom, DatabaseProgram, Dirk, DragonClaw, Dress, DrowChainMailArmor, DrowDagger, DrowMace, DrowQuarterstaff, DrowSword, DruidicMonument, DwarfStar, EmissionScanProgram, EternityBarkArmor, EternityLeafArmor, EternityLeafShield, EternityQuarterstaff, FieldPlate, FlamingSword, FullPlate, GasGiant, Gem, GenAbsorbantShield, GenAmmunition, GenArmor, GenBagOfEndlessness, GenBagOfHolding, GenBed, GenBelt, GenBlaster, GenBoardable, GenBoat, GenBoffWeapon, GenBook, GenBow, GenBussardCollector, GenCage, GenCaged, GenCageRideable, GenCannon, GenCaravan, GenCastle, GenChair, GenCigar, GenClanApron, GenClanArmor, GenClanCard, GenClanCastle, GenClanCommonContainer, GenClanCommonItem, GenClanConcierge, GenClanContainer, GenClanDonationList, GenClanFlag, GenClanItem, GenClanPamphlet, GenClanSailorsCap, GenClanSpecialItem, GenClanTabbard, GenCloak, GenCoins, GenCompBattery, GenCompEnviroSystem, GenCompGenerator, GenCompLauncher, GenComputerConsole, GenContainer, GenCorpse, GenDeflectionShield, GenDice, GenDisruptor, GenDisruptor2, GenDissertation, GenDress, GenDrink, GenEarring, GenEclipseField, GenElecCompItem, GenElecCompSensor, GenElecContainer, GenElecItem, GenElecPanel, GenElecWeapon, GenEmptyDrink, GenEnergyShield, GenFatWallpaper, GenFixture, GenFood, GenFoodResource, GenFountain, GenFuellessGenerator, GenFurniture, GenGangline, GenGiftContainer, GenGrapples, GenGraviticSensor, GenGun, GenHandBow, GenInstrument, GenIntegrityShield, GenItem, GenJournal, GenKey, GenKineticField, GenLantern, GenLaserGun, GenLasso, GenLawBook, GenLightSource, GenLightSwitch, GenLimb, GenLiquidResource, GenMagicInstrument, GenMap, GenMirror, GenMobilePortal, GenMultiPotion, GenMutingField, GenNavigableBoardable, GenNet, GenPackagedItems, GenPackagedStack, GenPackagedVariety, GenPants, GenPaper, GenPerfume, GenPersonalShield, GenPhaser, GenPhaser2, GenPiano, GenPill, GenPipe, GenPlayerBook, GenPlayingCard, GenPortal, GenPotion, GenPowder, GenQuestBoard, GenReadable, GenRecipe, GenReflectionShield, GenResource, GenRideable, GenRuinedItem, GenSailingShip, GenScale, GenScroll, GenShield, GenShipDampener, GenShipEngine, GenShipGravityGen, GenShipInertialBattery, GenShipOpticalSensor, GenShipPanel, GenShipProgram, GenShipShieldGenerator, GenShipThruster, GenShipViewScreen, GenShipWeapon, GenShipWindow, GenShirt, GenShoes, GenSiegableBoardable, GenSiegeWeapon, GenSling, GenSmartTorpedo, GenSoftware, GenSolarGenerator, GenSonicGun, GenSpaceBody, GenSpaceDrive, GenSpaceShip, GenSpaceTech, GenSpear, GenStaff, GenStealthShield, GenStove, GenSuperPill, GenTable, GenTechItem, GenTent, GenThinArmor, GenTickerShield, GenTitle, GenTorpedo, GenTriCorder, GenTub, GenWallpaper, GenWand, GenWater, GenWaterPowerGenerator, GenWeapon, GenWindGenerator, GenWormhole, Glaive, GlovesSpeed, GlowingMageArmor, GoodyBag, GreatHelm, Halberd, Hat, Hat_Intelligence, HealthScanProgram, Helmet, HerbChest, HideArmor, HoleInTheGround, HolyAvenger, Hood, HorseCart, Ingredients, Javelin, Katana, Lantern, LargeChest, LargeSack, LeatherArmor, LeatherBoots, LeatherBracers, LeatherCap, LeatherGauntlets, LifeFountain, LifeScanProgram, LightSource, LockableContainer, Longsword, Mace, ManualAdvancement, ManualArchon, ManualClasses, MassiveStar, MetalBracers, MichaelsMithrilChain, Moonlet, Natural, NeedleChest, OilFlask, PaddedArmor, Pan, Pants, Parchment, PortableHole, Pot, PracticePoint, Quarterstaff, QuestPoint, Rapier, Ration, Ring, Ring_Ornamental, Ring_Protection, RingMail, RingOfColdProtection, RingOfElectricity, RingOfFortitude, RingOfJustice, RingOfMagicResistance, Robes, RocketShipProgram, Ruler, Sabre, ScaleMail, Scimitar, ScrollSpell, SeaMap, ShieldWeapon, ShipDiagProgram, ShipNavProgram, ShipSensorProgram, ShipTacticalProgram, ShipTelnetProgram, Shirt, Shoes, Shortsword, Sickle, SmallChest, SmallDagger, SmallHammer, SmallMace, SmallSack, Spear, SplintMail, Spring, Staff, Star, StdArmor, StdBoardable, StdBoffWeapon, StdBook, StdBow, StdCage, StdCageRideable, StdClanApron, StdClanArmor, StdClanCard, StdClanCommonContainer, StdClanCommonItem, StdClanConcierge, StdClanContainer, StdClanDonationList, StdClanFlag, StdClanItem, StdClanPamphlet, StdClanSailorsCap, StdClanSpecialItem, StdClanTabbard, StdCoins, StdCompBattery, StdCompFuelConsumer, StdCompFuellessGenerator, StdCompGenerator, StdCompLauncher, StdCompPanel, StdComputerConsole, StdContainer, StdContainerWrapper, StdDeckOfCards, StdDice, StdDissertation, StdDrink, StdElecCompContainer, StdElecCompItem, StdElecCompSensor, StdElecContainer, StdElecItem, StdElecPanel, StdElecWeapon, StdFood, StdGrapples, StdGun, StdHandOfCards, StdInnKey, StdItem, StdItemWrapper, StdJournal, StdKey, StdLasso, StdLawBook, StdLimb, StdMap, StdNavigableBoardable, StdNet, StdPaper, StdPerfume, StdPersonalShield, StdPill, StdPlayerBook, StdPlayingCard, StdPortal, StdPortalWrapper, StdPotion, StdPowder, StdProgram, StdQuestBoard, StdRideable, StdRideableWrapper, StdScroll, StdShield, StdShipDampener, StdShipEngine, StdShipFuellessThruster, StdShipGravityGen, StdShipInertialBattery, StdShipShieldGenerator, StdShipThruster, StdShipWeapon, StdSiegableBoardable, StdSiegeWeapon, StdSling, StdSmartTorpedo, StdSmokable, StdSpaceBody, StdSpaceTech, StdSpaceTechWeapon, StdSpear, StdTechItem, StdThinArmor, StdThinItem, StdTitle, StdTorpedo, StdTriCorder, StdTub, StdWand, StdWeapon, StdWormhole, SteelGauntlets, Stiletto, StuddedLeatherArmor, Sword, ThreadbareRobes, ThrowingStone, Torch, TrainingSession, TrappedChest, Trident, TwoHandedSword, WalkingBoots, Wand_Advancement, Wand_Fire, Wand_Nourishment, WandArchon, WarHammer, Waterskin, Whip, Wineskinpublic interface Item extends Rider, DBIdentifiable, Wearable, Readable
Wearable.CODESidConverterSTATUS_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 |
|---|---|---|
int |
baseGoldValue() |
The user/builder-entered value of the item, represented in base CoffeeMud currency.
|
Container |
container() |
Where the item is located.
|
int |
material() |
The resource code representing the material out of which this item is principally made.
|
int |
numberOfItems() |
How many items this Item object represents.
|
ItemPossessor |
owner() |
The Room or MOB representing where this item is located.
|
java.lang.String |
rawSecretIdentity() |
This method returns those secret properties of the item which are entered directly
by the builder when the item is designed.
|
int |
recursiveWeight() |
For a normal item, this method returns the same as phyStats().weight().
|
void |
removeFromOwnerContainer() |
This method basically calls setContainer(null), and then removes this item
from its owner().
|
java.lang.String |
secretIdentity() |
This method returns the calculated and expanded description of the properties
of the item as would be discovered through the Identify spell.
|
void |
setBaseValue(int newValue) |
Changes the base value of the item, represented in base CoffeeMud currency.
|
void |
setContainer(Container newLocation) |
Change the container where the item is located.
|
void |
setMaterial(int newValue) |
Sets the resource code representing the material out of which this item is principally made.
|
void |
setOwner(ItemPossessor E) |
Sets the Room or MOB representing where this item is located.
|
void |
setSecretIdentity(java.lang.String newIdentity) |
This method is used to change the string returned by rawSecretIdentity.
|
void |
setUsesRemaining(int newUses) |
Sets the uses remaining field, which is a general numeric value whose meaning differs
for different Item types.
|
void |
stopTicking() |
If this Item is current Ticking due to its having Behaviors or other properties which
might grant it the ability to Tick, this method will cause that ticking to cease and
desist.
|
boolean |
subjectToWearAndTear() |
Whether the usesRemaining() number above is used to determine the percentage health of
the item.
|
Item |
ultimateContainer(Physical stopAtC) |
If an item is in a container, which is in a container, etc, this will
return the "highest" or ultimate container in which this item is located.
|
int |
usesRemaining() |
Uses remaining is a general use numeric value whose meaning differs for different Item
types.
|
int |
value() |
The default value of the item, represented in the base CoffeeMud currency.
|
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, scriptscopyOf, ID, initializeClass, newInstanceamDestroyed, destroy, isSavable, setSavablecanSaveDatabaseID, databaseID, setDatabaseIDdescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, textexpirationDate, setExpirationDategetSaveStatIndex, 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, whereCantWearContainer container()
void setContainer(Container newLocation)
newLocation - Container item in which this item is contained.ContainerItem ultimateContainer(Physical stopAtC)
stopAtC - if contained in this object, it will return this object.. default null.Containervoid removeFromOwnerContainer()
Containerint numberOfItems()
java.lang.String secretIdentity()
java.lang.String rawSecretIdentity()
void setSecretIdentity(java.lang.String newIdentity)
newIdentity - the secret properties of this item. Empty string means it has none.boolean subjectToWearAndTear()
int usesRemaining()
void setUsesRemaining(int newUses)
newUses - a new general numeric value for this field.void stopTicking()
int value()
int baseGoldValue()
void setBaseValue(int newValue)
newValue - the new raw value of the itemint material()
RawMaterialvoid setMaterial(int newValue)
newValue - the resource codeRawMaterialint recursiveWeight()
ContainerItemPossessor owner()
void setOwner(ItemPossessor E)
E - the mob or room where the item is locatedItemCollection.addItem(Item)