-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathSapphireBlocks.java
More file actions
42 lines (31 loc) · 1.19 KB
/
SapphireBlocks.java
File metadata and controls
42 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.sapphire.blocks;
import com.sapphire.items.*
import com.sapphire.main.mainRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.*
import net.minecraftforge.common.util.EnumHelper;
public class SapphireBlocks {
public static void mainRegistry(){
initBlocks();
registerBlocks();
}
public static Block sapphireOre;
public static Block sapphireChest;
public static CreativeTabs sapphireTab = new CreativeTabs("sapphire"){
public Item getTabIconItem(){
return SapphireItems.chestplateSapphire;
}
};
public static void initBlocks(){
sapphireOre = new sapphireOre(Material.rock).setHardness(1.5F).setBlockName("sapphireOre");
sapphireChest = new sapphireChest(0).setBlockName("Sapphire Chest").setCreativeTab(sapphireTab);
}
public static void registerBlocks(){
GameRegistry.registerBlock(sapphireOre, "sapphireOre");
GameRegistry.registerBlock(sapphireChest, "sapphireChest");
}
}