Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.lemonlake.dontstarvemod;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.client.renderer.texture.IconRegister;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.world.IBlockAccess;
- import net.minecraft.world.World;
- public class BlockFirePit extends Block {
- public BlockFirePit(int par1) {
- super(par1, Material.rock);
- }
- public int getRenderType() {
- return DontStarveMod.rendertypes.get("firepit");
- }
- public TileEntity getBlockEntity() {
- try {
- return (TileEntity) new TileEntityFirePit();
- } catch (Exception exception) {
- throw new RuntimeException(exception);
- }
- }
- public TileEntity createTileEntity(World world, int metadata) {
- return new TileEntityFirePit();
- }
- public boolean isOpaqueCube() {
- return false;
- }
- public boolean renderAsNormalBlock() {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement