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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ public class BlockCardboardBox extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState().withProperty(storageProperty, meta == 1);
|
||||
}
|
||||
@@ -121,6 +122,7 @@ public class BlockCardboardBox extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@@ -74,12 +74,14 @@ public class BlockEnergyCube extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(worldIn, pos);
|
||||
|
||||
@@ -99,6 +101,7 @@ public class BlockEnergyCube extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
if (!world.isRemote) {
|
||||
@@ -168,6 +171,7 @@ public class BlockEnergyCube extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public float getPlayerRelativeBlockHardness(IBlockState state, @Nonnull EntityPlayer player, @Nonnull World world,
|
||||
@Nonnull BlockPos pos) {
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
@@ -254,12 +258,14 @@ public class BlockEnergyCube extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
@@ -322,17 +328,20 @@ public class BlockEnergyCube extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean hasComparatorInputOverride(IBlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int getComparatorInputOverride(IBlockState state, World world, BlockPos pos) {
|
||||
TileEntityEnergyCube tileEntity = (TileEntityEnergyCube) world.getTileEntity(pos);
|
||||
return tileEntity.getRedstoneLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isSideSolid(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, EnumFacing side) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ public class BlockGasTank extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState();
|
||||
}
|
||||
@@ -73,6 +74,7 @@ public class BlockGasTank extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(worldIn, pos);
|
||||
|
||||
@@ -119,6 +121,7 @@ public class BlockGasTank extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
if (!world.isRemote) {
|
||||
@@ -131,6 +134,7 @@ public class BlockGasTank extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public float getPlayerRelativeBlockHardness(IBlockState state, @Nonnull EntityPlayer player, @Nonnull World world,
|
||||
@Nonnull BlockPos pos) {
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
@@ -243,18 +247,21 @@ public class BlockGasTank extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
return TANK_BOUNDS;
|
||||
}
|
||||
@@ -302,11 +309,13 @@ public class BlockGasTank extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean hasComparatorInputOverride(IBlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int getComparatorInputOverride(IBlockState state, World world, BlockPos pos) {
|
||||
TileEntityGasTank tileEntity = (TileEntityGasTank) world.getTileEntity(pos);
|
||||
return tileEntity.getRedstoneLevel();
|
||||
@@ -347,11 +356,13 @@ public class BlockGasTank extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullBlock(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ public class BlockGlowPanel extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
TileEntityGlowPanel tileEntity = getTileEntityGlowPanel(world, pos);
|
||||
return tileEntity != null ? state.withProperty(BlockStateFacing.facingProperty, tileEntity.side) : state;
|
||||
@@ -128,6 +129,7 @@ public class BlockGlowPanel extends Block implements ITileEntityProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block block, BlockPos neighbor) {
|
||||
TileEntityGlowPanel tileEntity = getTileEntityGlowPanel(world, pos);
|
||||
|
||||
@@ -167,6 +169,7 @@ public class BlockGlowPanel extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
TileEntityGlowPanel tileEntity = getTileEntityGlowPanel(world, pos);
|
||||
|
||||
@@ -230,26 +233,31 @@ public class BlockGlowPanel extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isBlockNormalCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullBlock(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -134,6 +134,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
MachineType type = MachineType.get(getMachineBlock(), meta & 0xF);
|
||||
|
||||
@@ -148,6 +149,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(worldIn, pos);
|
||||
|
||||
@@ -505,6 +507,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
@@ -517,6 +520,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
@@ -529,6 +533,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public float getPlayerRelativeBlockHardness(IBlockState state, @Nonnull EntityPlayer player, @Nonnull World world,
|
||||
@Nonnull BlockPos pos) {
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
@@ -569,11 +574,13 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean hasComparatorInputOverride(IBlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int getComparatorInputOverride(IBlockState state, World world, BlockPos pos) {
|
||||
TileEntity tileEntity = world.getTileEntity(pos);
|
||||
|
||||
@@ -689,6 +696,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
if (!world.isRemote) {
|
||||
@@ -826,6 +834,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
MachineType type = MachineType.get(getMachineBlock(), state.getBlock().getMetaFromState(state));
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(world, pos);
|
||||
@@ -855,11 +864,13 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isSideSolid(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, EnumFacing side) {
|
||||
MachineType type = MachineType.get(getMachineBlock(), state.getBlock().getMetaFromState(state));
|
||||
|
||||
@@ -913,6 +924,7 @@ public abstract class BlockMachine extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int getWeakPower(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(world, pos);
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ public class BlockObsidianTNT extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
if (world.getRedstonePowerFromNeighbors(pos) > 0) {
|
||||
@@ -91,6 +92,7 @@ public class BlockObsidianTNT extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ public class BlockOre extends Block {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState().withProperty(BlockStateOre.typeProperty, EnumOreType.values()[meta]);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ public class BlockPlastic extends Block {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState().withProperty(BlockStatePlastic.colorProperty, EnumDyeColor.byDyeDamage(meta));
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ public class BlockPlasticFence extends BlockFence {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return this.getDefaultState().withProperty(colorProperty, EnumDyeColor.byDyeDamage(meta));
|
||||
}
|
||||
|
||||
@@ -136,6 +136,7 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntitySidedPipe tile = getTileEntitySidedPipe(worldIn, pos);
|
||||
if (tile != null) {
|
||||
@@ -147,6 +148,7 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
TransmitterType type = TransmitterType.get(meta);
|
||||
return getDefaultState().withProperty(BlockStateTransmitter.typeProperty, type);
|
||||
@@ -186,6 +188,7 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
TileEntitySidedPipe tile = getTileEntitySidedPipe(world, pos);
|
||||
|
||||
@@ -197,6 +200,7 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void addCollisionBoxToList(IBlockState state, @Nonnull World world, @Nonnull BlockPos pos,
|
||||
@Nonnull AxisAlignedBB entityBox, @Nonnull List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn,
|
||||
boolean b) {
|
||||
@@ -213,11 +217,13 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, @Nonnull World world, @Nonnull BlockPos pos) {
|
||||
return getDefaultForTile(getTileEntitySidedPipe(world, pos)).offset(pos);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public RayTraceResult collisionRayTrace(IBlockState blockState, @Nonnull World world, @Nonnull BlockPos pos,
|
||||
@Nonnull Vec3d start, @Nonnull Vec3d end) {
|
||||
TileEntitySidedPipe tile = getTileEntitySidedPipe(world, pos);
|
||||
@@ -325,6 +331,7 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block block, BlockPos neighbor) {
|
||||
TileEntitySidedPipe tile = getTileEntitySidedPipe(world, pos);
|
||||
if (tile != null) {
|
||||
@@ -358,26 +365,31 @@ public class BlockTransmitter extends Block implements ITileEntityProvider {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isBlockNormalCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullBlock(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -327,6 +327,7 @@ public class ItemAtomicDisassembler extends ItemEnergized {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
|
||||
Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot);
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
GeneratorType type = GeneratorType.get(getGeneratorBlock(), meta & 0xF);
|
||||
|
||||
@@ -116,6 +117,7 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(worldIn, pos);
|
||||
|
||||
@@ -131,6 +133,7 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
if (!world.isRemote) {
|
||||
@@ -214,6 +217,7 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public float getPlayerRelativeBlockHardness(IBlockState state, @Nonnull EntityPlayer player, @Nonnull World world,
|
||||
@Nonnull BlockPos pos) {
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
@@ -459,16 +463,19 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
@@ -488,6 +495,7 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
GeneratorType type = GeneratorType.get(state);
|
||||
|
||||
@@ -591,6 +599,7 @@ public abstract class BlockGenerator extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isSideSolid(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, EnumFacing side) {
|
||||
GeneratorType type = GeneratorType.get(getGeneratorBlock(), state.getBlock().getMetaFromState(state));
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(worldIn, pos);
|
||||
|
||||
@@ -83,6 +84,7 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
ReactorBlockType type = ReactorBlockType.get(getReactorBlock(), meta & 0xF);
|
||||
|
||||
@@ -101,6 +103,7 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock,
|
||||
BlockPos neighborPos) {
|
||||
if (!world.isRemote) {
|
||||
@@ -185,16 +188,19 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
@Deprecated
|
||||
public EnumBlockRenderType getRenderType(IBlockState state) {
|
||||
return EnumBlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
@@ -206,6 +212,7 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean shouldSideBeRendered(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos,
|
||||
EnumFacing side) {
|
||||
@@ -227,6 +234,7 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int getWeakPower(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
|
||||
TileEntity tile = MekanismUtils.getTileEntitySafe(world, pos);
|
||||
|
||||
@@ -238,6 +246,7 @@ public abstract class BlockReactor extends Block implements ITileEntityProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isSideSolid(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, EnumFacing side) {
|
||||
ReactorBlockType type = ReactorBlockType.get(getReactorBlock(), state.getBlock().getMetaFromState(state));
|
||||
|
||||
|
||||
Reference in new issue
Block a user