diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Armor.java index be563684ef..5262ec04cd 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Item.java index 15c2cccafe..636a41abe3 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Item.java @@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Armor.java index be563684ef..5262ec04cd 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Item.java index 15c2cccafe..636a41abe3 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Item.java @@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Armor.java index be563684ef..5262ec04cd 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Item.java index 15c2cccafe..636a41abe3 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Item.java @@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Armor.java index be563684ef..5262ec04cd 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Item.java index f55855633a..7be6afb184 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Item.java @@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Armor.java index ea662aea16..8d4262dd2b 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Item.java index a02113a8f3..32bc280f28 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Item.java @@ -238,9 +238,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Armor.java index fe8f483f31..69f2e2c5c4 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Item.java index ec11d53ef0..031c50015c 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Item.java @@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Armor.java index fe8f483f31..69f2e2c5c4 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Item.java index 409092cafb..6d49dc5819 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Item.java @@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Armor.java index d91f2dd75b..41d457c962 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -111,6 +111,15 @@ public final class Armor extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isArmor() + { + return true; + } + /** * @return skill that player get when has equipped armor +4 or more */ diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 598630164f..e17a177417 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -140,6 +140,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Item.java index fa1d70f510..37d0180a53 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Item.java @@ -283,9 +283,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Weapon.java index 9016253cf7..06004429e7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -211,6 +211,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Armor.java index be563684ef..5262ec04cd 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Item.java index 15c2cccafe..636a41abe3 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Item.java @@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Armor.java index be563684ef..5262ec04cd 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Item.java index 15c2cccafe..636a41abe3 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Item.java @@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Armor.java index ea662aea16..8d4262dd2b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Item.java index a86acf4337..ae3891ec59 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Item.java @@ -238,9 +238,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Armor.java index fe8f483f31..69f2e2c5c4 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Item.java index 66ff23268c..34412d2d33 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Item.java @@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */ diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Armor.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Armor.java index fe8f483f31..69f2e2c5c4 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Armor.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Armor.java @@ -75,4 +75,13 @@ public final class Armor extends Item { return _type.mask(); } + + /** + * @return {@code true} if the item is an armor, {@code false} otherwise + */ + @Override + public boolean isArmor() + { + return true; + } } diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/EtcItem.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/EtcItem.java index 24e06c8238..24a1c2fced 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/EtcItem.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/EtcItem.java @@ -92,6 +92,15 @@ public final class EtcItem extends Item return _type.mask(); } + /** + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + @Override + public boolean isEtcItem() + { + return true; + } + /** * @return the handler name, null if no handler for item. */ diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Item.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Item.java index 66ff23268c..34412d2d33 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Item.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Item.java @@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable */ public abstract ItemType getItemType(); + /** + * Verifies if the item is an etc item. + * @return {@code true} if the item is an etc item, {@code false} otherwise. + */ + public boolean isEtcItem() + { + return false; + } + + /** + * Verifies if the item is an armor. + * @return {@code true} if the item is an armor, {@code false} otherwise. + */ + public boolean isArmor() + { + return false; + } + + /** + * Verifies if the item is a weapon. + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + public boolean isWeapon() + { + return false; + } + /** * Verifies if the item is a magic weapon. - * @return {@code true} if the weapon is magic, {@code false} otherwise + * @return {@code true} if the weapon is magic, {@code false} otherwise. */ public boolean isMagicWeapon() { diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Weapon.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Weapon.java index ee8a4c3019..66b587e105 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Weapon.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/items/Weapon.java @@ -121,6 +121,15 @@ public final class Weapon extends Item return _type.mask(); } + /** + * @return {@code true} if the item is a weapon, {@code false} otherwise. + */ + @Override + public boolean isWeapon() + { + return true; + } + /** * @return {@code true} if the weapon is magic, {@code false} otherwise. */