SPIGOT-5468: Improve Beehive TileEntity API

By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
Bukkit/Spigot
2020-02-09 10:47:09 +11:00
parent 92cb9d0c47
commit 0455dbf2f7
3 changed files with 79 additions and 1 deletions

View File

@@ -1,12 +1,13 @@
package org.bukkit.block;
import org.bukkit.Location;
import org.bukkit.entity.Bee;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of a bee hive.
*/
public interface Beehive extends TileState {
public interface Beehive extends EntityBlockStorage<Bee> {
/**
* Get the hive's flower location.
@@ -22,4 +23,11 @@ public interface Beehive extends TileState {
* @param location or null
*/
void setFlower(@Nullable Location location);
/**
* Check if the hive is sedated due to smoke from a nearby campfire.
*
* @return True if hive is sedated
*/
boolean isSedated();
}