Package zombie.inventory.types
Class AlarmClock
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.AlarmClock
public class AlarmClock extends InventoryItem
-
Field Summary
Fields Modifier and Type Field Description static shortPacketPlayerstatic shortPacketWorldFields 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, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, stressChange, swingAnim, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, Weight, worldItem, WorldTexture -
Constructor Summary
Constructors Constructor Description AlarmClock(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)AlarmClock(java.lang.String module, java.lang.String name, java.lang.String itemType, Item item) -
Method Summary
Modifier and Type Method Description voidDoTooltip(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout)booleanfinishupdate()java.lang.StringgetAlarmSound()IsoGridSquaregetAlarmSquare()java.lang.StringgetCategory()intgetHour()intgetMinute()intgetSaveType()intgetSoundRadius()booleanisAlarmSet()booleanisRinging()voidload(java.nio.ByteBuffer input, int WorldVersion, boolean net)voidsave(java.nio.ByteBuffer output, boolean net)voidsetAlarmSet(boolean alarmSet)voidsetAlarmSound(java.lang.String alarmSound)voidsetHour(int hour)voidsetMinute(int min)voidsetSoundRadius(int soundRadius)booleanshouldUpdateInWorld()voidstopRinging()voidsyncAlarmClock()voidsyncAlarmClock_Player(IsoPlayer player)voidsyncAlarmClock_World()voidsyncStopRinging()voidupdate()voidupdateSound(BaseSoundEmitter emitter)Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, canBeActivated, canBeRemote, CanStack, canStoreWater, copyConditionModData, CopyModData, doBuildingtStash, DoTooltip, getA, getActualWeight, getAge, getAlcoholPower, getB, getBandagePower, getBoredomChange, 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, getStressChange, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUnhappyChange, 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, storeInByteData, updateAge, Use, Use, Use, Use, UseItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
PacketPlayer
public static short PacketPlayer -
PacketWorld
public static short PacketWorld
-
-
Constructor Details
-
AlarmClock
public AlarmClock(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName) -
AlarmClock
public AlarmClock(java.lang.String module, java.lang.String name, java.lang.String itemType, Item item)
-
-
Method Details
-
getAlarmSquare
-
shouldUpdateInWorld
public boolean shouldUpdateInWorld()- Overrides:
shouldUpdateInWorldin classInventoryItem
-
update
public void update()- Overrides:
updatein classInventoryItem
-
updateSound
- Overrides:
updateSoundin classInventoryItem
-
isRinging
public boolean isRinging() -
finishupdate
public boolean finishupdate()- Overrides:
finishupdatein classInventoryItem
-
DoTooltip
- Overrides:
DoTooltipin classInventoryItem
-
save
public void save(java.nio.ByteBuffer output, boolean net) throws java.io.IOException- Overrides:
savein classInventoryItem- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer input, int WorldVersion, boolean net) throws java.io.IOException- Overrides:
loadin classInventoryItem- Throws:
java.io.IOException
-
getSaveType
public int getSaveType()- Overrides:
getSaveTypein classInventoryItem
-
getCategory
public java.lang.String getCategory()- Overrides:
getCategoryin classInventoryItem
-
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
public java.lang.String getAlarmSound() -
setAlarmSound
public void setAlarmSound(java.lang.String alarmSound) -
getSoundRadius
public int getSoundRadius() -
setSoundRadius
public void setSoundRadius(int soundRadius)
-