Files
Paper/paper-api/src/main/java/org/bukkit/block/Beehive.java
2020-02-09 10:47:09 +11:00

34 lines
690 B
Java

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 EntityBlockStorage<Bee> {
/**
* Get the hive's flower location.
*
* @return flower location or null
*/
@Nullable
Location getFlower();
/**
* Set the hive's flower location.
*
* @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();
}