Advertisement
totalytaco

crate block class

Jun 21st, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. package net.wowcraft.blocks;
  2.  
  3. import net.minecraft.block.BlockContainer;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.tileentity.TileEntity;
  6. import net.minecraft.world.World;
  7. import net.wowcraft.mod.WowCraft;
  8. import net.wowcraft.tileentity.TileEntityCrate;
  9.  
  10. public class Crate extends BlockContainer {
  11.  
  12. public Crate(Material material) {
  13. super(material);
  14. this.setHardness(1.0f);
  15. this.setResistance(2.0f);
  16. this.setCreativeTab(WowCraft.WoWcraftTab);
  17.  
  18. }
  19. public int getRenderType(){
  20. return -1;
  21. }
  22.  
  23. public boolean isOpaqueCube(){
  24. return false;
  25. }
  26. public boolean renderAsNormalBlock(){
  27. return false;
  28. }
  29. @Override
  30. public TileEntity createNewTileEntity(World var1, int var2) {
  31.  
  32. return new TileEntityCrate();
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement