Fixed warnings

This commit is contained in:
drcrazy 2018-07-23 12:55:18 +03:00
parent 095390b430
commit b3002b6f57
14 changed files with 4 additions and 22 deletions

View file

@ -82,7 +82,7 @@ public class BlockRubberLeaves extends BlockLeaves {
@Override @Override
public boolean isOpaqueCube(IBlockState state) { public boolean isOpaqueCube(IBlockState state) {
if(!fancyLeaves()){ if(!fancyLeaves()){
return super.isOpaqueCube(state); return state.isOpaqueCube();
} }
return false; return false;
} }
@ -133,7 +133,7 @@ public class BlockRubberLeaves extends BlockLeaves {
@Override @Override
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) { public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
if(!fancyLeaves()){ if(!fancyLeaves()){
return super.shouldSideBeRendered(blockState, blockAccess, pos, side); blockState.shouldSideBeRendered(blockAccess, pos, side);
} }
return true; return true;
} }

View file

@ -45,7 +45,6 @@ import techreborn.client.gui.slot.elements.SlotType;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import java.awt.*; import java.awt.*;
import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;

View file

@ -112,8 +112,8 @@ public class ModelDynamicCell implements IModel {
TextureAtlasSprite fluidSprite = bakedTextureGetter.apply(sprite); TextureAtlasSprite fluidSprite = bakedTextureGetter.apply(sprite);
if (fluid != null) { if (fluid != null) {
if (fluidSprite != null) { if (fluidSprite != null) {
builder.add(ItemTextureQuadConverter.genQuad(format, transform, 5, 2, 11, 14, NORTH_Z_FLUID, fluidSprite, EnumFacing.NORTH, color)); builder.add(ItemTextureQuadConverter.genQuad(format, transform, 5, 2, 11, 14, NORTH_Z_FLUID, fluidSprite, EnumFacing.NORTH, color, -1));
builder.add(ItemTextureQuadConverter.genQuad(format, transform, 5, 2, 11, 14, SOUTH_Z_FLUID, fluidSprite, EnumFacing.SOUTH, color)); builder.add(ItemTextureQuadConverter.genQuad(format, transform, 5, 2, 11, 14, SOUTH_Z_FLUID, fluidSprite, EnumFacing.SOUTH, color, -1));
} }
} }

View file

@ -26,7 +26,6 @@ package techreborn.command;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.command.CommandBase; import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender; import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.entity.player.EntityPlayerMP;

View file

@ -33,7 +33,6 @@ import reborncore.api.recipe.RecipeHandler;
import techreborn.api.Reference; import techreborn.api.Reference;
import techreborn.api.recipe.machines.ScrapboxRecipe; import techreborn.api.recipe.machines.ScrapboxRecipe;
import techreborn.init.ModBlocks; import techreborn.init.ModBlocks;
import techreborn.init.ModItems;
import techreborn.items.DynamicCell; import techreborn.items.DynamicCell;
import techreborn.items.ItemDusts; import techreborn.items.ItemDusts;
import techreborn.items.ItemGems; import techreborn.items.ItemGems;

View file

@ -28,7 +28,6 @@ import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Enchantments; import net.minecraft.init.Enchantments;
import net.minecraft.item.IItemPropertyGetter; import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemAxe;

View file

@ -31,8 +31,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
import reborncore.common.network.INetworkPacket; import reborncore.common.network.INetworkPacket;
import techreborn.tiles.storage.TileAdjustableSU; import techreborn.tiles.storage.TileAdjustableSU;
import java.io.IOException;
public class PacketAesu implements INetworkPacket<PacketAesu> { public class PacketAesu implements INetworkPacket<PacketAesu> {
int buttonID; int buttonID;

View file

@ -31,8 +31,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
import reborncore.common.network.INetworkPacket; import reborncore.common.network.INetworkPacket;
import techreborn.tiles.fusionReactor.TileFusionControlComputer; import techreborn.tiles.fusionReactor.TileFusionControlComputer;
import java.io.IOException;
public class PacketFusionControlSize implements INetworkPacket<PacketFusionControlSize> { public class PacketFusionControlSize implements INetworkPacket<PacketFusionControlSize> {
int sizeDelta; int sizeDelta;

View file

@ -30,8 +30,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
import reborncore.common.network.INetworkPacket; import reborncore.common.network.INetworkPacket;
import techreborn.tiles.idsu.TileInterdimensionalSU; import techreborn.tiles.idsu.TileInterdimensionalSU;
import java.io.IOException;
public class PacketIdsu implements INetworkPacket<PacketIdsu> { public class PacketIdsu implements INetworkPacket<PacketIdsu> {
int buttonID; int buttonID;

View file

@ -31,8 +31,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
import reborncore.common.network.INetworkPacket; import reborncore.common.network.INetworkPacket;
import techreborn.tiles.tier1.TileRollingMachine; import techreborn.tiles.tier1.TileRollingMachine;
import java.io.IOException;
public class PacketRollingMachineLock implements INetworkPacket<PacketRollingMachineLock> { public class PacketRollingMachineLock implements INetworkPacket<PacketRollingMachineLock> {
BlockPos machinePos; BlockPos machinePos;

View file

@ -33,8 +33,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
import reborncore.common.network.INetworkPacket; import reborncore.common.network.INetworkPacket;
import techreborn.tiles.tier1.TileAutoCraftingTable; import techreborn.tiles.tier1.TileAutoCraftingTable;
import java.io.IOException;
/** /**
* Created by modmuss50 on 20/06/2017. * Created by modmuss50 on 20/06/2017.
*/ */

View file

@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import reborncore.api.IToolDrop; import reborncore.api.IToolDrop;
import reborncore.common.multiblock.MultiblockControllerBase; import reborncore.common.multiblock.MultiblockControllerBase;
import reborncore.common.multiblock.MultiblockValidationException;
import reborncore.common.multiblock.rectangular.RectangularMultiblockTileEntityBase; import reborncore.common.multiblock.rectangular.RectangularMultiblockTileEntityBase;
import techreborn.blocks.BlockMachineCasing; import techreborn.blocks.BlockMachineCasing;
import techreborn.multiblocks.MultiBlockCasing; import techreborn.multiblocks.MultiBlockCasing;

View file

@ -32,8 +32,6 @@ import reborncore.api.power.EnumPowerTier;
import reborncore.common.powerSystem.TilePowerAcceptor; import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.init.ModBlocks; import techreborn.init.ModBlocks;
import java.util.List;
/** /**
* Created by modmuss50 on 25/02/2016. * Created by modmuss50 on 25/02/2016.
*/ */

View file

@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.Rotation;
import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.TextFormatting;
import reborncore.api.IToolDrop; import reborncore.api.IToolDrop;
import reborncore.api.power.EnumPowerTier; import reborncore.api.power.EnumPowerTier;