mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Make Sittable interface extend Entity (#12016)
This commit is contained in:
@@ -171,22 +171,6 @@ public interface Panda extends Animals, Sittable {
|
|||||||
this.setSitting(sitting);
|
this.setSitting(sitting);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets if this panda is currently sitting.
|
|
||||||
*
|
|
||||||
* @param sitting is currently sitting
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
void setSitting(boolean sitting);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets if this panda is sitting.
|
|
||||||
*
|
|
||||||
* @return is sitting
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
boolean isSitting();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets this Panda's combined gene.
|
* Gets this Panda's combined gene.
|
||||||
* <p>
|
* <p>
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An animal that can sit still.
|
* An entity that can sit still.
|
||||||
*/
|
*/
|
||||||
public interface Sittable {
|
public interface Sittable extends Entity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this animal is sitting
|
* Checks if this entity is sitting
|
||||||
*
|
*
|
||||||
* @return true if sitting
|
* @return true if sitting
|
||||||
*/
|
*/
|
||||||
boolean isSitting();
|
boolean isSitting();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets if this animal is sitting. Will remove any path that the animal
|
* Sets if this entity is sitting. Will remove any path that the entity
|
||||||
* was following beforehand.
|
* was following beforehand.
|
||||||
*
|
*
|
||||||
* @param sitting true if sitting
|
* @param sitting true if sitting
|
||||||
|
@@ -49,6 +49,7 @@ import org.bukkit.entity.NPC;
|
|||||||
import org.bukkit.entity.PiglinAbstract;
|
import org.bukkit.entity.PiglinAbstract;
|
||||||
import org.bukkit.entity.Projectile;
|
import org.bukkit.entity.Projectile;
|
||||||
import org.bukkit.entity.Raider;
|
import org.bukkit.entity.Raider;
|
||||||
|
import org.bukkit.entity.Sittable;
|
||||||
import org.bukkit.entity.SizedFireball;
|
import org.bukkit.entity.SizedFireball;
|
||||||
import org.bukkit.entity.Spellcaster;
|
import org.bukkit.entity.Spellcaster;
|
||||||
import org.bukkit.entity.SplashPotion;
|
import org.bukkit.entity.SplashPotion;
|
||||||
@@ -110,6 +111,7 @@ public class EntityTypesTest {
|
|||||||
PiglinAbstract.class,
|
PiglinAbstract.class,
|
||||||
Projectile.class,
|
Projectile.class,
|
||||||
Raider.class,
|
Raider.class,
|
||||||
|
Sittable.class,
|
||||||
SizedFireball.class,
|
SizedFireball.class,
|
||||||
Spellcaster.class,
|
Spellcaster.class,
|
||||||
SplashPotion.class,
|
SplashPotion.class,
|
||||||
|
Reference in New Issue
Block a user