22 lines
415 B
Java
22 lines
415 B
Java
package org.bukkit.entity;
|
|
|
|
/**
|
|
* Represents a Pig.
|
|
*/
|
|
public interface Pig extends Animals, Vehicle {
|
|
|
|
/**
|
|
* Check if the pig has a saddle.
|
|
*
|
|
* @return if the pig has been saddled.
|
|
*/
|
|
public boolean hasSaddle();
|
|
|
|
/**
|
|
* Sets if the pig has a saddle or not
|
|
*
|
|
* @param saddled set if the pig has a saddle or not.
|
|
*/
|
|
public void setSaddle(boolean saddled);
|
|
}
|