Implement PlayerBookEditEvent. Adds BUKKIT-1995

This commit is contained in:
Des Herriott
2013-01-18 08:56:12 +00:00
committed by Nate Mortensen
parent c55c0db86d
commit 045121d095
3 changed files with 32 additions and 9 deletions

View File

@@ -298,7 +298,7 @@ public final class CraftItemStack extends ItemStack {
return getItemMeta(handle);
}
static ItemMeta getItemMeta(net.minecraft.server.ItemStack item) {
public static ItemMeta getItemMeta(net.minecraft.server.ItemStack item) {
if (!hasItemMeta(item)) {
return CraftItemFactory.instance().getItemMeta(getType(item));
}
@@ -338,7 +338,7 @@ public final class CraftItemStack extends ItemStack {
return setItemMeta(handle, itemMeta);
}
static boolean setItemMeta(net.minecraft.server.ItemStack item, ItemMeta itemMeta) {
public static boolean setItemMeta(net.minecraft.server.ItemStack item, ItemMeta itemMeta) {
if (item == null) {
return false;
}