Fixed warnings
This commit is contained in:
parent
095390b430
commit
b3002b6f57
14 changed files with 4 additions and 22 deletions
|
@ -82,7 +82,7 @@ public class BlockRubberLeaves extends BlockLeaves {
|
|||
@Override
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
if(!fancyLeaves()){
|
||||
return super.isOpaqueCube(state);
|
||||
return state.isOpaqueCube();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class BlockRubberLeaves extends BlockLeaves {
|
|||
@Override
|
||||
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
|
||||
if(!fancyLeaves()){
|
||||
return super.shouldSideBeRendered(blockState, blockAccess, pos, side);
|
||||
blockState.shouldSideBeRendered(blockAccess, pos, side);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,6 @@ import techreborn.client.gui.slot.elements.SlotType;
|
|||
|
||||
import javax.annotation.Nullable;
|
||||
import java.awt.*;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -112,8 +112,8 @@ public class ModelDynamicCell implements IModel {
|
|||
TextureAtlasSprite fluidSprite = bakedTextureGetter.apply(sprite);
|
||||
if (fluid != 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, SOUTH_Z_FLUID, fluidSprite, EnumFacing.SOUTH, 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, -1));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ package techreborn.command;
|
|||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.command.CommandBase;
|
||||
import net.minecraft.command.CommandException;
|
||||
import net.minecraft.command.ICommandSender;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
|
|
|
@ -33,7 +33,6 @@ import reborncore.api.recipe.RecipeHandler;
|
|||
import techreborn.api.Reference;
|
||||
import techreborn.api.recipe.machines.ScrapboxRecipe;
|
||||
import techreborn.init.ModBlocks;
|
||||
import techreborn.init.ModItems;
|
||||
import techreborn.items.DynamicCell;
|
||||
import techreborn.items.ItemDusts;
|
||||
import techreborn.items.ItemGems;
|
||||
|
|
|
@ -28,7 +28,6 @@ import net.minecraft.block.material.Material;
|
|||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Enchantments;
|
||||
import net.minecraft.item.IItemPropertyGetter;
|
||||
import net.minecraft.item.ItemAxe;
|
||||
|
|
|
@ -31,8 +31,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
|
|||
import reborncore.common.network.INetworkPacket;
|
||||
import techreborn.tiles.storage.TileAdjustableSU;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PacketAesu implements INetworkPacket<PacketAesu> {
|
||||
|
||||
int buttonID;
|
||||
|
|
|
@ -31,8 +31,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
|
|||
import reborncore.common.network.INetworkPacket;
|
||||
import techreborn.tiles.fusionReactor.TileFusionControlComputer;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PacketFusionControlSize implements INetworkPacket<PacketFusionControlSize> {
|
||||
|
||||
int sizeDelta;
|
||||
|
|
|
@ -30,8 +30,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
|
|||
import reborncore.common.network.INetworkPacket;
|
||||
import techreborn.tiles.idsu.TileInterdimensionalSU;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PacketIdsu implements INetworkPacket<PacketIdsu> {
|
||||
|
||||
int buttonID;
|
||||
|
|
|
@ -31,8 +31,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
|
|||
import reborncore.common.network.INetworkPacket;
|
||||
import techreborn.tiles.tier1.TileRollingMachine;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PacketRollingMachineLock implements INetworkPacket<PacketRollingMachineLock> {
|
||||
|
||||
BlockPos machinePos;
|
||||
|
|
|
@ -33,8 +33,6 @@ import reborncore.common.network.ExtendedPacketBuffer;
|
|||
import reborncore.common.network.INetworkPacket;
|
||||
import techreborn.tiles.tier1.TileAutoCraftingTable;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Created by modmuss50 on 20/06/2017.
|
||||
*/
|
||||
|
|
|
@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import reborncore.api.IToolDrop;
|
||||
import reborncore.common.multiblock.MultiblockControllerBase;
|
||||
import reborncore.common.multiblock.MultiblockValidationException;
|
||||
import reborncore.common.multiblock.rectangular.RectangularMultiblockTileEntityBase;
|
||||
import techreborn.blocks.BlockMachineCasing;
|
||||
import techreborn.multiblocks.MultiBlockCasing;
|
||||
|
|
|
@ -32,8 +32,6 @@ import reborncore.api.power.EnumPowerTier;
|
|||
import reborncore.common.powerSystem.TilePowerAcceptor;
|
||||
import techreborn.init.ModBlocks;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by modmuss50 on 25/02/2016.
|
||||
*/
|
||||
|
|
|
@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.Rotation;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import reborncore.api.IToolDrop;
|
||||
import reborncore.api.power.EnumPowerTier;
|
||||
|
|
Loading…
Reference in a new issue