help with rotatable block

Started by thebebist on Wed, 09/19/2018 - 15:59

Topic category: Help with modding (Java Edition)

Last seen on 16:46, 8. Sep 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
help with rotatable block
Wed, 09/19/2018 - 15:59

i tried to make my block rotatable but glade failed and i dont know how to fix the code so it works, help me!

 

C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:290: error: cannot find symbol
            return state.withProperty(FACING, rot.rotate((EnumFacing) state.getValue(FACING)));
                                      ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:290: error: cannot find symbol
            return state.withProperty(FACING, rot.rotate((EnumFacing) state.getValue(FACING)));
                                                                                     ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:294: error: cannot find symbol
            return state.withRotation(mirrorIn.toRotation((EnumFacing) state.getValue(FACING)));
                                                                                      ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:299: error: cannot find symbol
            return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite());
                                                       ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:299: error: cannot find symbol
            return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite());
                       ^
  symbol: method getDefaultState()
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:303: error: cannot find symbol
            return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta));
                                                       ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:303: error: cannot find symbol
            return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta));
                       ^
  symbol: method getDefaultState()
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:307: error: cannot find symbol
            return ((EnumFacing) state.getValue(FACING)).getHorizontalIndex();
                                                ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:310: error: method does not override or implement a method from a supertype
        @Override
        ^
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:312: error: cannot find symbol
            return new BlockStateContainer(this, new IProperty[]{FACING});
                                                                 ^
  symbol:   variable FACING
  location: class TileEntityCustom
C:\Pylo\MCreator180\forge\build\sources\main\java\mod\mcreator\mcreator_meltingforge.java:312: error: incompatible types: TileEntityCustom cannot be converted to Block
            return new BlockStateContainer(this, new IProperty[]{FACING});
                                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
11 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.