mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
Implement Slime.set/getSize()
By: Celtic Minstrel <celtic.minstrel.ca@>
This commit is contained in:
parent
11902a86ff
commit
4e68f7523b
1 changed files with 11 additions and 0 deletions
|
@ -16,4 +16,15 @@ public class CraftSlime extends CraftLivingEntity implements Slime {
|
||||||
return "CraftSlime";
|
return "CraftSlime";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EntitySlime getHandle() {
|
||||||
|
return (EntitySlime) super.getHandle();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSize() {
|
||||||
|
return getHandle().c;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(int size) {
|
||||||
|
getHandle().e(size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue