@@ -42,4 +42,4 @@ public interface CraftingInventory extends Inventory {
|
||||
* recipe.
|
||||
*/
|
||||
Recipe getRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,9 +159,9 @@ public abstract class InventoryView {
|
||||
public void setItem(int slot, ItemStack item) {
|
||||
if (slot != OUTSIDE) {
|
||||
if (slot < getTopInventory().getSize()) {
|
||||
getTopInventory().setItem(convertSlot(slot),item);
|
||||
getTopInventory().setItem(convertSlot(slot), item);
|
||||
} else {
|
||||
getBottomInventory().setItem(convertSlot(slot),item);
|
||||
getBottomInventory().setItem(convertSlot(slot), item);
|
||||
}
|
||||
} else {
|
||||
getPlayer().getWorld().dropItemNaturally(getPlayer().getLocation(), item);
|
||||
|
||||
@@ -26,7 +26,7 @@ public interface FireworkMeta extends ItemMeta {
|
||||
* @throws IllegalArgumentException If any effect is null (may be thrown
|
||||
* after changes have occurred)
|
||||
*/
|
||||
void addEffects(FireworkEffect...effects) throws IllegalArgumentException;
|
||||
void addEffects(FireworkEffect... effects) throws IllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Add several firework effects to this firework.
|
||||
|
||||
@@ -141,13 +141,13 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
|
||||
*/
|
||||
boolean removeEnchant(Enchantment ench);
|
||||
|
||||
/**
|
||||
* Checks if the specified enchantment conflicts with any enchantments in
|
||||
* this ItemMeta.
|
||||
*
|
||||
* @param ench enchantment to test
|
||||
* @return true if the enchantment conflicts, false otherwise
|
||||
*/
|
||||
/**
|
||||
* Checks if the specified enchantment conflicts with any enchantments in
|
||||
* this ItemMeta.
|
||||
*
|
||||
* @param ench enchantment to test
|
||||
* @return true if the enchantment conflicts, false otherwise
|
||||
*/
|
||||
boolean hasConflictingEnchant(Enchantment ench);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user