Advertisement
Guest User

BlockFirePit.java

a guest
Jul 3rd, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1. package net.lemonlake.dontstarvemod;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.client.renderer.texture.IconRegister;
  6. import net.minecraft.tileentity.TileEntity;
  7. import net.minecraft.world.IBlockAccess;
  8. import net.minecraft.world.World;
  9.  
  10. public class BlockFirePit extends Block {
  11.  
  12.     public BlockFirePit(int par1) {
  13.         super(par1, Material.rock);
  14.     }
  15.  
  16.     public int getRenderType() {
  17.         return DontStarveMod.rendertypes.get("firepit");
  18.     }
  19.  
  20.     public TileEntity getBlockEntity() {
  21.         try {
  22.             return (TileEntity) new TileEntityFirePit();
  23.         } catch (Exception exception) {
  24.             throw new RuntimeException(exception);
  25.         }
  26.     }
  27.  
  28.     public TileEntity createTileEntity(World world, int metadata) {
  29.         return new TileEntityFirePit();
  30.     }
  31.  
  32.     public boolean isOpaqueCube() {
  33.         return false;
  34.     }
  35.  
  36.     public boolean renderAsNormalBlock() {
  37.         return false;
  38.     }
  39.    
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement