Update to Minecraft 1.12-pre2

This commit is contained in:
md_5
2017-05-14 12:00:00 +10:00
parent 6e3cec8bc7
commit 5195487ec6
210 changed files with 2280 additions and 1974 deletions

View File

@@ -4,17 +4,17 @@
import com.google.common.collect.Lists;
import java.util.ArrayList;
-public class RecipeFireworks implements IRecipe {
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
-public class RecipeFireworks extends IRecipe {
+public class RecipeFireworks extends ShapelessRecipes { // CraftBukkit
private ItemStack a;
private ItemStack b;
+ // CraftBukkit start - Delegate to new parent class with bogus info
public RecipeFireworks() {
+ super(new ItemStack(Items.FIREWORKS, 0, 0), java.util.Arrays.asList(new ItemStack(Items.GUNPOWDER, 0, 5)));
this.a = ItemStack.a;
+ super("", new ItemStack(Items.FIREWORKS, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.GUNPOWDER)));
this.b = ItemStack.a;
}
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
this.a = ItemStack.a;
this.b = ItemStack.a;