L2FishingRod.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.model.fishing;
  16. import com.l2jserver.gameserver.model.StatsSet;
  17. /**
  18. * Class for the Fishing Rod object.
  19. * @author nonom
  20. */
  21. public class L2FishingRod
  22. {
  23. private final int _fishingRodId;
  24. private final int _fishingRodItemId;
  25. private final int _fishingRodLevel;
  26. private final String _fishingRodName;
  27. private final double _fishingRodDamage;
  28. public L2FishingRod(StatsSet set)
  29. {
  30. _fishingRodId = set.getInteger("fishingRodId");
  31. _fishingRodItemId = set.getInteger("fishingRodItemId");
  32. _fishingRodLevel = set.getInteger("fishingRodLevel");
  33. _fishingRodName = set.getString("fishingRodName");
  34. _fishingRodDamage = set.getDouble("fishingRodDamage");
  35. }
  36. /**
  37. * @return the fishing rod Id.
  38. */
  39. public int getFishingRodId()
  40. {
  41. return _fishingRodId;
  42. }
  43. /**
  44. * @return the fishing rod Item Id.
  45. */
  46. public int getFishingRodItemId()
  47. {
  48. return _fishingRodItemId;
  49. }
  50. /**
  51. * @return the fishing rod Level.
  52. */
  53. public int getFishingRodLevel()
  54. {
  55. return _fishingRodLevel;
  56. }
  57. /**
  58. * @return the fishing rod Item Name.
  59. */
  60. public String getFishingRodItemName()
  61. {
  62. return _fishingRodName;
  63. }
  64. /**
  65. * @return the fishing rod Damage.
  66. */
  67. public double getFishingRodDamage()
  68. {
  69. return _fishingRodDamage;
  70. }
  71. }