Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static final PropertyBool TOP = PropertyBool.create("top");
- public BlockLivingLamp()
- {
- setDefaultState(blockState.getBaseState().withProperty(TOP, true));
- }
- @Override
- protected BlockStateContainer createBlockState()
- {
- return new BlockStateContainer(this, TOP);
- }
- @Override
- public int getMetaFromState(IBlockState state)
- {
- return state.getValue(TOP) ? 0 : 1;
- }
- @Override
- public IBlockState getStateFromMeta(int meta)
- {
- return getDefaultState().withProperty(TOP, meta == 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement