mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
Add more Witch API
This commit is contained in:
parent
fb826f7221
commit
7b3013d59b
1 changed files with 39 additions and 0 deletions
|
@ -2,6 +2,11 @@ package org.bukkit.entity;
|
||||||
|
|
||||||
import com.destroystokyo.paper.entity.RangedEntity;
|
import com.destroystokyo.paper.entity.RangedEntity;
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
// Paper end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Witch
|
* Represents a Witch
|
||||||
*/
|
*/
|
||||||
|
@ -13,4 +18,38 @@ public interface Witch extends Raider, RangedEntity { // Paper
|
||||||
* @return whether the witch is drinking a potion
|
* @return whether the witch is drinking a potion
|
||||||
*/
|
*/
|
||||||
boolean isDrinkingPotion();
|
boolean isDrinkingPotion();
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Get time remaining (in ticks) the Witch is drinking a potion
|
||||||
|
*
|
||||||
|
* @return Time remaining (in ticks)
|
||||||
|
*/
|
||||||
|
int getPotionUseTimeLeft();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set time remaining (in ticks) that the Witch is drinking a potion.
|
||||||
|
* <p>
|
||||||
|
* This only has an effect while the Witch is drinking a potion.
|
||||||
|
*
|
||||||
|
* @param ticks Time in ticks remaining
|
||||||
|
* @see #isDrinkingPotion
|
||||||
|
*/
|
||||||
|
void setPotionUseTimeLeft(int ticks);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the potion the Witch is drinking
|
||||||
|
*
|
||||||
|
* @return The potion the witch is drinking
|
||||||
|
*/
|
||||||
|
@org.jetbrains.annotations.NotNull
|
||||||
|
ItemStack getDrinkingPotion();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the potion the Witch should drink
|
||||||
|
*
|
||||||
|
* @param potion Potion to drink
|
||||||
|
*/
|
||||||
|
void setDrinkingPotion(@Nullable ItemStack potion);
|
||||||
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue