Can I have some help?

Started by Billy-Joe on Thu, 08/09/2018 - 23:01
Last seen on 21:04, 16. Sep 2018
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Can I have some help?
Thu, 08/09/2018 - 23:19 (edited)

Hello everyone!
Can someone please help with my code? I get an error and would really appreciate any help I could get.

The code that has the error:

@Override
protected BlockStateContainer createBlockState()
{
return new BlockStateContainer (this, new IProperty[]{FACING});
}

The error:

C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_chair.java:122: error: cannot find symbol
protected BlockStateContainer createBlockState() ;
          ^
symbol:   class BlockStateContainer
location: class BlockChair

Thank you for any help I get or if someone can help fix it but need to see the full code <3

Edited by Billy-Joe on Thu, 08/09/2018 - 23:19
Last seen on 18:11, 23. Sep 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
You have to import the class.
Thu, 08/09/2018 - 23:40

You have to import the class.

Last seen on 21:04, 16. Sep 2018
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hi, may I have a bit more…
Sun, 08/19/2018 - 06:15

Hi, may I have a bit more help? Sorry if It annoys you...
I tested out your Advanced Bounding boxes and It came up with this error:

C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_chair.java:127: error: method does not override or implement a method from a supertype
      @Override
      ^

With code:

@Override
		public void addCollisionBoxToList(IBlockState state, World world, BlockPos pos, AxisAlignedBB mask, List<AxisAlignedBB> list,
				@Nullable Entity entity) {

Please, may I get some help?

Last seen on 22:16, 23. Sep 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
remove this: @Override
Sat, 09/08/2018 - 11:59

remove this: @Override