Package zombie.inventory.types
Class Literature
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Literature
public class Literature extends InventoryItem
-
Field Summary
Fields Modifier and Type Field Description boolean
bAlreadyRead
java.lang.String
requireInHandOrInventory
java.lang.String
useOnConsume
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, RequiresEquippedBothHands, rightClickContainer, ScriptItem, stressChange, swingAnim, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, Weight, worldItem, WorldTexture
-
Constructor Summary
Constructors Constructor Description Literature(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
Literature(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
-
Method Summary
Modifier and Type Method Description void
addPage(java.lang.Integer integer, java.lang.String string)
boolean
canBeWrite()
void
DoTooltip(ObjectTooltip objectTooltip, ObjectTooltip.Layout layout)
boolean
finishupdate()
int
getAlreadyReadPages()
java.lang.String
getBookName()
float
getBoredomChange()
java.lang.String
getCategory()
java.util.HashMap
getCustomPages()
java.lang.String
getLockedBy()
int
getLvlSkillTrained()
int
getMaxLevelTrained()
int
getNumberOfPages()
int
getNumLevelsTrained()
int
getPageToWrite()
int
getSaveType()
java.lang.String
getSkillTrained()
float
getStressChange()
java.util.List
getTeachedRecipes()
float
getUnhappyChange()
void
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
void
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
java.lang.String
seePage(java.lang.Integer integer)
void
setAlreadyReadPages(int int1)
void
setBookName(java.lang.String string)
void
setCanBeWrite(boolean boolean1)
void
setCustomPages(java.util.HashMap hashMap)
void
setLockedBy(java.lang.String string)
void
setLvlSkillTrained(int int1)
void
setNumberOfPages(int int1)
void
setNumLevelsTrained(int int1)
void
setPageToWrite(int int1)
void
setSkillTrained(java.lang.String string)
void
setTeachedRecipes(java.util.List list)
void
update()
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, canBeActivated, canBeRemote, CanStack, canStoreWater, copyConditionModData, CopyModData, doBuildingtStash, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getB, getBandagePower, getBrakeForce, getBreakSound, getBurntString, getByteData, getCat, 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, getInvHeat, 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, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, 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, ModDataMatches, 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, shouldUpdateInWorld, storeInByteData, updateAge, updateSound, Use, Use, Use, Use, UseItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bAlreadyRead
public boolean bAlreadyRead -
requireInHandOrInventory
public java.lang.String requireInHandOrInventory -
useOnConsume
public java.lang.String useOnConsume
-
-
Constructor Details
-
Literature
public Literature(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
Literature
public Literature(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
-
-
Method Details
-
getSaveType
public int getSaveType()- Overrides:
getSaveType
in classInventoryItem
-
getCategory
public java.lang.String getCategory()- Overrides:
getCategory
in classInventoryItem
-
update
public void update()- Overrides:
update
in classInventoryItem
-
finishupdate
public boolean finishupdate()- Overrides:
finishupdate
in classInventoryItem
-
DoTooltip
- Overrides:
DoTooltip
in classInventoryItem
-
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Overrides:
save
in classInventoryItem
- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException- Overrides:
load
in classInventoryItem
- Throws:
java.io.IOException
-
getBoredomChange
public float getBoredomChange()- Overrides:
getBoredomChange
in classInventoryItem
-
getUnhappyChange
public float getUnhappyChange()- Overrides:
getUnhappyChange
in classInventoryItem
-
getStressChange
public float getStressChange()- Overrides:
getStressChange
in classInventoryItem
-
getNumberOfPages
public int getNumberOfPages() -
setNumberOfPages
public void setNumberOfPages(int int1) -
getBookName
public java.lang.String getBookName() -
setBookName
public void setBookName(java.lang.String string) -
getLvlSkillTrained
public int getLvlSkillTrained() -
setLvlSkillTrained
public void setLvlSkillTrained(int int1) -
getNumLevelsTrained
public int getNumLevelsTrained() -
setNumLevelsTrained
public void setNumLevelsTrained(int int1) -
getMaxLevelTrained
public int getMaxLevelTrained() -
getSkillTrained
public java.lang.String getSkillTrained() -
setSkillTrained
public void setSkillTrained(java.lang.String string) -
getAlreadyReadPages
public int getAlreadyReadPages() -
setAlreadyReadPages
public void setAlreadyReadPages(int int1) -
canBeWrite
public boolean canBeWrite() -
setCanBeWrite
public void setCanBeWrite(boolean boolean1) -
getCustomPages
public java.util.HashMap getCustomPages() -
setCustomPages
public void setCustomPages(java.util.HashMap hashMap) -
addPage
public void addPage(java.lang.Integer integer, java.lang.String string) -
seePage
public java.lang.String seePage(java.lang.Integer integer) -
getLockedBy
public java.lang.String getLockedBy() -
setLockedBy
public void setLockedBy(java.lang.String string) -
getPageToWrite
public int getPageToWrite() -
setPageToWrite
public void setPageToWrite(int int1) -
getTeachedRecipes
public java.util.List getTeachedRecipes() -
setTeachedRecipes
public void setTeachedRecipes(java.util.List list)
-