(int amount)
| 187 | } |
| 188 | |
| 189 | public void setAmount(int amount) |
| 190 | { |
| 191 | if (getRawFluid() == Fluids.EMPTY) throw new IllegalStateException("Can't modify the empty stack."); |
| 192 | this.amount = amount; |
| 193 | updateEmpty(); |
| 194 | } |
| 195 | |
| 196 | public void grow(int amount) { |
| 197 | setAmount(this.amount + amount); |