Code cleanup

This commit is contained in:
Unknown 2018-06-03 10:29:19 +02:00 committed by unknown
parent 2e0a699127
commit 898e986153
5 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ public abstract class BlockAbstractRotatingContainer extends BlockAbstractContai
@Nonnull
@Override
public IBlockState onBlockPlaced(final World worldIn, final BlockPos pos, final EnumFacing facing, final float hitX, final float hitY, final float hitZ, final int meta, final EntityLivingBase entityLiving) {
EnumFacing enumFacing = BlockAbstractBase.getFacingFromEntity(pos, entityLiving);
final EnumFacing enumFacing = BlockAbstractBase.getFacingFromEntity(pos, entityLiving);
return this.getDefaultState().withProperty(BlockProperties.FACING, enumFacing);
}
}

View file

@ -23,7 +23,7 @@ import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BlockLaserMedium extends BlockAbstractContainer {
public static final PropertyInteger LEVEL = PropertyInteger.create("level", 0, 7);
public BlockLaserMedium(final String registryName) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB