From 3ce3db7f3a72f3cd6c5ee1d2afc485e3950a6b58 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 11 May 2011 17:44:31 -0700 Subject: [PATCH] Added ability to saddle a pig to the API. Thanks xPaw! By: Andrew Ardill --- .../src/main/java/org/bukkit/entity/Pig.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Pig.java b/paper-api/src/main/java/org/bukkit/entity/Pig.java index 2d67cb0445..2a27393480 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Pig.java +++ b/paper-api/src/main/java/org/bukkit/entity/Pig.java @@ -1,6 +1,3 @@ -/** - * - */ package org.bukkit.entity; /** @@ -10,5 +7,15 @@ package org.bukkit.entity; * */ public interface Pig extends Animals { - + /** + * @author xPaw + * @return if the pig has been saddled. + */ + public boolean hasSaddle(); + + /** + * @author xPaw + * @param saddled set if the pig has a saddle or not. + */ + public void setSaddle(boolean saddled); }