java.lang.Cloneable
, CMObject
, java.lang.Comparable<CMObject>
, Contingent
, Environmental
, Expireable
, Modifiable
, MsgListener
, StatsAffecting
, Tickable
Cow
, GenCow
, GenDrink
, GenEmptyDrink
, GenFountain
, GenLantern
, GenLiquidResource
, GenMultiPotion
, GenPerfume
, GenPotion
, GenTub
, GenWater
, GoatDoe
, IndoorShallowWater
, IndoorUnderWater
, IndoorWaterSurface
, IndoorWaterSurfaceColumn
, IndoorWaterThinSurface
, LifeFountain
, Milkable
, OilFlask
, Pan
, Pot
, SaltWaterSurface
, SaltWaterSurfaceColumn
, SaltWaterThinSurface
, ShallowWater
, Spring
, StdDrink
, StdPerfume
, StdPotion
, StdTub
, Swamp
, UnderSaltWater
, UnderWater
, UnderwaterCityStreet
, Waterskin
, WaterSurface
, WaterSurfaceColumn
, WaterThinSurface
, Wineskin
public interface LiquidHolder extends Environmental
idConverter
STATUS_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_RESET
Modifier and Type | Method | Description |
---|---|---|
int |
amountTakenToFillMe(LiquidHolder theSource) |
Given the liquid source, the amount of liquid which would need to be taken
from the source liquid source to fill up THIS liquid source.
|
boolean |
containsLiquid() |
Whether this liquid container still contains any liquid.
|
int |
liquidHeld() |
The total amount of liquid possible to be contained in this liquid container.
|
int |
liquidRemaining() |
The amount of liquid remaining in this liquid container.
|
int |
liquidType() |
The material type of the liquid in this container.
|
void |
setLiquidHeld(int amount) |
Sets the total amount of liquid possible to be contained in this liquid container.
|
void |
setLiquidRemaining(int amount) |
Sets the amount of liquid remaining in this liquid container.
|
void |
setLiquidType(int newLiquidType) |
Sets the material type of the liquid in this container.
|
copyOf, ID, initializeClass, newInstance
amDestroyed, destroy, isSavable, setSavable
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, text
expirationDate, setExpirationDate
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
executeMsg, okMessage
affectCharState, affectCharStats, affectPhyStats
getTickStatus, name, tick
int liquidHeld()
int liquidRemaining()
liquidHeld()
int liquidType()
RawMaterial
void setLiquidType(int newLiquidType)
newLiquidType
- the type of liquid contained hereinRawMaterial
void setLiquidHeld(int amount)
amount
- total liquid contained herein.void setLiquidRemaining(int amount)
amount
- amount of liquid remaining in this liquid container.setLiquidHeld(int)
boolean containsLiquid()
int amountTakenToFillMe(LiquidHolder theSource)
theSource
- the liquid source to fill up from