First update pass (1/3) - ~1400 -> 82 errors
This is first update pass, which is mainly import reorganization, name fixes, etc... Although some parts of second were done where changes aren't important. Errors: ~1400 -> 82.
This commit is contained in:
@@ -20,19 +20,21 @@ package appeng.facade;
|
||||
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.BlockRenderLayer;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.EnumWorldBlockLayer;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
@@ -170,7 +172,7 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
}
|
||||
else
|
||||
{
|
||||
if( blk.canRenderInLayer( EnumWorldBlockLayer.TRANSLUCENT ) )
|
||||
if( blk.canRenderInLayer( BlockRenderLayer.TRANSLUCENT ) )
|
||||
{
|
||||
instance.renderForPass( 1 );
|
||||
}
|
||||
@@ -178,7 +180,7 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
|
||||
try
|
||||
{
|
||||
final int color = ib.getColorFromItemStack( randomItem, 0 );
|
||||
final int color = Minecraft.getMinecraft().getItemColors().getColorFromItemstack( randomItem, 0 );
|
||||
}
|
||||
catch( final Throwable ignored )
|
||||
{
|
||||
@@ -374,7 +376,7 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
|
||||
try
|
||||
{
|
||||
final int color = ib.getColorFromItemStack( randomItem, 0 );
|
||||
final int color = Minecraft.getMinecraft().getItemColors().getColorFromItemstack( randomItem, 0 );
|
||||
instance.setInvColor( color );
|
||||
}
|
||||
catch( final Throwable error )
|
||||
@@ -457,7 +459,7 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
final ItemStack is = this.getTexture();
|
||||
final Block blk = Block.getBlockFromItem( is.getItem() );
|
||||
|
||||
return !blk.isOpaqueCube();
|
||||
return !blk.isOpaqueCube(blk.getDefaultState());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user