mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Implement Slime.set/getSize()
This commit is contained in:
committed by
Erik Broes
parent
cd50683f78
commit
9f30c9f8f4
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user