Update to Minecraft 1.11

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2016-11-17 12:40:59 +11:00
parent 06e0085b98
commit f1fb3d9462
59 changed files with 646 additions and 682 deletions

View File

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

View File

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