Package zombie.inventory.types
Class Moveable
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Moveable
- Direct Known Subclasses:
Radio
public class Moveable extends InventoryItem
-
Field Summary
Fields Modifier and Type Field Description protected booleancanBeDroppedOnFloorprotected java.lang.StringcustomItemprotected java.lang.StringworldSpriteFields 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
-
Method Summary
Modifier and Type Method Description booleanCanBeDroppedOnFloor()java.lang.StringgetCustomNameFull()java.lang.StringgetDisplayName()floatgetLightB()java.lang.StringgetLightBulbItem()floatgetLightDelta()floatgetLightG()floatgetLightPower()floatgetLightR()java.lang.StringgetMovableFullName()java.lang.StringgetName()intgetSaveType()IsoSpriteGridgetSpriteGrid()java.lang.StringgetWorldSprite()booleanisLight()booleanisLightHasBattery()booleanisLightUseBattery()booleanisMultiGridAnchor()voidload(java.nio.ByteBuffer byteBuffer, int int1)booleanReadFromWorldSprite(java.lang.String string)voidsave(java.nio.ByteBuffer byteBuffer, boolean boolean1)voidsetLight(boolean boolean1)voidsetLightB(float float1)voidsetLightBulbItem(java.lang.String string)voidsetLightDelta(float float1)voidsetLightG(float float1)voidsetLightHasBattery(boolean boolean1)voidsetLightPower(float float1)voidsetLightR(float float1)voidsetLightUseBattery(boolean boolean1)voidsetWorldSprite(java.lang.String string)Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, allowRandomTint, canBeActivated, canBeRemote, canEmitLight, CanStack, canStoreWater, copyConditionModData, copyModData, CopyModData, doBuildingStash, DoTooltip, DoTooltip, finishupdate, 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, getEatType, getEngineLoudness, getEquipParent, getEquippedWeight, getEquipSound, getEvolvedRecipeName, getExplosionSound, getExtraItems, getExtraItemsWeight, getFabricType, getFatigueChange, getFullType, getG, getGunType, getHaveBeenRepaired, getHotbarEquippedWeight, getIconsForTexture, getID, getInvHeat, 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, 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, IsDrainable, 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, loadItem, loadItem, ModDataMatches, 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, shouldUpdateInWorld, storeInByteData, synchWithVisual, update, updateAge, updateSound, Use, Use, Use, UseItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
worldSprite
protected java.lang.String worldSprite -
canBeDroppedOnFloor
protected boolean canBeDroppedOnFloor -
customItem
protected java.lang.String customItem
-
-
Constructor Details
-
Moveable
public Moveable(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
Moveable
public Moveable(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
-
-
Method Details
-
getName
public java.lang.String getName()- Overrides:
getNamein classInventoryItem
-
getDisplayName
public java.lang.String getDisplayName()- Overrides:
getDisplayNamein classInventoryItem
-
CanBeDroppedOnFloor
public boolean CanBeDroppedOnFloor() -
getMovableFullName
public java.lang.String getMovableFullName() -
getCustomNameFull
public java.lang.String getCustomNameFull() -
isMultiGridAnchor
public boolean isMultiGridAnchor() -
getSpriteGrid
-
getWorldSprite
public java.lang.String getWorldSprite() -
ReadFromWorldSprite
public boolean ReadFromWorldSprite(java.lang.String string) -
isLight
public boolean isLight() -
setLight
public void setLight(boolean boolean1) -
isLightUseBattery
public boolean isLightUseBattery() -
setLightUseBattery
public void setLightUseBattery(boolean boolean1) -
isLightHasBattery
public boolean isLightHasBattery() -
setLightHasBattery
public void setLightHasBattery(boolean boolean1) -
getLightBulbItem
public java.lang.String getLightBulbItem() -
setLightBulbItem
public void setLightBulbItem(java.lang.String string) -
getLightPower
public float getLightPower() -
setLightPower
public void setLightPower(float float1) -
getLightDelta
public float getLightDelta() -
setLightDelta
public void setLightDelta(float float1) -
getLightR
public float getLightR() -
setLightR
public void setLightR(float float1) -
getLightG
public float getLightG() -
setLightG
public void setLightG(float float1) -
getLightB
public float getLightB() -
setLightB
public void setLightB(float float1) -
getSaveType
public int getSaveType()- Overrides:
getSaveTypein classInventoryItem
-
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Overrides:
savein classInventoryItem- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException- Overrides:
loadin classInventoryItem- Throws:
java.io.IOException
-
setWorldSprite
public void setWorldSprite(java.lang.String string)
-