CJMinecraft

Untitled

Dec 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @Override
  2. public int getMetaFromState(IBlockState state) {
  3. EnumFacing facing = (EnumFacing) state.getValue(FACING);
  4. return facing.index();
  5. }
  6.  
  7. @Override
  8. public IBlockState getStateFromMeta(int meta) {
  9. EnumFacing facing = EnumFacing.values()[meta];
  10. return this.getDefaultState().withProperty(FACING, facing);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment