Created
April 29, 2017 14:50
-
-
Save dazsim/427bbe52d60c19f20f6853eadfc06d45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.immersiveminds.beimcraft.block; | |
import com.immersiveminds.beimcraft.BeimCraft; | |
import com.immersiveminds.beimcraft.api.BlockConfig; | |
import com.immersiveminds.beimcraft.tile.TileBlock; | |
import com.immersiveminds.beimcraft.tile.TilePitchedUninsulated; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.tileentity.TileEntity; | |
import net.minecraft.world.World; | |
public class ConstructionBlockCeiling extends ConstructionBlock { | |
public ConstructionBlockCeiling(String unlocalizedName, Material material) | |
{ | |
super(material); | |
this.setBlockName(unlocalizedName); | |
this.setBlockTextureName(BeimCraft.MODID + ":" + unlocalizedName); | |
//TODO: set Custom Creative Tab | |
this.setCreativeTab(BeimCraft.tabBlocks); | |
this.setHardness(2.0F); | |
this.setResistance(2.0F); | |
this.setLightLevel(0.0F); | |
this.setHarvestLevel("pickaxe", 3); | |
this.setStepSound(soundTypeStone); | |
} | |
@Override | |
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) { | |
// TODO Auto-generated method stub | |
//return null; | |
BlockConfig bc = BeimCraft.getBlockConfig(this.getUnlocalizedName().substring(5)); | |
return new TilePitchedUninsulated(bc.insulated,bc.sustainable,false,bc.insulation,bc.sustainability,0,bc.cost); | |
} | |
@Override | |
public int getRenderType() | |
{ | |
return -1; | |
} | |
@Override | |
public boolean isOpaqueCube() | |
{ | |
return false; | |
} | |
public boolean renderAsNormalBlock() | |
{ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment