mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +01:00
SPIGOT-2824: Llama Strength API
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c3ecd0d680
commit
63312e6e8a
@ -31,19 +31,36 @@ public interface Llama extends ChestedHorse {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the llamas's color.
|
||||
* Gets the llama's color.
|
||||
*
|
||||
* @return a {@link Color} representing the llama's color
|
||||
*/
|
||||
public Color getColor();
|
||||
Color getColor();
|
||||
|
||||
/**
|
||||
* Sets the llama's color.
|
||||
*
|
||||
* @param color a {@link Color} for this llama
|
||||
*/
|
||||
public void setColor(Color color);
|
||||
void setColor(Color color);
|
||||
|
||||
/**
|
||||
* Gets the llama's strength. A higher strength llama will have more
|
||||
* inventory slots and be more threatening to entities.
|
||||
*
|
||||
* @return llama strength [1,5]
|
||||
*/
|
||||
int getStrength();
|
||||
|
||||
/**
|
||||
* Gets the llama's strength. A higher strength llama will have more
|
||||
* inventory slots and be more threatening to entities. Inventory slots are
|
||||
* equal to strength * 3.
|
||||
*
|
||||
* @param strength llama strength [1,5]
|
||||
*/
|
||||
void setStrength(int strength);
|
||||
|
||||
@Override
|
||||
public LlamaInventory getInventory();
|
||||
LlamaInventory getInventory();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user