Initial Paper-API for Bukkit 1.13 Preview 4 - THIS IS NOT SERVER

This branch/commit is only useful to those who purely use a clean Bukkit/Spigot/Paper API
and does not use NMS/OBC references.

This will let you start updating your plugin to the latest 1.13 builds of Bukkit Preview (4 as of now)

Note that this release is not final!!! API breakages may occur!

It is up to you if you find use out of this work.
This commit is contained in:
Aikar
2018-07-13 21:44:35 -04:00
parent 230bf934b5
commit a8c28e1920
67 changed files with 3046 additions and 282 deletions

View File

@@ -1,4 +1,4 @@
From 8c7f590319e0322c7b6d85b44bbc280328f84e93 Mon Sep 17 00:00:00 2001
From 575bbab52d06b324acd9b8758d454d74a859c8d0 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Wed, 4 May 2016 23:55:48 -0400
Subject: [PATCH] ensureServerConversions API
@@ -7,14 +7,13 @@ This will take a Bukkit ItemStack and run it through any conversions a server pr
to ensure it meets latest minecraft expectations.
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
index 52a8d4d8..99b90629 100644
index f74f8ae9..ab33e09e 100644
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
+++ b/src/main/java/org/bukkit/inventory/ItemFactory.java
@@ -121,4 +121,17 @@ public interface ItemFactory {
* @return the default color for leather armor
@@ -134,4 +134,16 @@ public interface ItemFactory {
*/
Color getDefaultLeatherColor();
+
@Deprecated
Material updateMaterial(final ItemMeta meta, final Material material) throws IllegalArgumentException;
+ // Paper start
+ /**
+ * Minecart updates are converting simple item stacks into more complex NBT oriented Item Stacks.
@@ -29,11 +28,11 @@ index 52a8d4d8..99b90629 100644
+ // Paper end
}
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java
index 188ae6d7..6bb19b9d 100644
index 6324044d..6df4b97a 100644
--- a/src/main/java/org/bukkit/inventory/ItemStack.java
+++ b/src/main/java/org/bukkit/inventory/ItemStack.java
@@ -556,7 +556,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
}
@@ -479,7 +479,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
result.setDurability(damage);
}
- return result;
@@ -41,7 +40,7 @@ index 188ae6d7..6bb19b9d 100644
}
/**
@@ -608,4 +608,18 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
@@ -537,4 +537,18 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
return true;
}
@@ -61,5 +60,5 @@ index 188ae6d7..6bb19b9d 100644
+ // Paper end
}
--
2.15.1
2.18.0