Added reinforced Glass
This commit is contained in:
parent
0f505c8b6b
commit
087c97780f
2 changed files with 42 additions and 0 deletions
38
src/main/java/techreborn/blocks/BlockReinforcedGlass.java
Normal file
38
src/main/java/techreborn/blocks/BlockReinforcedGlass.java
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.util.EnumFacing;
|
||||||
|
import reborncore.common.BaseBlock;
|
||||||
|
import reborncore.common.blocks.BlockMachineBase;
|
||||||
|
import techreborn.client.TechRebornCreativeTabMisc;
|
||||||
|
|
||||||
|
public class BlockReinforcedGlass extends BaseBlock implements ITexturedBlock {
|
||||||
|
|
||||||
|
public BlockReinforcedGlass(Material materialIn) {
|
||||||
|
super(materialIn);
|
||||||
|
setUnlocalizedName("techreborn.reinforcedglass");
|
||||||
|
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||||
|
setHardness(4.0F);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isOpaqueCube() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final String prefix = "techreborn:blocks/machine/";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int amountOfStates() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextureNameFromState(IBlockState arg0, EnumFacing arg1) {
|
||||||
|
return prefix + "reinforcedglass";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -134,6 +134,7 @@ public class ModBlocks {
|
||||||
public static Block storage;
|
public static Block storage;
|
||||||
public static Block storage2;
|
public static Block storage2;
|
||||||
public static Block machineframe;
|
public static Block machineframe;
|
||||||
|
public static Block reinforcedglass;
|
||||||
|
|
||||||
public static Block rubberLog;
|
public static Block rubberLog;
|
||||||
public static Block rubberLeaves;
|
public static Block rubberLeaves;
|
||||||
|
@ -360,6 +361,9 @@ public class ModBlocks {
|
||||||
|
|
||||||
ironFence = new BlockIronFence();
|
ironFence = new BlockIronFence();
|
||||||
GameRegistry.registerBlock(ironFence, "ironFence");
|
GameRegistry.registerBlock(ironFence, "ironFence");
|
||||||
|
|
||||||
|
reinforcedglass = new BlockReinforcedGlass(Material.glass);
|
||||||
|
GameRegistry.registerBlock(reinforcedglass, "reinforcedglass");
|
||||||
|
|
||||||
registerOreDict();
|
registerOreDict();
|
||||||
Core.logHelper.info("TechReborns Blocks Loaded");
|
Core.logHelper.info("TechReborns Blocks Loaded");
|
||||||
|
|
Loading…
Add table
Reference in a new issue