MOre fixed warnings
This commit is contained in:
parent
1c95ca4967
commit
1c57bd0100
5 changed files with 6 additions and 6 deletions
|
@ -123,7 +123,7 @@ public class BlockOre extends Block implements IOreNameProvider {
|
||||||
OreDrop ruby = new OreDrop(ItemGems.getGemByName("ruby"),
|
OreDrop ruby = new OreDrop(ItemGems.getGemByName("ruby"),
|
||||||
secondaryDropChance);
|
secondaryDropChance);
|
||||||
OreDrop redGarnet = new OreDrop(ItemGems.getGemByName("red_garnet"), 0.02);
|
OreDrop redGarnet = new OreDrop(ItemGems.getGemByName("red_garnet"), 0.02);
|
||||||
OreDropSet set = new OreDropSet(ruby);
|
OreDropSet set = new OreDropSet(ruby, redGarnet);
|
||||||
return set.drop(fortune, random);
|
return set.drop(fortune, random);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,6 @@ import net.minecraftforge.fluids.BlockFluidBase;
|
||||||
import prospector.shootingstar.ShootingStar;
|
import prospector.shootingstar.ShootingStar;
|
||||||
import prospector.shootingstar.model.ModelCompound;
|
import prospector.shootingstar.model.ModelCompound;
|
||||||
import reborncore.api.IToolDrop;
|
import reborncore.api.IToolDrop;
|
||||||
import reborncore.api.IToolHandler;
|
|
||||||
import reborncore.api.ToolManager;
|
import reborncore.api.ToolManager;
|
||||||
import reborncore.common.BaseTileBlock;
|
import reborncore.common.BaseTileBlock;
|
||||||
import techreborn.client.TechRebornCreativeTab;
|
import techreborn.client.TechRebornCreativeTab;
|
||||||
|
|
|
@ -130,8 +130,8 @@ public class GuiAutoCrafting extends GuiBase {
|
||||||
}
|
}
|
||||||
if (recipe instanceof ShapedOreRecipe) {
|
if (recipe instanceof ShapedOreRecipe) {
|
||||||
ShapedOreRecipe shapedrecipes = (ShapedOreRecipe) recipe;
|
ShapedOreRecipe shapedrecipes = (ShapedOreRecipe) recipe;
|
||||||
recipeWidth = shapedrecipes.getWidth();
|
recipeWidth = shapedrecipes.getRecipeWidth();
|
||||||
recipeHeight = shapedrecipes.getHeight();
|
recipeHeight = shapedrecipes.getRecipeHeight();
|
||||||
}
|
}
|
||||||
Iterator<Ingredient> ingredients = recipe.getIngredients().iterator();
|
Iterator<Ingredient> ingredients = recipe.getIngredients().iterator();
|
||||||
for (int rHeight = 0; rHeight < recipeHeight; ++rHeight) {
|
for (int rHeight = 0; rHeight < recipeHeight; ++rHeight) {
|
||||||
|
|
|
@ -48,6 +48,7 @@ public abstract class GuiWidget<T extends Container> extends GuiContainer {
|
||||||
this.background = background;
|
this.background = background;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public T getContainer() {
|
public T getContainer() {
|
||||||
return (T) inventorySlots;
|
return (T) inventorySlots;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public abstract class Widget {
|
||||||
this.toolTip = toolTip;
|
this.toolTip = toolTip;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void drawWidget(GuiWidget gui, int cornerX, int cornerY, int mouseX, int mouseY) {
|
public final void drawWidget(GuiWidget<?> gui, int cornerX, int cornerY, int mouseX, int mouseY) {
|
||||||
int drawX = cornerX + x;
|
int drawX = cornerX + x;
|
||||||
int drawY = cornerY + y;
|
int drawY = cornerY + y;
|
||||||
if (toolTip != null && drawX > mouseX && drawY > mouseY &&
|
if (toolTip != null && drawX > mouseX && drawY > mouseY &&
|
||||||
|
@ -69,6 +69,6 @@ public abstract class Widget {
|
||||||
|
|
||||||
protected abstract void draw(GuiScreen guiScreen, int x, int y);
|
protected abstract void draw(GuiScreen guiScreen, int x, int y);
|
||||||
|
|
||||||
protected abstract void mouseClick(GuiWidget guiWidget, int mouseX, int mouseY);
|
protected abstract void mouseClick(GuiWidget<?> guiWidget, int mouseX, int mouseY);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue