|
RuneHive-Game
|
Holds generic attributes. More...
Package Functions | |
| public< K, E > E | get (K key) |
| Gets a generic attribute. | |
| public< K, E > E | get (K key, Class<? extends E > type) |
| Gets a generic attribute casted to a specific class type. | |
| public< K > Object | getObject (K key) |
| Gets a generic attribute. | |
| public< K > boolean | has (K key) |
| Checks if a key is in the list of generic attribute. | |
| public< K > boolean | is (K key) |
| Gets the state of a key. | |
| public< K, E > void | modify (K key, E value) |
| Modifies a generic attribute. | |
| public< K, V > void | put (K key, V value) |
| public< K > void | remove (K key) |
| Removes a generic attribute. | |
| public< K, E > void | set (K key, E attribute) |
| Sets a generic attribute. | |
Private Attributes | |
| final Map< Object, Object > | genericAttributes = new HashMap<>() |
| The map of generic attributes for an entity. | |
Holds generic attributes.
Definition at line 11 of file GenericAttributes.java.
|
package |
Gets a generic attribute.
| <K> | The key type. |
| <E> | The return value class type. |
| key | The key. |
Definition at line 85 of file GenericAttributes.java.
References genericAttributes, and get().
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.block(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.canAttack(), com.runehive.content.skill.impl.agility.obstacle.impl.WildernessDoorInteraction.canExecute(), com.runehive.content.skill.impl.construction.BuildableInterface.click(), com.runehive.content.teleport.TeleportHandler.click(), com.runehive.content.skill.impl.crafting.Crafting.clickButton(), com.runehive.content.skill.impl.fletching.Fletching.clickButton(), com.runehive.content.store.Store.closeShop(), com.runehive.content.skill.impl.crafting.Crafting.craft(), com.runehive.content.store.Store.exchange(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.execute(), com.runehive.content.teleport.TeleportHandler.favorite(), com.runehive.content.skill.impl.fletching.Fletching.fletch(), com.runehive.content.skill.impl.smithing.SmithingArmour.forge(), get(), com.runehive.net.packet.in.ExaminePacketListener.handleInterfaceExamine(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.hitsplat(), com.runehive.content.skill.impl.agility.obstacle.impl.RopeSwingInteraction.onExecution(), com.runehive.content.DropDisplay.open(), com.runehive.content.teleport.TeleportHandler.open(), com.runehive.content.tittle.TitleManager.redeem(), com.runehive.content.skill.impl.slayer.SlayerTab.refresh(), com.runehive.content.tittle.TitleManager.refresh(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.rewards(), com.runehive.content.dialogue.impl.ClanRankDialogue.sendDialogues(), com.runehive.net.packet.in.ItemContainerActionPacketListener.sixthAction(), and com.runehive.content.teleport.TeleportHandler.teleport().
|
package |
Gets a generic attribute casted to a specific class type.
| <K> | The key type. |
| <E> | The return value class type. |
| key | The key. |
| type | The class for the return type. |
Definition at line 126 of file GenericAttributes.java.
References genericAttributes.
|
package |
Gets a generic attribute.
| <K> | The key type. |
| key | The key. |
Definition at line 104 of file GenericAttributes.java.
References genericAttributes, and getObject().
Referenced by com.runehive.content.skill.impl.crafting.Crafting.clickButton(), and getObject().
|
package |
Checks if a key is in the list of generic attribute.
| <K> | The key type. |
| key | The key. |
True if the generic attributes contains a value with this key. Definition at line 69 of file GenericAttributes.java.
References genericAttributes.
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.block(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.canAttack(), com.runehive.content.skill.impl.crafting.Crafting.clickButton(), com.runehive.content.store.Store.closeShop(), com.runehive.content.store.Store.exchange(), com.runehive.game.world.entity.combat.strategy.player.special.melee.GraniteMaul.getAttackDelay(), com.runehive.net.packet.in.ExaminePacketListener.handleInterfaceExamine(), is(), and com.runehive.game.world.entity.combat.formula.MeleeFormula.modifyDamage().
|
package |
Gets the state of a key.
| <K> | The key type. |
| key | The key to check. |
True if the value of the key is equal to Boolean.TRUE. Definition at line 146 of file GenericAttributes.java.
References has().
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.canAttack(), com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.canAttack(), and com.runehive.game.world.entity.combat.strategy.player.special.melee.GraniteMaul.start().
|
package |
Modifies a generic attribute.
| <K> | The key type. |
| <E> | The return value class type. |
| key | The key. |
| value | The value to set. |
Definition at line 43 of file GenericAttributes.java.
References genericAttributes.
|
package |
Definition at line 16 of file GenericAttributes.java.
References genericAttributes.
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.block(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.canAttack(), and com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.hitsplat().
|
package |
Removes a generic attribute.
| <K> | The key type. |
| key | The key. |
Definition at line 55 of file GenericAttributes.java.
References genericAttributes.
Referenced by com.runehive.content.store.impl.DefaultStore.close(), com.runehive.content.store.impl.PersonalStore.close(), com.runehive.content.store.impl.RecipeForDisasterStore.close(), com.runehive.content.store.impl.SkillcapeStore.close(), com.runehive.game.world.entity.combat.attack.listener.item.VeracListener.finishOutgoing(), com.runehive.content.skill.impl.crafting.Crafting.start(), com.runehive.content.skill.impl.fletching.Fletching.start(), and com.runehive.game.world.entity.combat.strategy.player.special.melee.GraniteMaul.start().
|
package |
Sets a generic attribute.
| <K> | The key type. |
| <E> | The return value class type. |
| key | The key. |
| attribute | The value associated with this key. |
Definition at line 32 of file GenericAttributes.java.
References genericAttributes.
Referenced by com.runehive.content.Obelisks.activate(), com.runehive.content.teleport.TeleportHandler.click(), com.runehive.content.tittle.TitleManager.click(), com.runehive.content.itemaction.impl.SerpentineHelm.dismantle(), com.runehive.content.skill.impl.construction.BuildableInterface.display(), com.runehive.content.teleport.TeleportHandler.display(), com.runehive.content.simulator.DropSimulator.drawList(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.execute(), com.runehive.net.packet.in.ItemContainerActionPacketListener.fifthAction(), com.runehive.game.world.entity.combat.attack.listener.item.VeracListener.init(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.lavaTask(), com.runehive.content.clanchannel.channel.ClanChannelHandler.manageMember(), com.runehive.content.Obelisks.open(), com.runehive.content.skill.impl.construction.BuildableInterface.open(), com.runehive.content.store.impl.DefaultStore.open(), com.runehive.content.store.impl.PersonalStore.open(), com.runehive.content.store.impl.RecipeForDisasterStore.open(), com.runehive.content.store.impl.SkillcapeStore.open(), com.runehive.content.teleport.TeleportHandler.open(), com.runehive.content.skill.impl.smithing.SmithingArmour.openInterface(), com.runehive.game.world.entity.combat.strategy.npc.boss.Hydra.poisonAttack(), com.runehive.game.world.entity.combat.strategy.npc.boss.Hydra.poisonTask(), com.runehive.content.StarterKit.refresh(), com.runehive.content.itemaction.impl.MagmaHelm.restore(), com.runehive.content.itemaction.impl.TanzaniteHelm.restore(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.rewards(), com.runehive.content.DropDisplay.search(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.GhostAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.MinionsAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.Transform.start(), com.runehive.content.skill.impl.crafting.Crafting.useItem(), and com.runehive.content.skill.impl.fletching.Fletching.useItem().
|
private |
The map of generic attributes for an entity.
Definition at line 14 of file GenericAttributes.java.
Referenced by get(), get(), getObject(), has(), modify(), put(), remove(), and set().