Package zombie.inventory.types
Class DrainableComboItem
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.DrainableComboItem
public class DrainableComboItem extends InventoryItem implements Drainable, IUpdater
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bUseWhileEquiped
protected float
delta
protected float
Heat
protected int
LastCookMinute
java.lang.String
OnCooked
java.lang.String
ReplaceOnDeplete
protected float
ticks
protected int
ticksPerEquipUse
protected float
useDelta
Fields inherited from class zombie.inventory.InventoryItem
ActualWeight, Age, alcoholic, AlwaysWelcomeGift, boredomChange, Burnt, BurntString, byteData, CanBandage, CanStack, CanStoreWater, cat, CloseKillMove, col, Condition, ConditionMax, consumeMenu, container, containerX, containerY, Cooked, CookedString, CookingTime, Description, DisappearOnUse, extraItems, fatigueChange, FreshString, FrozenString, id, IsCookable, IsWaterSource, jobDelta, jobType, keepOnDeplete, LastAged, mainCategory, MinutesToBurn, MinutesToCook, module, name, newPlaceDir, OffAge, OffAgeMax, OffString, placeDir, previousOwner, replaceOnUse, ReplaceOnUseOn, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, stressChange, swingAnim, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, Weight, worldItem, WorldTexture
-
Constructor Summary
Constructors Constructor Description DrainableComboItem(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)
-
Method Summary
Modifier and Type Method Description boolean
canConsolidate()
boolean
CanStack(InventoryItem item)
boolean
finishupdate()
float
getDelta()
float
getDrainableUsesFloat()
int
getDrainableUsesInt()
float
getHeat()
float
getInvHeat()
float
getRainFactor()
int
getRemainingUses()
java.lang.String
getReplaceOnDeplete()
java.lang.String
getReplaceOnDepleteFullType()
int
getSaveType()
float
getTicks()
int
getTicksPerEquipUse()
float
getUsedDelta()
float
getUseDelta()
boolean
isUseWhileEquiped()
void
render()
void
renderlast()
void
setCanConsolidate(boolean canConsolidate)
void
setDelta(float delta)
void
setRainFactor(float rainFactor)
void
setReplaceOnDeplete(java.lang.String ReplaceOnDeplete)
void
setTicks(float ticks)
void
setTicksPerEquipUse(int ticksPerEquipUse)
void
setUsedDelta(float usedDelta)
void
setUseDelta(float useDelta)
void
setUseWhileEquiped(boolean bUseWhileEquiped)
boolean
shouldUpdateInWorld()
void
update()
void
updateWeight()
void
Use()
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, canBeActivated, canBeRemote, canStoreWater, copyConditionModData, CopyModData, doBuildingtStash, DoTooltip, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getB, getBandagePower, getBoredomChange, getBreakSound, getBurntString, getByteData, getCat, getCategory, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentCondition, getCustomMenuOption, getDescription, getDisplayCategory, getDisplayName, getEquipParent, getEquippedWeight, getEvolvedRecipeName, getExplosionSound, getExtraItems, getFatigueChange, getFullType, getG, getHaveBeenRepaired, getID, getItemHeat, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMap, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getPlaceDir, getPreviousOwner, getR, getReduceInfectionPower, getRemoteControlID, getRemoteRange, getReplaceOnBreak, getReplaceOnUse, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getStressChange, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUnhappyChange, getUses, getWeight, getWetCooldown, getWorker, getWorldItem, getWorldTexture, hasModData, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEquipped, isFavorite, isFishingLure, IsFood, isInfected, isIsCookable, IsLiterature, isRemoteController, isRequiresEquippedBothHands, IsRotten, isTaintedWater, isTorchCone, isTrap, isTwoHandWeapon, isWaterSource, IsWeapon, isWet, load, ModDataMatches, save, saveWithSize, setActivated, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAlwaysWelcomeGift, setAutoAge, setBandagePower, setBeingFilled, setBoredomChange, setBreakSound, setBroken, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCanBeRemote, setCat, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setCondition, setConditionFromModData, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDisappearOnUse, setDisplayCategory, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setFishingLure, setHaveBeenRepaired, setInfected, setIsCookable, setIsWaterSource, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMap, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReduceInfectionPower, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnBreak, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashMap, setStressChange, setSwingAnim, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setTrap, setTwoHandWeapon, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWorker, setWorldItem, setWorldTexture, storeInByteData, updateAge, Use, Use, Use, UseItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bUseWhileEquiped
protected boolean bUseWhileEquiped -
ticksPerEquipUse
protected int ticksPerEquipUse -
useDelta
protected float useDelta -
delta
protected float delta -
ticks
protected float ticks -
ReplaceOnDeplete
public java.lang.String ReplaceOnDeplete -
Heat
protected float Heat -
LastCookMinute
protected int LastCookMinute -
OnCooked
public java.lang.String OnCooked
-
-
Constructor Details
-
DrainableComboItem
public DrainableComboItem(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)
-
-
Method Details
-
getSaveType
public int getSaveType()- Overrides:
getSaveType
in classInventoryItem
-
CanStack
- Overrides:
CanStack
in classInventoryItem
-
getUsedDelta
public float getUsedDelta()- Specified by:
getUsedDelta
in interfaceDrainable
-
getDrainableUsesInt
public int getDrainableUsesInt() -
getDrainableUsesFloat
public float getDrainableUsesFloat() -
render
public void render() -
renderlast
public void renderlast()- Specified by:
renderlast
in interfaceIUpdater
-
setUsedDelta
public void setUsedDelta(float usedDelta)- Specified by:
setUsedDelta
in interfaceDrainable
-
shouldUpdateInWorld
public boolean shouldUpdateInWorld()- Overrides:
shouldUpdateInWorld
in classInventoryItem
-
update
public void update()- Specified by:
update
in interfaceIUpdater
- Overrides:
update
in classInventoryItem
-
Use
public void Use()- Overrides:
Use
in classInventoryItem
-
updateWeight
public void updateWeight() -
isUseWhileEquiped
public boolean isUseWhileEquiped() -
setUseWhileEquiped
public void setUseWhileEquiped(boolean bUseWhileEquiped) -
getTicksPerEquipUse
public int getTicksPerEquipUse() -
setTicksPerEquipUse
public void setTicksPerEquipUse(int ticksPerEquipUse) -
getUseDelta
public float getUseDelta() -
setUseDelta
public void setUseDelta(float useDelta) -
getDelta
public float getDelta() -
setDelta
public void setDelta(float delta) -
getTicks
public float getTicks() -
setTicks
public void setTicks(float ticks) -
setReplaceOnDeplete
public void setReplaceOnDeplete(java.lang.String ReplaceOnDeplete) -
getReplaceOnDeplete
public java.lang.String getReplaceOnDeplete() -
getReplaceOnDepleteFullType
public java.lang.String getReplaceOnDepleteFullType() -
getHeat
public float getHeat() -
getInvHeat
public float getInvHeat()- Overrides:
getInvHeat
in classInventoryItem
-
finishupdate
public boolean finishupdate()- Overrides:
finishupdate
in classInventoryItem
-
getRemainingUses
public int getRemainingUses() -
getRainFactor
public float getRainFactor() -
setRainFactor
public void setRainFactor(float rainFactor) -
canConsolidate
public boolean canConsolidate() -
setCanConsolidate
public void setCanConsolidate(boolean canConsolidate)
-