Files
Paper/paper-api/src/main/java/org/bukkit/entity/Bee.java
Owen1212055 a2a581ba6b Missing Entity API
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: William Blake Galbreath <blake.galbreath@gmail.com>
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
Co-authored-by: booky10 <boooky10@gmail.com>
Co-authored-by: Amin <amin.haddou@frg.wwschool.de>
Co-authored-by: TrollyLoki <trollyloki@gmail.com>
Co-authored-by: FireInstall <kettnerl@hu-berlin.de>
Co-authored-by: maxcom1 <46265094+maxcom1@users.noreply.github.com>
Co-authored-by: TotalledZebra <Holappa57@gmail.com>
2021-05-28 21:06:59 -04:00

149 lines
3.1 KiB
Java

package org.bukkit.entity;
import org.bukkit.Location;
import org.jetbrains.annotations.Nullable;
/**
* Represents a Bee.
*/
public interface Bee extends Animals {
/**
* Get the bee's hive location.
*
* @return hive location or null
*/
@Nullable
Location getHive();
/**
* Set the bee's hive location.
*
* @param location or null
*/
void setHive(@Nullable Location location);
/**
* Get the bee's flower location.
*
* @return flower location or null
*/
@Nullable
Location getFlower();
/**
* Set the bee's flower location.
*
* @param location or null
*/
void setFlower(@Nullable Location location);
/**
* Get if the bee has nectar.
*
* @return nectar
*/
boolean hasNectar();
/**
* Set if the bee has nectar.
*
* @param nectar whether the entity has nectar
*/
void setHasNectar(boolean nectar);
/**
* Get if the bee has stung.
*
* @return has stung
*/
boolean hasStung();
/**
* Set if the bee has stung.
*
* @param stung has stung
*/
void setHasStung(boolean stung);
/**
* Get the bee's anger level.
*
* @return anger level
*/
int getAnger();
/**
* Set the bee's new anger level.
*
* @param anger new anger
*/
void setAnger(int anger);
/**
* Get the amount of ticks the bee cannot enter the hive for.
*
* @return Ticks the bee cannot enter a hive for
*/
int getCannotEnterHiveTicks();
/**
* Set the amount of ticks the bee cannot enter a hive for.
*
* @param ticks Ticks the bee cannot enter a hive for
*/
void setCannotEnterHiveTicks(int ticks);
// Paper start
/**
* Sets the override for if the bee is currently rolling.
*
* @param rolling is rolling, or unset for vanilla behavior
*/
void setRollingOverride(@org.jetbrains.annotations.NotNull net.kyori.adventure.util.TriState rolling);
/**
* Gets the plugin set override for if the bee is currently rolling.
*
* @return plugin set rolling override
*/
@org.jetbrains.annotations.NotNull
net.kyori.adventure.util.TriState getRollingOverride();
/**
* Gets if the bee is currently rolling.
*
* @return is rolling
*/
boolean isRolling();
/**
* Sets how many crops this bee has grown since it last
* pollinated.
* @param crops number of crops
*/
void setCropsGrownSincePollination(int crops);
/**
* Gets how many crops this bee has grown since it last
* pollinated.
* @return number of crops
*/
int getCropsGrownSincePollination();
/**
* Sets how many ticks this bee has gone without pollinating.
*
* @param ticks number of ticks
*/
void setTicksSincePollination(int ticks);
/**
* Gets how many ticks this bee has gone without pollinating
*
* @return number of ticks
*/
int getTicksSincePollination();
// Paper end
}