SPIGOT-5468: Improve Beehive TileEntity API
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user