GeneratorItem.java 756 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package xyz.spaceio.customoregen;
  2. public class GeneratorItem {
  3. /**
  4. * Name of the material
  5. */
  6. private String name;
  7. /**
  8. * Damage value, only for mc < 1.13
  9. */
  10. private Byte damage = 0;
  11. /**
  12. * The chance in double. From 0 to 1.
  13. */
  14. private double chance = 0d;
  15. public GeneratorItem(String name, byte damage, double chance){
  16. this.name = name;
  17. this.damage = damage;
  18. this.chance = chance;
  19. }
  20. public String getName() {
  21. return name;
  22. }
  23. public void setName(String name) {
  24. this.name = name;
  25. }
  26. public Byte getDamage() {
  27. return damage;
  28. }
  29. public void setDamage(Byte damage) {
  30. this.damage = damage;
  31. }
  32. public double getChance() {
  33. return chance;
  34. }
  35. public void setChance(double chance) {
  36. this.chance = chance;
  37. }
  38. }