SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static final PropertyBool TOP = PropertyBool.create("top");
  2.  
  3.     public BlockLivingLamp()
  4.     {
  5.         setDefaultState(blockState.getBaseState().withProperty(TOP, true));
  6.     }
  7.  
  8.     @Override
  9.     protected BlockStateContainer createBlockState()
  10.     {
  11.         return new BlockStateContainer(this, TOP);
  12.     }
  13.  
  14.     @Override
  15.     public int getMetaFromState(IBlockState state)
  16.     {
  17.         return state.getValue(TOP) ? 0 : 1;
  18.     }
  19.  
  20.     @Override
  21.     public IBlockState getStateFromMeta(int meta)
  22.     {
  23.         return getDefaultState().withProperty(TOP, meta == 0);
  24.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top