Guest User

half slab class

a guest
Aug 4th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package trolio.morethings.blocks.WhiteGlass;
  2.  
  3. import net.minecraft.block.properties.PropertyBool;
  4. import net.minecraft.block.state.IBlockState;
  5. import net.minecraft.util.BlockRenderLayer;
  6. import net.minecraft.util.math.BlockPos;
  7. import net.minecraft.world.IBlockAccess;
  8. import net.minecraftforge.fml.relauncher.Side;
  9. import net.minecraftforge.fml.relauncher.SideOnly;
  10. import trolio.morethings.blocks.GlassSlab;
  11.  
  12. public class WhiteGlassHalfSlab extends GlassSlab
  13. {
  14. public WhiteGlassHalfSlab (String name)
  15. {
  16. super(name);
  17.  
  18. }
  19.  
  20. @Override
  21. @SideOnly(Side.CLIENT)
  22. public BlockRenderLayer getBlockLayer()
  23. {
  24. return BlockRenderLayer.TRANSLUCENT;
  25. }
  26.  
  27. @Override
  28. public boolean isOpaqueCube (IBlockState state)
  29. {
  30. return true;
  31. }
  32.  
  33.  
  34. @Override
  35. public boolean isDouble()
  36. {
  37. return false;
  38. }
  39. }
Add Comment
Please, Sign In to add comment