Class DrainableComboItem
java.lang.Object
zombie.entity.GameEntity
zombie.inventory.InventoryItem
zombie.inventory.types.DrainableComboItem
-
Field Summary
FieldsFields inherited from class zombie.inventory.InventoryItem
atlasTexture, byteData, CanStack, CloseKillMove, col, Cooked, deadBodyObject, extraItems, fatigueChange, id, jobDelta, jobType, mainCategory, ReplaceOnUseOn, RequiresEquippedBothHands, worldAlpha, worldItem, worldScale, worldXRotation, worldYRotation, worldZRotationFields inherited from class zombie.entity.GameEntity
DEFAULT_ENTITY_DISPLAY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDrainableComboItem(String module, String name, String itemType, String texName) DrainableComboItem(String module, String name, String itemType, Item item) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanCanStack(InventoryItem item) booleanfloatfloatgetHeat()floatintgetOnEat()intfloatgetTicks()intfloatfloatbooleanbooleanbooleanisEnergy()booleanbooleanbooleanvoidvoidrender()voidvoidsetCanConsolidate(boolean _canConsolidate) voidsetCurrentUses(int int0) voidsetCurrentUsesFloat(float float0) voidsetHeat(float heat) voidsetOnCooked(String onCooked) voidvoidsetReplaceOnCooked(List<String> replaceOnCooked) voidsetReplaceOnDeplete(String _ReplaceOnDeplete) voidsetTicks(float _ticks) voidsetTicksPerEquipUse(int _ticksPerEquipUse) voidsetUsedDelta(float usedDelta) Deprecated.voidsetUseDelta(float _useDelta) voidsetUseWhileEquiped(boolean _bUseWhileEquiped) voidsetUseWhileUnequiped(boolean _bUseWhileUnequiped) voidsetWeightEmpty(float weight) booleanvoidvoidupdate()voidvoidUse()voidUse(boolean var1, boolean var2, boolean boolean0) Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, addExtraItem, allowRandomTint, applyMaxSharpness, canBeActivated, canBeEquipped, canBeRemote, canEmitLight, canHaveOrigin, canStoreWater, copyBloodLevelFrom, copyClothing, copyConditionModData, copyConditionStatesFrom, copyModData, CopyModData, copyTimesHeadRepairedFrom, copyTimesHeadRepairedTo, copyTimesRepairedFrom, copyTimesRepairedTo, createAndStoreDefaultDeadBody, createCloneItem, damageCheck, damageCheck, damageCheck, damageCheck, damageCheck, damageCheck, doBreakSound, doBuildingStash, doDamagedSound, DoTooltip, DoTooltip, DoTooltipEmbedded, emptyLiquid, getA, getActualWeight, getAge, getAimReleaseSound, getAlcoholPower, getAlternateModelName, getAmmoType, getAnimalFeedType, getAnimalTracks, getAttachedSlot, getAttachedSlotType, getAttachedToModel, getAttachmentReplacement, getAttachmentsProvided, getAttachmentType, getB, getBandagePower, getBlood, getBloodClothingType, getBloodLevel, getBloodLevelAdjustedHigh, getBloodLevelAdjustedLow, getBodyLocation, getBoredomChange, getBrakeForce, getBreakSound, getBringToBearSound, getBulletHitArmourSound, getBurntString, getByteData, getCat, getCategory, getChanceToSpawnDamaged, getCleanString, getClothingItem, getClothingItemExtra, getClothingItemExtraOption, getClothingItemName, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionLowerChance, getConditionLowerNormal, getConditionLowerOffroad, getConditionMax, getConsolidateOption, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentAmmoCount, getCurrentCondition, getCurrentUses, getCustomMenuOption, getDamagedSound, getDeadBodyObject, getDescription, getDigType, getDirt, getDiscomfortModifier, getDisplayCategory, getDisplayName, getDropSound, getDurability, getEatTime, getEatType, getEngineLoudness, getEntityNetID, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFileName, getFillFromDispenserSound, getFillFromLakeSound, getFillFromTapSound, getFillFromToiletSound, getFireFuelRatio, getFluidContainerFromSelfOrWorldItem, getFullType, getG, getGameEntityType, getGunType, getHaveBeenRepaired, getHeadCondition, getHeadConditionLowerChance, getHeadConditionLowerChanceMultiplier, getHeadConditionMax, getHearingModifier, getHotbarEquippedWeight, getIcon, getIconsForTexture, getID, getIsCraftingConsumed, getItemAfterCleaning, getItemCapacity, getItemHeat, getItemReplacementPrimaryHand, getItemReplacementSecondHand, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getLootType, getLuaCreate, getMaintenanceMod, getMaintenanceMod, getMaintenanceMod, getMaintenanceMod, getMakeUpType, getMaxAmmo, getMaxCapacity, getMaxMilk, getMaxSharpness, getMechanicType, getMediaData, getMediaType, getMeltingTime, getMetalValue, getMilkReplaceItem, getMinutesToBurn, getMinutesToCook, getModData, getModelIndex, getModID, getModName, getModule, getName, getName, getNewPlaceDir, getNoRecipesModDataString, getOffAge, getOffAgeMax, getOffString, getOnBreak, getOpeningRecipe, getOriginX, getOriginY, getOriginZ, getOutermostContainer, getOwner, getPlaceDir, getPlaceMultipleSound, getPlaceOneSound, getPlayer, getPourLiquidOnGroundSound, getPourType, getPreviousOwner, getQuality, getR, getRecordedMediaIndex, getReduceInfectionPower, getRegistry_id, getRemoteControlID, getRemoteRange, getReplaceOnUse, getReplaceOnUseFullType, getReplaceOnUseOn, getReplaceOnUseOnString, getReplaceType, getReplaceTypes, getReplaceTypesMap, getRequireInHandOrInventory, getResearchableRecipes, getResearchableRecipes, getRightClickContainer, getScore, getScriptItem, getSharpness, getSharpnessIncrement, getSharpnessMultiplier, getShoutMultiplier, getShoutType, getSoundByID, getSoundParameter, getSquare, getStashChance, getStashMap, getStaticModel, getStaticModelException, getStaticModelsByIndex, getStrainModifier, getStressChange, getStringItemType, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTags, getTaken, getTex, getTexture, getTextureBurnt, getTextureColorMask, getTextureCooked, getTextureFluidMask, getTexturerotten, getTimesHeadRepaired, getTimesRepaired, getTooltip, getTorchDot, getType, getUnCookedString, getUnequippedWeight, getUnequipSound, getUnhappyChange, getUser, getUses, getVisionModifier, getVisual, getWeaponHitArmourSound, getWeaponLevel, getWeight, getWetCooldown, getWetness, getWheelFriction, getWithDrainable, getWithoutDrainable, getWorker, getWorldAlpha, getWorldItem, getWorldObjectSprite, getWorldStaticItem, getWorldStaticModel, getWorldStaticModelsByIndex, getWorldTexture, getWorldXRotation, getWorldYRotation, getWorldZRotation, getX, getY, getZ, hasBeenHeard, hasBeenSeen, hasBlood, hasDirt, hasHeadCondition, hasMetal, hasModData, hasOrigin, hasQuality, hasReplaceType, hasResearchableRecipes, hasSharpness, hasTag, hasTag, hasTimesHeadRepaired, haveExtraItems, headConditionCheck, headConditionCheck, headConditionCheck, headConditionCheck, headConditionCheck, HowRotten, incrementCondition, inheritFoodAgeFrom, inheritOlderFoodAge, initialiseItem, is, isActivated, isAlcoholic, isAlwaysWelcomeGift, isAnimalCorpse, isAnimalFeed, isBeingFilled, isBloody, isBroken, isBurnt, isCanBandage, IsClothing, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDamaged, isDisappearOnUse, isDoingExtendedPlacement, isDull, isEmittingLight, isEmptyOfFluid, isEntityValid, isEquipped, isEquippedNoSprint, isFakeEquipped, isFakeEquipped, isFavorite, isFavouriteRecipeInput, isFishingLure, isFluidContainer, isFood, IsFood, isForceDropHeavyItem, isFullOfFluid, isHidden, isHumanCorpse, isInfected, isInitialised, isInLocalPlayerInventory, isInPlayerInventory, IsInventoryContainer, isIsCookable, isKeepOnDeplete, isKeyRing, IsLiterature, IsMap, isMemento, isNoRecipes, isProtectFromRainWhileEquipped, isPureWater, isRecordedMedia, isRemoteController, isRequiresEquippedBothHands, IsRotten, isSealed, isSpice, isTorchCone, isTrap, isTwoHandWeapon, isUnwanted, isUseWorldItem, isVanilla, isVisualAid, isWaterSource, IsWeapon, isWet, isWorn, load, loadCorpseFromByteData, loadItem, loadItem, loadItem, ModDataMatches, monogramAfterDescriptor, nameAfterDescriptor, OnAddedToContainer, OnBeforeRemoveFromContainer, onBreak, playActivateDeactivateSound, playActivateSound, playDeactivateSound, randomizeCondition, randomizeGeneralCondition, randomizeHeadCondition, randomizeSharpness, randomizeWorldZRotation, reduceCondition, reduceHeadCondition, Remove, RemoveFromContainer, researchRecipes, reset, save, saveWithSize, setActivated, setActivatedRemote, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAmmoType, setAnimalTracks, setAttachedSlot, setAttachedSlotType, setAttachedToModel, setAttachmentReplacement, setAttachmentsProvided, setAttachmentType, setAutoAge, setBandagePower, setBeingFilled, setBlood, setBloodClothingType, setBloodLevel, setBoredomChange, setBrakeForce, setBreakSound, setBroken, setBurnt, setBurntString, setCanBeActivated, setCanBeRemote, setCat, setChanceToSpawnDamaged, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setCondition, setConditionFrom, setConditionFromHeadCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setConditionNoSound, setConditionTo, setConditionWhileLoading, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCurrentAmmoCount, setCurrentUsesFrom, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDirt, setDisplayCategory, setDoingExtendedPlacement, setDurability, setEngineLoudness, setEquipParent, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setGunType, setHaveBeenRepaired, setHeadCondition, setHeadConditionFromCondition, setIcon, setIconsForTexture, setID, setInfected, setInitialised, setIsCookable, setIsCraftingConsumed, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMaxAmmo, setMaxCapacity, setMediaType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModelIndex, setModule, setName, setNewPlaceDir, setNoRecipes, setOffAge, setOffAgeMax, setOffString, setOrigin, setOrigin, setOrigin, setOriginX, setOriginY, setOriginZ, setPlaceDir, setPreviousOwner, setQuality, setRecordedMediaData, setRecordedMediaIndex, setRecordedMediaIndexInteger, setReduceInfectionPower, setRegistry_id, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setSharpness, setSharpnessFrom, setStashChance, setStashMap, setStaticModel, setStaticModel, setStaticModelsByIndex, setStressChange, setSuspensionCompression, setSuspensionDamping, setTaken, setTexture, setTextureBurnt, setTextureColorMask, setTextureCooked, setTextureFluidMask, setTexturerotten, setTimesHeadRepaired, setTimesRepaired, setTooltip, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUnwanted, setUses, setUsesFrom, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldAlpha, setWorldItem, setWorldScale, setWorldStaticItem, setWorldStaticModel, setWorldStaticModel, setWorldStaticModelsByIndex, setWorldTexture, setWorldXRotation, setWorldYRotation, setWorldZRotation, sharpnessCheck, sharpnessCheck, sharpnessCheck, sharpnessCheck, sharpnessCheck, storeInByteData, SynchSpawn, synchWithVisual, toString, tryGetWorldStaticModelByIndex, unsealIfNotFull, updateAge, updateEquippedAndActivatedSound, updateEquippedAndActivatedSound, updateSound, Use, UseAndSync, UseForCrafting, UseItemMethods inherited from class zombie.entity.GameEntity
addToWorld, attrib, componentSize, containsComponent, getAttributes, getComponent, getComponentAny, getComponentForIndex, getComponentFromID, getDefaultEntityDisplayName, getDurabilityComponent, getEntityDisplayName, getEntityFullTypeDebug, getEntityScript, getExceptionCompatibleString, getFluidContainer, getSpriteConfig, getUsingPlayer, hasComponent, hasComponentAny, hasComponents, hasRenderers, isAddedToEngine, isMeta, isOutside, isRemovingFromEngine, isScheduledForBucketUpdate, isScheduledForEngineRemoval, isUsingPlayer, isValidEngineEntity, loadEntity, onEquip, onEquip, onFluidContainerUpdate, onUnEquip, removeFromWorld, removeFromWorld, renderlastComponents, requiresEntitySave, saveEntity, sendSyncEntity, setUsingPlayer
-
Field Details
-
ReplaceOnCooked
-
-
Constructor Details
-
DrainableComboItem
-
DrainableComboItem
-
-
Method Details
-
IsDrainable
public boolean IsDrainable()- Overrides:
IsDrainablein classInventoryItem
-
getSaveType
public int getSaveType()- Overrides:
getSaveTypein classInventoryItem
-
CanStack
- Overrides:
CanStackin classInventoryItem
-
getMaxUses
public int getMaxUses()- Overrides:
getMaxUsesin classInventoryItem
-
setCurrentUses
public void setCurrentUses(int int0) - Overrides:
setCurrentUsesin classInventoryItem
-
setUsedDelta
Deprecated. -
setCurrentUsesFloat
public void setCurrentUsesFloat(float float0) -
getCurrentUsesFloat
public float getCurrentUsesFloat()- Overrides:
getCurrentUsesFloatin classInventoryItem
-
render
-
renderlast
public void renderlast()- Specified by:
renderlastin interfaceIUpdater- Overrides:
renderlastin classGameEntity
-
shouldUpdateInWorld
public boolean shouldUpdateInWorld()- Overrides:
shouldUpdateInWorldin classInventoryItem
-
update
public void update()- Specified by:
updatein interfaceIUpdater- Overrides:
updatein classInventoryItem
-
Use
public void Use()- Overrides:
Usein classInventoryItem
-
Use
public void Use(boolean var1, boolean var2, boolean boolean0) - Overrides:
Usein classInventoryItem
-
syncItemFields
public void syncItemFields()- Overrides:
syncItemFieldsin 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
-
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:
getInvHeatin classInventoryItem
-
finishupdate
public boolean finishupdate()- Overrides:
finishupdatein classInventoryItem
-
canConsolidate
public boolean canConsolidate() -
setCanConsolidate
public void setCanConsolidate(boolean _canConsolidate) -
getReplaceOnCooked
-
setReplaceOnCooked
-
getOnCooked
- Returns:
- the OnCooked
-
setOnCooked
- Parameters:
onCooked- the onCooked to set
-
getOnEat
-
setOnEat
-
isEnergy
public boolean isEnergy() -
getEnergy
-
isFullUses
public boolean isFullUses() -
isEmptyUses
public boolean isEmptyUses() -
randomizeUses
public void randomizeUses()
-