mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Make it clear that llamas should not have saddles
This commit is contained in:
parent
4ece6d0e2f
commit
fe18cbabd8
2 changed files with 21 additions and 0 deletions
|
@ -12,14 +12,18 @@ public interface AbstractHorseInventory extends Inventory {
|
|||
* Gets the item in the horse's saddle slot.
|
||||
*
|
||||
* @return the saddle item
|
||||
* @deprecated llama's cannot have saddles
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated(since = "1.21.5")
|
||||
ItemStack getSaddle();
|
||||
|
||||
/**
|
||||
* Sets the item in the horse's saddle slot.
|
||||
*
|
||||
* @param stack the new item
|
||||
* @deprecated llama's cannot have saddles
|
||||
*/
|
||||
@Deprecated(since = "1.21.5")
|
||||
void setSaddle(@Nullable ItemStack stack);
|
||||
}
|
||||
|
|
|
@ -7,6 +7,23 @@ import org.jetbrains.annotations.Nullable;
|
|||
*/
|
||||
public interface HorseInventory extends AbstractHorseInventory {
|
||||
|
||||
/**
|
||||
* Gets the item in the horse's saddle slot.
|
||||
*
|
||||
* @return the saddle item
|
||||
*/
|
||||
@Nullable
|
||||
@Override
|
||||
ItemStack getSaddle();
|
||||
|
||||
/**
|
||||
* Sets the item in the horse's saddle slot.
|
||||
*
|
||||
* @param stack the new item
|
||||
*/
|
||||
@Override
|
||||
void setSaddle(@Nullable ItemStack stack);
|
||||
|
||||
/**
|
||||
* Gets the item in the horse's armor slot.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue