Files
2019-02-24 22:29:41 +08:00

55 lines
2.6 KiB
Diff

--- ../src-base/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeOverlay.java
+++ ../src-work/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeOverlay.java
@@ -23,7 +23,7 @@
public class GuiRecipeOverlay extends Gui
{
private static final ResourceLocation RECIPE_BOOK_TEXTURE = new ResourceLocation("textures/gui/recipe_book.png");
- private final List<GuiRecipeOverlay.Button> buttonList = Lists.<GuiRecipeOverlay.Button>newArrayList();
+ private final List<Button> buttonList = Lists.<Button>newArrayList();
private boolean visible;
private int x;
private int y;
@@ -76,7 +76,7 @@
for (int j1 = 0; j1 < j; ++j1)
{
boolean flag1 = j1 < i;
- this.buttonList.add(new GuiRecipeOverlay.Button(this.x + 4 + 25 * (j1 % k), this.y + 5 + 25 * (j1 / k), flag1 ? (IRecipe)list.get(j1) : (IRecipe)list1.get(j1 - i), flag1));
+ this.buttonList.add(new Button(this.x + 4 + 25 * (j1 % k), this.y + 5 + 25 * (j1 / k), flag1 ? (IRecipe)list.get(j1) : (IRecipe)list1.get(j1 - i), flag1));
}
this.lastRecipeClicked = null;
@@ -100,7 +100,7 @@
}
else
{
- for (GuiRecipeOverlay.Button guirecipeoverlay$button : this.buttonList)
+ for (Button guirecipeoverlay$button : this.buttonList)
{
if (guirecipeoverlay$button.mousePressed(this.mc, p_193968_1_, p_193968_2_))
{
@@ -135,7 +135,7 @@
GlStateManager.disableBlend();
RenderHelper.disableStandardItemLighting();
- for (GuiRecipeOverlay.Button guirecipeoverlay$button : this.buttonList)
+ for (Button guirecipeoverlay$button : this.buttonList)
{
guirecipeoverlay$button.drawButton(this.mc, p_191842_1_, p_191842_2_, p_191842_3_);
}
@@ -230,11 +230,11 @@
int k = 3;
int l = 3;
- if (this.recipe instanceof ShapedRecipes)
+ if (this.recipe instanceof net.minecraftforge.common.crafting.IShapedRecipe)
{
- ShapedRecipes shapedrecipes = (ShapedRecipes)this.recipe;
- k = shapedrecipes.getWidth();
- l = shapedrecipes.getHeight();
+ net.minecraftforge.common.crafting.IShapedRecipe shapedrecipes = (net.minecraftforge.common.crafting.IShapedRecipe)this.recipe;
+ k = shapedrecipes.getRecipeWidth();
+ l = shapedrecipes.getRecipeHeight();
}
Iterator<Ingredient> iterator = this.recipe.getIngredients().iterator();