mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Stop using some deprecated methods and classes
This commit is contained in:
1 parent
7306764c51
commit
1fcaacd41b
22 files changed
+197
-210
No files matched your search
@@ -2,12 +2,14 @@ package forestry.factory.recipes.jei.bottler;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import mezz.jei.api.ingredients.IIngredients;
|
||||
import mezz.jei.api.recipe.BlankRecipeWrapper;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
public class BottlerRecipeWrapper extends BlankRecipeWrapper {
|
||||
import mezz.jei.api.ingredients.IIngredients;
|
||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||
|
||||
public class BottlerRecipeWrapper implements IRecipeWrapper {
|
||||
public final ItemStack inputStack;
|
||||
public final FluidStack fluid;
|
||||
@Nullable
|
||||
|
||||
@@ -13,9 +13,9 @@ import forestry.api.fuels.RainSubstrate;
|
||||
import forestry.core.utils.Translator;
|
||||
|
||||
import mezz.jei.api.ingredients.IIngredients;
|
||||
import mezz.jei.api.recipe.BlankRecipeWrapper;
|
||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||
|
||||
public class RainmakerRecipeWrapper extends BlankRecipeWrapper {
|
||||
public class RainmakerRecipeWrapper implements IRecipeWrapper {
|
||||
private final RainSubstrate substrate;
|
||||
|
||||
public RainmakerRecipeWrapper(RainSubstrate substrate) {
|
||||
@@ -30,8 +30,6 @@ public class RainmakerRecipeWrapper extends BlankRecipeWrapper {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
|
||||
super.drawInfo(minecraft, recipeWidth, recipeHeight, mouseX, mouseY);
|
||||
|
||||
minecraft.fontRenderer.drawString(getEffectString(), 24, 0, Color.darkGray.getRGB());
|
||||
String speed = Translator.translateToLocalFormatted("for.jei.rainmaker.speed", substrate.getSpeed());
|
||||
minecraft.fontRenderer.drawString(speed, 24, 10, Color.gray.getRGB());
|
||||
|
||||
Reference in new issue
Block a user