mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +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
@@ -37,6 +37,7 @@ public class BlockBounding extends Block {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState().withProperty(BlockStateBounding.advancedProperty, meta > 0);
|
||||
}
|
||||
@@ -93,6 +94,7 @@ public class BlockBounding extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
try {
|
||||
@@ -105,6 +107,7 @@ public class BlockBounding extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public float getPlayerRelativeBlockHardness(IBlockState state, @Nonnull EntityPlayer player, @Nonnull World world,
|
||||
@Nonnull BlockPos pos) {
|
||||
try {
|
||||
@@ -129,16 +132,19 @@ public class BlockBounding extends Block {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.INVISIBLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user