[SPIGOT-946] Begin making use of access transforms to simplify patching.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2015-06-06 19:33:48 +10:00
parent ae714e4861
commit 58abe21c5a
47 changed files with 76 additions and 632 deletions

View File

@@ -1,11 +1,8 @@
--- a/net/minecraft/server/RecipesFurnace.java
+++ b/net/minecraft/server/RecipesFurnace.java
@@ -8,14 +8,15 @@
public class RecipesFurnace {
@@ -10,12 +10,13 @@
private static final RecipesFurnace a = new RecipesFurnace();
- private Map<ItemStack, ItemStack> recipes = Maps.newHashMap();
+ public Map<ItemStack, ItemStack> recipes = Maps.newHashMap(); // CraftBukkit - public
public Map<ItemStack, ItemStack> recipes = Maps.newHashMap();
private Map<ItemStack, Float> c = Maps.newHashMap();
+ public Map customRecipes = Maps.newHashMap(); // CraftBukkit - add field
@@ -14,7 +11,7 @@
}
- private RecipesFurnace() {
+ public RecipesFurnace() { // CraftBukkit - public
+ public RecipesFurnace() { // PAIL: Public
this.registerRecipe(Blocks.IRON_ORE, new ItemStack(Items.IRON_INGOT), 0.7F);
this.registerRecipe(Blocks.GOLD_ORE, new ItemStack(Items.GOLD_INGOT), 1.0F);
this.registerRecipe(Blocks.DIAMOND_ORE, new ItemStack(Items.DIAMOND), 1.0F);