Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int getMetaFromState(IBlockState state) {
- EnumFacing facing = (EnumFacing) state.getValue(FACING);
- return facing.index();
- }
- @Override
- public IBlockState getStateFromMeta(int meta) {
- EnumFacing facing = EnumFacing.values()[meta];
- return this.getDefaultState().withProperty(FACING, facing);
- }
Advertisement
Add Comment
Please, Sign In to add comment