Fixed warnings
This commit is contained in:
parent
b10459a288
commit
1b4fee595d
5 changed files with 5 additions and 9 deletions
|
@ -35,12 +35,8 @@ import reborncore.common.util.Inventory;
|
|||
import techreborn.client.container.IRightClickHandler;
|
||||
import techreborn.client.container.builder.BuiltContainer;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
|
||||
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) {
|
||||
super(inventory, index, xPosition, yPosition);
|
||||
}
|
||||
|
|
|
@ -40,7 +40,6 @@ public class FluidGeneratorRecipes extends RecipeMethods {
|
|||
register(EFluidGenerator.DIESEL, ModFluids.DIESEL, 128);
|
||||
register(EFluidGenerator.DIESEL, ModFluids.NITRO_DIESEL, 400);
|
||||
|
||||
|
||||
register(EFluidGenerator.SEMIFLUID, ModFluids.SODIUM, 30);
|
||||
register(EFluidGenerator.SEMIFLUID, ModFluids.LITHIUM, 60);
|
||||
register(EFluidGenerator.SEMIFLUID, ModFluids.OIL, 64);
|
||||
|
|
|
@ -108,6 +108,7 @@ public class ItemAdvancedDrill extends ItemDrill {
|
|||
return super.onBlockDestroyed(stack, worldIn, blockIn, pos, entityLiving);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void breakBlock(BlockPos pos, ItemStack stack, World world, EntityLivingBase entityLiving, BlockPos oldPos) {
|
||||
if (oldPos == pos) {
|
||||
return;
|
||||
|
@ -117,7 +118,7 @@ public class ItemAdvancedDrill extends ItemDrill {
|
|||
}
|
||||
IBlockState blockState = world.getBlockState(pos);
|
||||
Block block = blockState.getBlock();
|
||||
if (block.getBlockHardness(blockState, world, pos) == -1.0F) {
|
||||
if (blockState.getBlockHardness(world, pos) == -1.0F) {
|
||||
return;
|
||||
}
|
||||
List<ItemStack> stuff = block.getDrops(world, pos, blockState, 0);
|
||||
|
|
|
@ -80,7 +80,7 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo, IEne
|
|||
@Override
|
||||
public boolean canHarvestBlock(final IBlockState state, final ItemStack stack) {
|
||||
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
|
||||
|
|
|
@ -170,8 +170,8 @@ public class TileFusionControlComputer extends TilePowerAcceptor implements IInv
|
|||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
super.updateEntity();
|
||||
public void update() {
|
||||
super.update();
|
||||
// TODO improve this code a lot
|
||||
|
||||
if (this.world.getTotalWorldTime() % 20 == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue