mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Add Deprecated annotation to methods overriding a deprecated method
This commit is contained in:
1 parent
10e741ade5
commit
e3c182eebe
15 files changed
+92
No files matched your search
@@ -207,6 +207,7 @@ public abstract class BlockBasic extends Block {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
BlockStateBasic.BasicBlockType type = BlockStateBasic.BasicBlockType.get(getBasicBlock(), meta & 0xF);
|
||||
|
||||
@@ -221,6 +222,7 @@ public abstract class BlockBasic extends Block {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(worldIn, pos);
|
||||
|
||||
@@ -266,6 +268,7 @@ public abstract class BlockBasic extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock, BlockPos fromPos) {
|
||||
if (!world.isRemote) {
|
||||
TileEntity tileEntity = new Coord4D(pos, world).getTileEntity(world);
|
||||
@@ -524,6 +527,7 @@ public abstract class BlockBasic extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isSideSolid(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, EnumFacing side) {
|
||||
return BasicBlockType.get(state) != BasicBlockType.STRUCTURAL_GLASS;
|
||||
}
|
||||
@@ -536,17 +540,20 @@ public abstract class BlockBasic extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
@@ -757,6 +764,7 @@ public abstract class BlockBasic extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean shouldSideBeRendered(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos,
|
||||
EnumFacing side) {
|
||||
|
||||
Reference in new issue
Block a user