Uses of Enum Class
games.stendhal.common.constants.Nature
Packages that use Nature
Package
Description
entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
common classes for both server and client.
Entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
Events are notifications send from the server to the clients.
-
Uses of Nature in games.stendhal.client.entity
Methods in games.stendhal.client.entity that return NatureModifier and TypeMethodDescriptionRPEntity.getShownDamageType()Get the damage type of the current strike.Methods in games.stendhal.client.entity with parameters of type NatureModifier and TypeMethodDescriptionvoidRPEntity.onAttackPerformed(Nature type, boolean ranged, String weapon) When this entity performs an attack. -
Uses of Nature in games.stendhal.client.gui.j2d.entity.helpers
Methods in games.stendhal.client.gui.j2d.entity.helpers with parameters of type NatureModifier and TypeMethodDescriptionstatic AttackPainterGet a painter for attack of a given nature, and size of a creature.booleanAttackPainter.hasNatureAndWeapon(Nature nature, String weapon) Check if this painter has the given nature an weapon. -
Uses of Nature in games.stendhal.common.constants
Methods in games.stendhal.common.constants that return NatureModifier and TypeMethodDescriptionstatic NatureParses the Nature, defaulting to CUT for unknown types.static NatureReturns the enum constant of this class with the specified name.static Nature[]Nature.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Nature in games.stendhal.server.core.rule.defaultruleset
Methods in games.stendhal.server.core.rule.defaultruleset that return NatureModifier and TypeMethodDescriptionDefaultCreature.getDamageType()DefaultItem.getDamageType()DefaultSpell.getNature()DefaultCreature.getRangedDamageType()Methods in games.stendhal.server.core.rule.defaultruleset that return types with arguments of type NatureModifier and TypeMethodDescriptionDefaultCreature.getSusceptibilities()DefaultItem.getSusceptibilities()Methods in games.stendhal.server.core.rule.defaultruleset with parameters of type NatureModifier and TypeMethodDescriptionvoidDefaultCreature.setDamageTypes(Nature type, Nature rangedType) Set the damage types.Method parameters in games.stendhal.server.core.rule.defaultruleset with type arguments of type NatureModifier and TypeMethodDescriptionvoidDefaultCreature.setSusceptibilities(Map<Nature, Double> susceptibilities) Set the susceptibility mapping. -
Uses of Nature in games.stendhal.server.entity
Methods in games.stendhal.server.entity that return NatureModifier and TypeMethodDescriptionprotected NatureRPEntity.getDamageType()Get the type of the damage this entity inflictsprotected NatureRPEntity.getRangedDamageType()Get the nature of the damage the entity inflicts in ranged attacks.Methods in games.stendhal.server.entity with parameters of type NatureModifier and TypeMethodDescriptionintRPEntity.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType) Is called when this has hit the given defender.protected intRPEntity.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType, boolean isRanged, int maxRange) Is called when this has hit the given defender.protected doubleRPEntity.getSusceptibility(Nature type) Get a multiplier for a given damage type when this entity is damaged. -
Uses of Nature in games.stendhal.server.entity.creature
Methods in games.stendhal.server.entity.creature that return NatureModifier and TypeMethodDescriptionprotected NatureCreature.getDamageType()protected NatureCreature.getRangedDamageType()Methods in games.stendhal.server.entity.creature with parameters of type NatureModifier and TypeMethodDescriptionprotected doubleCreature.getSusceptibility(Nature type) final voidCreature.setDamageTypes(Nature type, Nature rangedType) Set the damage natures the creature inflicts.Method parameters in games.stendhal.server.entity.creature with type arguments of type NatureModifier and TypeMethodDescriptionvoidCreature.setSusceptibilities(Map<Nature, Double> susceptibilities) Set the susceptibility mapping of a creature. -
Uses of Nature in games.stendhal.server.entity.item
Methods in games.stendhal.server.entity.item that return NatureModifier and TypeMethodDescriptionItem.getDamageType()Get the type of damage inflicted by this item.Methods in games.stendhal.server.entity.item with parameters of type NatureModifier and TypeMethodDescriptiondoubleItem.getSusceptibility(Nature type) Get this item's contribution to susceptibility to a type of damage.voidItem.setDamageType(Nature type) Set the type of damage inflicted by this itemMethod parameters in games.stendhal.server.entity.item with type arguments of type NatureModifier and TypeMethodDescriptionvoidItem.setSusceptibilities(Map<Nature, Double> susceptibilities) Set the susceptibility data of this item. -
Uses of Nature in games.stendhal.server.entity.player
Methods in games.stendhal.server.entity.player that return NatureMethods in games.stendhal.server.entity.player with parameters of type NatureModifier and TypeMethodDescriptionintPlayer.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType) This is overridden to reduce damage done by players to creatures to make up for the increased hit chance.intPlayer.getMagicSkillXp(Nature nature) Get the current value for the skill of a magic natureprotected doublePlayer.getSusceptibility(Nature type) voidPlayer.increaseMagicSkillXp(Nature nature, int amount) Increase the skill points for a magic nature by a given amount -
Uses of Nature in games.stendhal.server.entity.spell
Methods in games.stendhal.server.entity.spell that return NatureMethods in games.stendhal.server.entity.spell with parameters of type NatureConstructors in games.stendhal.server.entity.spell with parameters of type NatureModifierConstructorDescriptionAttackingSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier) HealingSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier) ModifyAtkSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier) Create a new ModifyAtkSpellModifyDefSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier) Create a new ModifyDefSpellModifyHpSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier) Create a new ModifyHpSpellSlowDownSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier) -
Uses of Nature in games.stendhal.server.entity.spell.effect
Methods in games.stendhal.server.entity.spell.effect that return NatureConstructors in games.stendhal.server.entity.spell.effect with parameters of type NatureModifierConstructorDescriptionAbstractEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) Create a new AbstractEffect.DamageEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) HealingEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) Creates a newHealingEffect.ModifyAtkEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) ModifyBaseHpEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) ModifyDefEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) ModifySpeedEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) -
Uses of Nature in games.stendhal.server.events
Constructors in games.stendhal.server.events with parameters of type NatureModifierConstructorDescriptionAttackEvent(boolean canHit, int damage, Nature type, String weapon, boolean ranged) Construct a newAttackEvent