MCPcopy Create free account
hub / github.com/Teneted/Tenet / setAmount

Method setAmount

src/main/java/net/minecraftforge/fluids/FluidStack.java:189–194  ·  view source on GitHub ↗
(int amount)

Source from the content-addressed store, hash-verified

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);

Callers 7

growMethod · 0.95
shrinkMethod · 0.95
fillMethod · 0.95
fillMethod · 0.95
drainMethod · 0.95
fillMethod · 0.45

Calls 2

getRawFluidMethod · 0.95
updateEmptyMethod · 0.95

Tested by

no test coverage detected