64 VIAL(229, 33, 35.0D, 1775),
65 LIGHT_ORB(10973, 87, 70.0D, 1775),
66 BEER_GLASS(1919, 1, 17.5D, 1775),
67 CANDLE_LANTERN(4527, 4, 19.0D, 1775),
68 OIL_LAMP(4522, 12, 25.0D, 1775),
69 FISHBOWL(6667, 42, 42.5D, 1775),
70 LANTERN_LENS(4542, 49, 55.0D, 1775),
71 MOLTEN_GLASS(1775, 1, 20.0D, 1781),
72 UNPOWDERED_ORD(567, 46, 52.5D, 1775);
75 private final int product;
78 private final int level;
81 private final double experience;
84 private final int material;
87 GlassData(
int product,
int level,
double experience,
int material) {
88 this.product = product;
90 this.experience = experience;
91 this.material = material;
95 public static Optional<GlassData>
forGlass(
int item) {
96 return Arrays.stream(values()).filter(g -> g.material == item).findFirst();
113 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->
118 case 12396:
craft(player,
GlassData.UNPOWDERED_ORD, 1);
return true;
119 case 12395:
craft(player,
GlassData.UNPOWDERED_ORD, 5);
return true;
120 case 12394:
craft(player,
GlassData.UNPOWDERED_ORD, 10);
return true;
122 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->
131 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->
136 case 12404:
craft(player,
GlassData.CANDLE_LANTERN, 1);
return true;
137 case 12403:
craft(player,
GlassData.CANDLE_LANTERN, 5);
return true;
138 case 12402:
craft(player,
GlassData.CANDLE_LANTERN, 10);
return true;
140 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->
149 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->
158 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->
163 case 12412:
craft(player,
GlassData.LANTERN_LENS, 1);
return true;
164 case 12411:
craft(player,
GlassData.LANTERN_LENS, 5);
return true;
165 case 12410:
craft(player,
GlassData.LANTERN_LENS, 10);
return true;
167 player.send(
new SendInputAmount(
"Enter the amount you would like to craft", 2, input ->