mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
Made Pig extend Vehicle.
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
089c229c1d
commit
caf78a759e
1 changed files with 5 additions and 6 deletions
|
@ -2,20 +2,19 @@ package org.bukkit.entity;
|
|||
|
||||
/**
|
||||
* Represents a Pig.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Pig extends Animals {
|
||||
public interface Pig extends Animals, Vehicle {
|
||||
|
||||
/**
|
||||
* @author xPaw
|
||||
* Check if the pig has a saddle.
|
||||
*
|
||||
* @return if the pig has been saddled.
|
||||
*/
|
||||
public boolean hasSaddle();
|
||||
|
||||
/**
|
||||
* @author xPaw
|
||||
* 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue