Package zombie.inventory.types
Class AlarmClockClothing
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
zombie.inventory.types.AlarmClockClothing
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.inventory.types.Clothing
Clothing.ClothingPatch, Clothing.ClothingPatchFabricType
-
Field Summary
Fields inherited from class zombie.inventory.types.Clothing
bloodLevel, CONDITION_PER_HOLES
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
DoTooltip
(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout) boolean
int
getHour()
int
int
int
boolean
boolean
boolean
void
load
(ByteBuffer input, int WorldVersion) void
save
(ByteBuffer output, boolean net) void
setAlarmSet
(boolean alarmSet) void
setAlarmSound
(String alarmSound) void
setHour
(int hour) void
setMinute
(int min) void
setSoundRadius
(int soundRadius) boolean
void
void
void
syncAlarmClock_Player
(IsoPlayer player) void
void
void
update()
void
updateSound
(BaseSoundEmitter emitter) Methods inherited from class zombie.inventory.types.Clothing
addPatch, canBe3DRender, canFullyRestore, CanStack, copyPatchesTo, CreateFromSprite, flushWetness, getBiteDefense, getBiteDefenseFromItem, getBloodlevel, getBloodLevel, getBloodlevelForPart, getBloodLevelForPart, getBulletDefense, getCanHaveHoles, getChanceToFall, getClothingDirtynessIncreaseLevel, getClothingExtraSubmenu, getCombatSpeedModifier, getConditionLowerChance, getCondLossPerHole, getCoveredParts, getDefForPart, getDirtyness, getHolesNumber, getInsulation, getName, getNbrOfCoveredParts, getNeckProtectionModifier, getPalette, getPatchesNumber, getPatchType, getRunSpeedModifier, getScratchDefense, getScratchDefenseFromItem, getSpriteName, getStompPower, getTemperature, getWaterResistance, getWeight, getWeightWet, getWetness, getWindresistance, isBloody, IsClothing, isCosmetic, isDirty, isRemoveOnBroken, removePatch, setBiteDefense, setBloodLevel, setBulletDefense, setCanHaveHoles, setChanceToFall, setCombatSpeedModifier, setCondition, setConditionLowerChance, setDirtyness, setInsulation, setNeckProtectionModifier, setPalette, setRemoveOnBroken, setRunSpeedModifier, setScratchDefense, setSpriteName, setStompPower, setTemperature, setWaterResistance, setWeightWet, setWetness, setWindresistance, toString, Unwear, updateWetness, updateWetness, Use
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, allowRandomTint, canBeActivated, canBeRemote, canEmitLight, canStoreWater, copyConditionModData, copyModData, CopyModData, doBuildingStash, 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, 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, getInvHeat, 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, 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, getWetCooldown, getWheelFriction, getWorker, getWorldItem, getWorldStaticItem, getWorldTexture, hasBlood, hasDirt, hasModData, hasReplaceType, hasTag, haveExtraItems, HowRotten, initialiseItem, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, isConditionAffectsCapacity, isCookable, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, 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, 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, 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, Use, Use, UseItem
-
Field Details
-
PacketPlayer
public static short PacketPlayer -
PacketWorld
public static short PacketWorld
-
-
Constructor Details
-
AlarmClockClothing
-
AlarmClockClothing
-
-
Method Details
-
getAlarmSquare
-
shouldUpdateInWorld
public boolean shouldUpdateInWorld()- Overrides:
shouldUpdateInWorld
in classInventoryItem
-
update
public void update() -
updateSound
- Overrides:
updateSound
in classInventoryItem
-
isRinging
public boolean isRinging() -
finishupdate
public boolean finishupdate()- Overrides:
finishupdate
in classClothing
-
DoTooltip
-
save
- Overrides:
save
in classClothing
- Throws:
IOException
-
load
- Overrides:
load
in classClothing
- Throws:
IOException
-
getSaveType
public int getSaveType()- Overrides:
getSaveType
in classClothing
-
getCategory
- Overrides:
getCategory
in classClothing
-
setAlarmSet
public void setAlarmSet(boolean alarmSet) -
isAlarmSet
public boolean isAlarmSet() -
setHour
public void setHour(int hour) -
setMinute
public void setMinute(int min) -
getHour
public int getHour() -
getMinute
public int getMinute() -
syncAlarmClock
public void syncAlarmClock() -
syncAlarmClock_Player
-
syncAlarmClock_World
public void syncAlarmClock_World() -
syncStopRinging
public void syncStopRinging() -
stopRinging
public void stopRinging() -
getAlarmSound
-
setAlarmSound
-
getSoundRadius
public int getSoundRadius() -
setSoundRadius
public void setSoundRadius(int soundRadius) -
isDigital
public boolean isDigital()
-