mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +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.
|
* Gets the item in the horse's saddle slot.
|
||||||
*
|
*
|
||||||
* @return the saddle item
|
* @return the saddle item
|
||||||
|
* @deprecated llama's cannot have saddles
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@Deprecated(since = "1.21.5")
|
||||||
ItemStack getSaddle();
|
ItemStack getSaddle();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the item in the horse's saddle slot.
|
* Sets the item in the horse's saddle slot.
|
||||||
*
|
*
|
||||||
* @param stack the new item
|
* @param stack the new item
|
||||||
|
* @deprecated llama's cannot have saddles
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "1.21.5")
|
||||||
void setSaddle(@Nullable ItemStack stack);
|
void setSaddle(@Nullable ItemStack stack);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,23 @@ import org.jetbrains.annotations.Nullable;
|
||||||
*/
|
*/
|
||||||
public interface HorseInventory extends AbstractHorseInventory {
|
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.
|
* Gets the item in the horse's armor slot.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue