@@ -0,0 +1,23 @@
|
||||
package org.bukkit.inventory;
|
||||
|
||||
import org.bukkit.entity.Llama;
|
||||
|
||||
/**
|
||||
* An interface to the inventory of a {@link Llama}.
|
||||
*/
|
||||
public interface LlamaInventory extends Inventory {
|
||||
|
||||
/*
|
||||
* Gets the item in the llama's decor slot.
|
||||
*
|
||||
* @return the decor item
|
||||
*/
|
||||
ItemStack getDecor();
|
||||
|
||||
/**
|
||||
* Sets the item in the llama's decor slot.
|
||||
*
|
||||
* @param stack the new item
|
||||
*/
|
||||
void setDecor(ItemStack stack);
|
||||
}
|
||||
@@ -19,5 +19,29 @@ public interface MapMeta extends ItemMeta {
|
||||
*/
|
||||
void setScaling(boolean value);
|
||||
|
||||
/**
|
||||
* Checks for existence of a location name.
|
||||
*
|
||||
* @return true if this has a location name
|
||||
*/
|
||||
boolean hasLocationName();
|
||||
|
||||
/**
|
||||
* Gets the location name that is set.
|
||||
* <p>
|
||||
* Plugins should check that hasLocationName() returns <code>true</code>
|
||||
* before calling this method.
|
||||
*
|
||||
* @return the location name that is set
|
||||
*/
|
||||
String getLocationName();
|
||||
|
||||
/**
|
||||
* Sets the location name.
|
||||
*
|
||||
* @param name the name to set
|
||||
*/
|
||||
void setLocationName(String name);
|
||||
|
||||
MapMeta clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user