L2FishingMonster.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright (C) 2004-2013 L2J Server
  3. *
  4. * This file is part of L2J Server.
  5. *
  6. * L2J Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.model.fishing;
  20. import com.l2jserver.gameserver.model.StatsSet;
  21. /**
  22. * Class for the Fishing Monsters object.
  23. * @author nonom
  24. */
  25. public class L2FishingMonster
  26. {
  27. private final int _userMinLevel;
  28. private final int _userMaxLevel;
  29. private final int _fishingMonsterId;
  30. private final int _probability;
  31. public L2FishingMonster(StatsSet set)
  32. {
  33. _userMinLevel = set.getInt("userMinLevel");
  34. _userMaxLevel = set.getInt("userMaxLevel");
  35. _fishingMonsterId = set.getInt("fishingMonsterId");
  36. _probability = set.getInt("probability");
  37. }
  38. /**
  39. * @return the minimum user level.
  40. */
  41. public int getUserMinLevel()
  42. {
  43. return _userMinLevel;
  44. }
  45. /**
  46. * @return the maximum user level.
  47. */
  48. public int getUserMaxLevel()
  49. {
  50. return _userMaxLevel;
  51. }
  52. /**
  53. * @return the fishing monster Id.
  54. */
  55. public int getFishingMonsterId()
  56. {
  57. return _fishingMonsterId;
  58. }
  59. /**
  60. * @return the probability.
  61. */
  62. public int getProbability()
  63. {
  64. return _probability;
  65. }
  66. }