Package zombie.inventory.types
Class DrainableComboItem
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.DrainableComboItem
public final class DrainableComboItem extends InventoryItem implements Drainable, IUpdater
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bUseWhileEquiped
protected boolean
bUseWhileUnequiped
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, boredomChange, Burnt, BurntString, byteData, CanStack, CanStoreWater, cat, CloseKillMove, col, Condition, ConditionMax, container, containerX, containerY, Cooked, CookedString, CookingTime, Description, extraItems, fatigueChange, FreshString, FrozenString, fullType, id, IsCookable, IsWaterSource, jobDelta, jobType, keepOnDeplete, LastAged, mainCategory, MinutesToBurn, MinutesToCook, module, name, newPlaceDir, OffAge, OffAgeMax, OffString, placeDir, previousOwner, replaceOnUse, replaceOnUseFullType, ReplaceOnUseOn, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, staticModel, stressChange, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, visual, Weight, worldItem, worldScale, WorldTexture, worldZRotation
-
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()
float
getWeightEmpty()
boolean
IsDrainable()
boolean
isUseWhileEquiped()
boolean
isUseWhileUnequiped()
void
render()
void
renderlast()
void
setCanConsolidate(boolean boolean1)
void
setDelta(float float1)
void
setHeat(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)
void
setUseWhileUnequiped(boolean boolean1)
void
setWeightEmpty(float float1)
boolean
shouldUpdateInWorld()
void
update()
void
updateWeight()
void
Use()
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, allowRandomTint, canBeActivated, canBeRemote, canEmitLight, canStoreWater, copyConditionModData, copyModData, CopyModData, doBuildingStash, DoTooltip, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getAlternateModelName, getAmmoType, getAttachedSlot, getAttachedSlotType, getAttachedToModel, getAttachmentReplacement, getAttachmentsProvided, getAttachmentType, getB, getBandagePower, getBlood, getBloodClothingType, getBodyLocation, getBoredomChange, getBrakeForce, getBreakSound, getBringToBearSound, getBurntString, getByteData, getCat, getCategory, getChanceToSpawnDamaged, getCleanString, getClothingItem, getClothingItemExtra, getClothingItemExtraOption, getClothingItemName, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionLowerNormal, getConditionLowerOffroad, getConditionMax, getConsolidateOption, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentAmmoCount, getCurrentCondition, getCustomMenuOption, getDescription, getDirt, getDisplayCategory, getDisplayName, getEatType, getEngineLoudness, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFullType, getG, getGunType, getHaveBeenRepaired, getHotbarEquippedWeight, getIconsForTexture, getID, getItemCapacity, getItemHeat, getItemReplacementPrimaryHand, getItemReplacementSecondHand, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMakeUpType, getMaxAmmo, getMaxCapacity, getMechanicType, getMediaData, getMediaType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModID, getModName, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPreviousOwner, getR, getRecordedMediaIndex, getReduceInfectionPower, getRegistry_id, getRemoteControlID, getRemoteRange, getReplaceOnUse, getReplaceOnUseFullType, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getStashChance, getStaticModel, getStressChange, getStringItemType, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTags, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getTorchDot, getType, getUnCookedString, getUnequippedWeight, getUnequipSound, getUnhappyChange, getUses, getVisual, getWeight, getWetCooldown, getWheelFriction, getWorker, getWorldItem, getWorldStaticItem, getWorldTexture, hasBlood, hasDirt, hasModData, hasTag, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, isEmittingLight, isEquipped, isEquippedNoSprint, isFavorite, isFishingLure, IsFood, isHairDye, isHidden, isInfected, isInLocalPlayerInventory, isInPlayerInventory, IsInventoryContainer, isIsCookable, IsLiterature, IsMap, isProtectFromRainWhileEquipped, isRecordedMedia, isRemoteController, isRequiresEquippedBothHands, IsRotten, isTaintedWater, isTorchCone, isTrap, isTwoHandWeapon, isUseWorldItem, isVanilla, isWaterSource, IsWeapon, isWet, load, loadItem, loadItem, ModDataMatches, save, saveWithSize, setActivated, setActivatedRemote, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAmmoType, setAttachedSlot, setAttachedSlotType, setAttachedToModel, setAttachmentReplacement, setAttachmentsProvided, setAttachmentType, setAutoAge, setBandagePower, setBeingFilled, setBlood, setBloodClothingType, setBoredomChange, setBrakeForce, setBreakSound, setBroken, setBurnt, setBurntString, setCanBeActivated, setCanBeRemote, setCat, setChanceToSpawnDamaged, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCurrentAmmoCount, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDirt, setDisplayCategory, setEngineLoudness, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setGunType, setHaveBeenRepaired, setIconsForTexture, setID, setInfected, setIsCookable, setIsWaterSource, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMaxAmmo, setMaxCapacity, setMediaType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setRecordedMediaData, setRecordedMediaIndex, setReduceInfectionPower, setRegistry_id, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashChance, setStashMap, setStressChange, setSuspensionCompression, setSuspensionDamping, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldItem, setWorldScale, setWorldTexture, setWorldZRotation, storeInByteData, synchWithVisual, updateAge, updateSound, 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 -
bUseWhileUnequiped
protected boolean bUseWhileUnequiped -
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
-
IsDrainable
public boolean IsDrainable()- Overrides:
IsDrainable
in classInventoryItem
-
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() -
getWeightEmpty
public float getWeightEmpty() -
setWeightEmpty
public void setWeightEmpty(float float1) -
isUseWhileEquiped
public boolean isUseWhileEquiped() -
setUseWhileEquiped
public void setUseWhileEquiped(boolean boolean1) -
isUseWhileUnequiped
public boolean isUseWhileUnequiped() -
setUseWhileUnequiped
public void setUseWhileUnequiped(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() -
setHeat
public void setHeat(float float1) -
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)
-