Advertisement
HalestormXV

Untitled

Sep 1st, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. @Override
  2. public IBlockState getStateFromMeta(int meta)
  3. {
  4.     boolean blockIsActive = (meta & 7) > 2;
  5.    
  6.  
  7.     EnumFacing facing = EnumFacing.getFront(meta);
  8.     if(facing.getAxis() == EnumFacing.Axis.Y)
  9.         facing = EnumFacing.NORTH;
  10.  
  11.     return this.getDefaultState().withProperty(FACING, facing).withProperty(BURNING, blockIsActive);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement