Update to Minecraft 1.14-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-23 12:00:00 +10:00
parent 3c840f61b8
commit 30a442aef7
92 changed files with 2602 additions and 884 deletions

View File

@@ -0,0 +1,69 @@
package org.bukkit.block;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of a campfire.
*/
public interface Campfire extends BlockState {
/**
* @see Inventory#getSize()
*
* @return The size of the inventory
*/
int getSize();
/**
* @see Inventory#getItem(int)
*
* @param index The index of the Slot's ItemStack to return
* @return The ItemStack in the slot
*/
@Nullable
ItemStack getItem(int index);
/**
* @see Inventory#setItem(int, org.bukkit.inventory.ItemStack)
*
* @param index The index where to put the ItemStack
* @param item The ItemStack to set
*/
void setItem(int index, @Nullable ItemStack item);
/**
* Get cook time.This is the amount of time the item has been cooking for.
*
* @param index
* @return Cook time
*/
int getCookTime(int index);
/**
* Set cook time.This is the amount of time the item has been cooking for.
*
* @param index
* @param cookTime Cook time
*/
void setCookTime(int index, int cookTime);
/**
* Get cook time total.This is the amount of time the item is required to
* cook for.
*
* @param index
* @return Cook time total
*/
int getCookTimeTotal(int index);
/**
* Set cook time.This is the amount of time the item is required to cook
* for.
*
* @param index
* @param cookTimeTotal Cook time total
*/
void setCookTimeTotal(int index, int cookTimeTotal);
}