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
protected java.lang.String
ReplaceOnDeplete
protected java.lang.String
ReplaceOnDepleteFullType
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 string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
DrainableComboItem(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
-
Method Summary
Modifier and Type Method Description boolean
canConsolidate()
boolean
CanStack(InventoryItem inventoryItem)
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 boolean1)
void
setDelta(float float1)
void
setRainFactor(float float1)
void
setReplaceOnDeplete(java.lang.String string)
void
setTicks(float float1)
void
setTicksPerEquipUse(int int1)
void
setUsedDelta(float float1)
void
setUseDelta(float float1)
void
setUseWhileEquiped(boolean boolean1)
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, getBrakeForce, getBreakSound, getBurntString, getByteData, getCat, getCategory, getChanceToSpawnDamaged, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionLowerNormal, getConditionLowerOffroad, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentCondition, getCustomMenuOption, getDescription, getDisplayCategory, getDisplayName, getEngineLoudness, getEquipParent, getEquippedWeight, getEvolvedRecipeName, getExplosionSound, getExtraItems, getFatigueChange, getFullType, getG, getHaveBeenRepaired, getID, getItemCapacity, getItemHeat, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMap, getMaxCapacity, getMechanicType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPreviousOwner, getR, getReduceInfectionPower, getRemoteControlID, getRemoteRange, getReplaceOnBreak, getReplaceOnUse, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getStressChange, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUnhappyChange, getUses, getWeight, getWetCooldown, getWheelFriction, getWorker, getWorldItem, getWorldTexture, hasModData, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isConditionAffectsCapacity, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEquipped, isFavorite, isFishingLure, IsFood, isInfected, isInLocalPlayerInventory, isInPlayerInventory, 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, setBrakeForce, setBreakSound, setBroken, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCanBeRemote, setCat, setChanceToSpawnDamaged, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDisappearOnUse, setDisplayCategory, setEngineLoudness, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setFishingLure, setHaveBeenRepaired, setID, setInfected, setIsCookable, setIsWaterSource, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMap, setMaxCapacity, setMechanicType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReduceInfectionPower, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnBreak, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashMap, setStressChange, setSuspensionCompression, setSuspensionDamping, setSwingAnim, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setTrap, setTwoHandWeapon, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldItem, setWorldTexture, storeInByteData, updateAge, updateSound, 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
protected java.lang.String ReplaceOnDeplete -
ReplaceOnDepleteFullType
protected java.lang.String ReplaceOnDepleteFullType -
Heat
protected float Heat -
LastCookMinute
protected int LastCookMinute -
OnCooked
public java.lang.String OnCooked
-
-
Constructor Details
-
DrainableComboItem
public DrainableComboItem(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
DrainableComboItem
public DrainableComboItem(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
-
-
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 float1)- 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 boolean1) -
getTicksPerEquipUse
public int getTicksPerEquipUse() -
setTicksPerEquipUse
public void setTicksPerEquipUse(int int1) -
getUseDelta
public float getUseDelta() -
setUseDelta
public void setUseDelta(float float1) -
getDelta
public float getDelta() -
setDelta
public void setDelta(float float1) -
getTicks
public float getTicks() -
setTicks
public void setTicks(float float1) -
setReplaceOnDeplete
public void setReplaceOnDeplete(java.lang.String string) -
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 float1) -
canConsolidate
public boolean canConsolidate() -
setCanConsolidate
public void setCanConsolidate(boolean boolean1)
-