geforkt von Mirrors/Paper
Merge pull request #268 from xPaw/master
Implemented hasSaddle/setSaddle By: Andrew Ardill <andrew.ardill@gmail.com>
Dieser Commit ist enthalten in:
Commit
7391f7871f
@ -5,14 +5,24 @@ import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.Pig;
|
||||
|
||||
public class CraftPig extends CraftAnimals implements Pig {
|
||||
|
||||
public CraftPig(CraftServer server, EntityPig entity) {
|
||||
super(server, entity);
|
||||
}
|
||||
|
||||
public boolean hasSaddle() {
|
||||
return getHandle().x();
|
||||
}
|
||||
|
||||
public void setSaddle(boolean flag) {
|
||||
getHandle().a(flag);
|
||||
}
|
||||
|
||||
public EntityPig getHandle() {
|
||||
return (EntityPig) super.getHandle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftPig";
|
||||
}
|
||||
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren