mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-07-01 22:36:35 +02:00
25 lines
669 B
Java
25 lines
669 B
Java
|
package de.ellpeck.naturesaura.aura.container;
|
||
|
|
||
|
import de.ellpeck.naturesaura.aura.chunk.ISpotDrainable;
|
||
|
|
||
|
public class NaturalAuraContainer extends BasicAuraContainer implements ISpotDrainable {
|
||
|
|
||
|
private final int drainAmount;
|
||
|
|
||
|
public NaturalAuraContainer(int aura, int drainAmount) {
|
||
|
super(aura);
|
||
|
this.aura = aura;
|
||
|
this.drainAmount = drainAmount;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int storeAura(int amountToStore, boolean simulate) {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int drainAuraPassively(int amountToDrain, boolean simulate) {
|
||
|
return this.drainAura(Math.min(this.drainAmount, amountToDrain), simulate);
|
||
|
}
|
||
|
}
|