Package zombie.inventory.types
Class DrainableComboItem
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.DrainableComboItem
-
Field Summary
Fields inherited from class zombie.inventory.InventoryItem
atlasTexture, byteData, CanStack, CanStoreWater, CloseKillMove, col, Cooked, extraItems, fatigueChange, id, IsWaterSource, jobDelta, jobType, keepOnDeplete, mainCategory, ReplaceOnUseOn, RequiresEquippedBothHands, worldItem, worldScale, worldZRotation
-
Constructor Summary
ConstructorDescriptionDrainableComboItem
(String module, String name, String itemType, String texName) DrainableComboItem
(String module, String name, String itemType, Item item) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
CanStack
(InventoryItem item) boolean
float
getDelta()
float
int
float
getHeat()
float
float
int
int
float
getTicks()
int
float
float
float
boolean
boolean
boolean
void
render()
void
void
setCanConsolidate
(boolean canConsolidate) void
setDelta
(float delta) void
setHeat
(float heat) void
setOnCooked
(String onCooked) void
setRainFactor
(float rainFactor) void
setReplaceOnCooked
(List<String> replaceOnCooked) void
setReplaceOnDeplete
(String ReplaceOnDeplete) void
setTicks
(float ticks) void
setTicksPerEquipUse
(int ticksPerEquipUse) void
setUsedDelta
(float usedDelta) void
setUseDelta
(float useDelta) void
setUseWhileEquiped
(boolean bUseWhileEquiped) void
setUseWhileUnequiped
(boolean bUseWhileUnequiped) void
setWeightEmpty
(float weight) boolean
void
update()
void
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, getCurrentUses, getCustomMenuOption, getDescription, getDirt, getDisplayCategory, getDisplayName, getEatType, getEngineLoudness, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFillFromDispenserSound, getFillFromTapSound, getFullType, getG, getGunType, getHaveBeenRepaired, getHotbarEquippedWeight, getIconsForTexture, getID, getItemCapacity, getItemHeat, getItemReplacementPrimaryHand, getItemReplacementSecondHand, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getLuaCreate, getMakeUpType, getMaxAmmo, getMaxCapacity, getMechanicType, getMediaData, getMediaType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModID, getModName, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPlaceMultipleSound, getPlaceOneSound, getPreviousOwner, getR, getRecordedMediaIndex, getReduceInfectionPower, getRegistry_id, getRemoteControlID, getRemoteRange, getReplaceOnUse, getReplaceOnUseFullType, getReplaceOnUseOn, getReplaceOnUseOnString, getReplaceType, getReplaceTypes, getReplaceTypesMap, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getSoundByID, getSoundParameter, 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, hasReplaceType, hasTag, haveExtraItems, HowRotten, initialiseItem, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, isEmittingLight, isEquipped, isEquippedNoSprint, isFavorite, isFishingLure, IsFood, isHairDye, isHidden, isInfected, isInitialised, 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, setInitialised, 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, setRecordedMediaIndexInteger, 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
-
Field Details
-
ReplaceOnCooked
-
-
Constructor Details
-
DrainableComboItem
-
DrainableComboItem
-
-
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 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() -
getWeightEmpty
public float getWeightEmpty()- Returns:
- the EmptyWeight
-
setWeightEmpty
public void setWeightEmpty(float weight) - Parameters:
weight
- the EmptyWeight to set
-
isUseWhileEquiped
public boolean isUseWhileEquiped()- Returns:
- the bUseWhileEquiped
-
setUseWhileEquiped
public void setUseWhileEquiped(boolean bUseWhileEquiped) - Parameters:
bUseWhileEquiped
- the bUseWhileEquiped to set
-
isUseWhileUnequiped
public boolean isUseWhileUnequiped()- Returns:
- the bUseWhileUnequiped
-
setUseWhileUnequiped
public void setUseWhileUnequiped(boolean bUseWhileUnequiped) - Parameters:
bUseWhileUnequiped
- the bUseWhileUnequiped to set
-
getTicksPerEquipUse
public int getTicksPerEquipUse()- Returns:
- the ticksPerEquipUse
-
setTicksPerEquipUse
public void setTicksPerEquipUse(int ticksPerEquipUse) - Parameters:
ticksPerEquipUse
- the ticksPerEquipUse to set
-
getUseDelta
public float getUseDelta()- Returns:
- the useDelta
-
setUseDelta
public void setUseDelta(float useDelta) - Parameters:
useDelta
- the useDelta to set
-
getDelta
public float getDelta()- Returns:
- the delta
-
setDelta
public void setDelta(float delta) - Parameters:
delta
- the delta to set
-
getTicks
public float getTicks()- Returns:
- the ticks
-
setTicks
public void setTicks(float ticks) - Parameters:
ticks
- the ticks to set
-
setReplaceOnDeplete
-
getReplaceOnDeplete
- Returns:
- the ReplaceOnDeplete
-
getReplaceOnDepleteFullType
-
setHeat
public void setHeat(float heat) -
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) -
getReplaceOnCooked
- Returns:
- the ReplaceOnCooked
-
setReplaceOnCooked
- Parameters:
replaceOnCooked
- the ReplaceOnCooked to set
-
getOnCooked
- Returns:
- the OnCooked
-
setOnCooked
- Parameters:
onCooked
- the onCooked to set
-