summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorxPaw <xpaw@mail.ru>2011-04-26 07:29:25 -0700
committerxPaw <xpaw@mail.ru>2011-04-26 07:29:25 -0700
commit73aa3ac03c862acb6f3999e5936e9f52148fdb48 (patch)
tree679919b62054c2c42bf0276192dc980916c0d2d0 /src/main/java
parent4ae695a1763b6e7d50af5adbe2ca6e674231e813 (diff)
downloadcraftbukkit-73aa3ac03c862acb6f3999e5936e9f52148fdb48.tar
craftbukkit-73aa3ac03c862acb6f3999e5936e9f52148fdb48.tar.gz
craftbukkit-73aa3ac03c862acb6f3999e5936e9f52148fdb48.tar.lz
craftbukkit-73aa3ac03c862acb6f3999e5936e9f52148fdb48.tar.xz
craftbukkit-73aa3ac03c862acb6f3999e5936e9f52148fdb48.zip
Added hasSaddle/getSaddle
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java
index b92aa36c..8f011011 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java
@@ -1,20 +1,28 @@
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityPig;
-
import org.bukkit.craftbukkit.CraftServer;
-import org.bukkit.craftbukkit.entity.CraftAnimals;
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";
}
-
-}
+} \ No newline at end of file