Make it clear that llamas should not have saddles

This commit is contained in:
md_5 2025-03-30 08:26:06 +11:00
parent 4ece6d0e2f
commit fe18cbabd8
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11
2 changed files with 21 additions and 0 deletions

View file

@ -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);
}

View file

@ -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.
*