Fixed warnings

This commit is contained in:
drcrazy 2017-09-30 03:58:01 +03:00
parent b10459a288
commit 1b4fee595d
5 changed files with 5 additions and 9 deletions

View file

@ -35,12 +35,8 @@ import reborncore.common.util.Inventory;
import techreborn.client.container.IRightClickHandler; import techreborn.client.container.IRightClickHandler;
import techreborn.client.container.builder.BuiltContainer; import techreborn.client.container.builder.BuiltContainer;
import java.util.function.Predicate;
public class UpgradeSlot extends Slot implements IRightClickHandler { public class UpgradeSlot extends Slot implements IRightClickHandler {
private Predicate<ItemStack> filter;
public UpgradeSlot(final IInventory inventory, final int index, final int xPosition, final int yPosition) { public UpgradeSlot(final IInventory inventory, final int index, final int xPosition, final int yPosition) {
super(inventory, index, xPosition, yPosition); super(inventory, index, xPosition, yPosition);
} }

View file

@ -40,7 +40,6 @@ public class FluidGeneratorRecipes extends RecipeMethods {
register(EFluidGenerator.DIESEL, ModFluids.DIESEL, 128); register(EFluidGenerator.DIESEL, ModFluids.DIESEL, 128);
register(EFluidGenerator.DIESEL, ModFluids.NITRO_DIESEL, 400); register(EFluidGenerator.DIESEL, ModFluids.NITRO_DIESEL, 400);
register(EFluidGenerator.SEMIFLUID, ModFluids.SODIUM, 30); register(EFluidGenerator.SEMIFLUID, ModFluids.SODIUM, 30);
register(EFluidGenerator.SEMIFLUID, ModFluids.LITHIUM, 60); register(EFluidGenerator.SEMIFLUID, ModFluids.LITHIUM, 60);
register(EFluidGenerator.SEMIFLUID, ModFluids.OIL, 64); register(EFluidGenerator.SEMIFLUID, ModFluids.OIL, 64);

View file

@ -108,6 +108,7 @@ public class ItemAdvancedDrill extends ItemDrill {
return super.onBlockDestroyed(stack, worldIn, blockIn, pos, entityLiving); return super.onBlockDestroyed(stack, worldIn, blockIn, pos, entityLiving);
} }
@SuppressWarnings("deprecation")
public void breakBlock(BlockPos pos, ItemStack stack, World world, EntityLivingBase entityLiving, BlockPos oldPos) { public void breakBlock(BlockPos pos, ItemStack stack, World world, EntityLivingBase entityLiving, BlockPos oldPos) {
if (oldPos == pos) { if (oldPos == pos) {
return; return;
@ -117,7 +118,7 @@ public class ItemAdvancedDrill extends ItemDrill {
} }
IBlockState blockState = world.getBlockState(pos); IBlockState blockState = world.getBlockState(pos);
Block block = blockState.getBlock(); Block block = blockState.getBlock();
if (block.getBlockHardness(blockState, world, pos) == -1.0F) { if (blockState.getBlockHardness(world, pos) == -1.0F) {
return; return;
} }
List<ItemStack> stuff = block.getDrops(world, pos, blockState, 0); List<ItemStack> stuff = block.getDrops(world, pos, blockState, 0);

View file

@ -80,7 +80,7 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo, IEne
@Override @Override
public boolean canHarvestBlock(final IBlockState state, final ItemStack stack) { public boolean canHarvestBlock(final IBlockState state, final ItemStack stack) {
return OreDictUtils.isOre(state, "stone") return OreDictUtils.isOre(state, "stone")
|| state.getBlock().getMaterial(state) == Material.ROCK && PoweredItem.canUseEnergy(this.cost, stack); || state.getMaterial() == Material.ROCK && PoweredItem.canUseEnergy(this.cost, stack);
} }
@Override @Override

View file

@ -170,8 +170,8 @@ public class TileFusionControlComputer extends TilePowerAcceptor implements IInv
} }
@Override @Override
public void updateEntity() { public void update() {
super.updateEntity(); super.update();
// TODO improve this code a lot // TODO improve this code a lot
if (this.world.getTotalWorldTime() % 20 == 0) { if (this.world.getTotalWorldTime() % 20 == 0) {