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