mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-27 04:35:46 +01:00
New method take() for Stackable
This commit is contained in:
parent
0496fe629d
commit
8be6bdfe7e
@ -110,6 +110,13 @@ public class Stackable {
|
||||
this.save();
|
||||
}
|
||||
|
||||
public void take(int n) {
|
||||
this.size-=n;
|
||||
this.updateDisplay();
|
||||
SkyBlock.getInstance().getSoundManager().playSound(this.location, CompatibleSound.ENTITY_ARROW_HIT.getSound(), 1.0F, 1.0F);
|
||||
this.save();
|
||||
}
|
||||
|
||||
public boolean isMaxSize(){
|
||||
return size > maxSize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user