Fixed imports and suppressed recipe warnings.

This commit is contained in:
drcrazy 2017-11-10 12:27:31 +03:00
parent 29d1176861
commit 25d561c81c
4 changed files with 3 additions and 4 deletions

View file

@ -37,7 +37,6 @@ import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import org.apache.commons.lang3.time.StopWatch;
import reborncore.RebornCore;
import reborncore.api.recipe.RecipeHandler;
import reborncore.common.multiblock.MultiblockEventHandler;

View file

@ -91,6 +91,7 @@ public abstract class BaseRecipe implements IBaseRecipeType, Cloneable {
return euPerTick;
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public boolean canCraft(TileEntity tile) {
if (tile instanceof ITileRecipeHandler) {
@ -98,7 +99,8 @@ public abstract class BaseRecipe implements IBaseRecipeType, Cloneable {
}
return true;
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public boolean onCraft(TileEntity tile) {
if (tile instanceof ITileRecipeHandler) {

View file

@ -38,7 +38,6 @@ import reborncore.common.powerSystem.PowerSystem;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.awt.*;
import java.text.NumberFormat;
import java.util.List;
@SuppressWarnings("deprecation")

View file

@ -26,7 +26,6 @@ package techreborn.proxies;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;