EventDrop.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.script;
  16. /**
  17. * @author Zoey76
  18. */
  19. public class EventDrop
  20. {
  21. private final int[] _itemIdList;
  22. private final int _minCount;
  23. private final int _maxCount;
  24. private final int _dropChance;
  25. public EventDrop(int[] itemIdList, int minCount, int maxCount, int dropChance)
  26. {
  27. _itemIdList = itemIdList;
  28. _minCount = minCount;
  29. _maxCount = maxCount;
  30. _dropChance = dropChance;
  31. }
  32. public EventDrop(int itemId, int minCount, int maxCount, int dropChance)
  33. {
  34. _itemIdList = new int[]
  35. {
  36. itemId
  37. };
  38. _minCount = minCount;
  39. _maxCount = maxCount;
  40. _dropChance = dropChance;
  41. }
  42. /**
  43. * @return the _itemId
  44. */
  45. public int[] getItemIdList()
  46. {
  47. return _itemIdList;
  48. }
  49. /**
  50. * @return the _minCount
  51. */
  52. public int getMinCount()
  53. {
  54. return _minCount;
  55. }
  56. /**
  57. * @return the _maxCount
  58. */
  59. public int getMaxCount()
  60. {
  61. return _maxCount;
  62. }
  63. /**
  64. * @return the _dropChance
  65. */
  66. public int getDropChance()
  67. {
  68. return _dropChance;
  69. }
  70. }