chore: remove some warnings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Ley 2022-11-25 22:06:02 +01:00
parent 22af5cf660
commit 0c28acea1d
5 changed files with 5 additions and 8 deletions

View file

@ -16,6 +16,7 @@ public class Recipes {
ConfigResearch.recipes.put("Clusters9", shapelessOreDictRecipe(new ItemStack(ConfigBlocks.blockCrystal, 1, 9), new Object[] { new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 2), new ItemStack(ConfigItems.itemShard, 1, 3), new ItemStack(ConfigItems.itemShard, 1, 7) }));
}
@SuppressWarnings({"unchecked"})
static IRecipe shapelessOreDictRecipe(final ItemStack res, final Object[] params) {
final IRecipe rec = (IRecipe)new ShapelessOreRecipe(res, params);
CraftingManager.getInstance().getRecipeList().add(rec);

View file

@ -22,6 +22,7 @@ public class SlotCraftingArcaneWorkbench extends SlotCrafting {
this.craftMatrix = par2IInventory;
}
@SuppressWarnings({"deprecation"})
public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par1ItemStack) {
FMLCommonHandler.instance().firePlayerCraftingEvent(this.thePlayer, par1ItemStack, this.craftMatrix);
this.onCrafting(par1ItemStack);

View file

@ -9,19 +9,11 @@ import java.nio.channels.spi.AbstractInterruptibleChannel;
import dev.tilera.auracore.api.IWand;
import net.minecraft.block.Block;
import net.minecraft.block.BlockCrops;
import net.minecraft.block.BlockDirectional;
import net.minecraft.block.BlockMushroom;
import net.minecraft.block.BlockSapling;
import net.minecraft.block.BlockStem;
import net.minecraft.block.IGrowable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import thaumcraft.api.IGoggles;
import thaumcraft.api.IVisDiscountGear;
@ -79,6 +71,7 @@ public class Utils {
return world.getBlock(x, y, z + 1) == id || world.getBlock(x, y, z - 1) == id || world.getBlock(x + 1, y, z) == id || world.getBlock(x - 1, y, z) == id || world.getBlock(x, y + 1, z) == id || world.getBlock(x, y - 1, z) == id;
}
@SuppressWarnings({"resource"})
public static void copyFile(File sourceFile, File destFile) throws IOException {
if (!destFile.exists()) {
destFile.createNewFile();

View file

@ -37,6 +37,7 @@ public abstract class MixinBlockCustomOre extends Block {
* @author tilera
* @reason Vis, Tainted and Dull ores
*/
@SuppressWarnings({"unchecked", "rawtypes"})
@Overwrite
@SideOnly(Side.CLIENT)
public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List) {

View file

@ -30,6 +30,7 @@ public abstract class MixinItemShard extends Item {
* @author tilera
* @reason Vis, Tainted and Dull shards
*/
@SuppressWarnings({"unchecked", "rawtypes"})
@Overwrite
@SideOnly(Side.CLIENT)
public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) {