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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
package darkknight.jewelrycraft.block;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import darkknight.jewelrycraft.JewelrycraftMod;
import darkknight.jewelrycraft.tileentity.TileEntityBlockShadow;
import darkknight.jewelrycraft.tileentity.TileEntityCrystal;
import darkknight.jewelrycraft.tileentity.TileEntityDisplayer;
import darkknight.jewelrycraft.tileentity.TileEntityHandPedestal;
import darkknight.jewelrycraft.tileentity.TileEntityJewelrsCraftingTable;
import darkknight.jewelrycraft.tileentity.TileEntityMidasTouch;
import darkknight.jewelrycraft.tileentity.TileEntityMolder;
import darkknight.jewelrycraft.tileentity.TileEntityMoltenMetal;
import darkknight.jewelrycraft.tileentity.TileEntityShadowEye;
import darkknight.jewelrycraft.tileentity.TileEntityShadowHand;
import darkknight.jewelrycraft.tileentity.TileEntitySmelter;
import darkknight.jewelrycraft.util.Variables;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.oredict.OreDictionary;
public class BlockList {
public static Block shadowOre, smelter, molder,
displayer, jewelCraftingTable, shadowBlock,
shadowEye, handPedestal, shadowHand,
midasTouchBlock, crystal;
public static BlockMoltenMetal moltenMetal;
public static Fluid moltenMetalFluid;
public static void preInit(FMLPreInitializationEvent e) {
shadowOre = new BlockJCOre().setHardness(3.0F)
.setResistance(5.0F)
.setStepSound(Block.soundTypePiston)
.setBlockTextureName(Variables.MODID
+ ":oreShadow")
.setBlockName(Variables.MODID
+ ".oreShadow")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
smelter = new BlockSmelter().setHardness(5.0F)
.setResistance(6.0F)
.setStepSound(Block.soundTypePiston)
.setBlockName(Variables.MODID + ".smelter")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
molder = new BlockMolder(Material.rock).setHardness(5.0F)
.setResistance(6.0F)
.setStepSound(Block.soundTypePiston)
.setBlockName(Variables.MODID + ".molder")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
displayer = new BlockDisplayer(Material.iron)
.setHardness(5.0F).setResistance(6.0F)
.setStepSound(Block.soundTypeMetal)
.setBlockName(Variables.MODID
+ ".displayer")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
jewelCraftingTable = new BlockJewelersCraftingTable(
Material.rock).setHardness(3.0F)
.setResistance(5.0F)
.setStepSound(Block.soundTypePiston)
.setBlockName(Variables.MODID
+ ".jewelCraftingTable")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
shadowBlock = new BlockShadow().setHardness(5.0F)
.setResistance(7.0F)
.setStepSound(Block.soundTypeMetal)
.setBlockTextureName(Variables.MODID
+ ":blockShadow")
.setBlockName(Variables.MODID
+ ".blockShadow")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
shadowEye = new BlockShadowEye().setHardness(5.0F)
.setResistance(6.0F)
.setStepSound(Block.soundTypePiston)
.setBlockName(Variables.MODID
+ ".shadowEye")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
handPedestal = new BlockHandPedestal(Material.rock)
.setHardness(5.0F).setResistance(6.0F)
.setStepSound(Block.soundTypePiston)
.setBlockName(Variables.MODID
+ ".handPedestal")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
shadowHand = new BlockShadowHand(Material.rock)
.setStepSound(Block.soundTypePiston)
.setBlockName(Variables.MODID
+ ".shadowHand")
.setCreativeTab(JewelrycraftMod.jewelrycraft)
.setBlockUnbreakable();
midasTouchBlock = new BlockMidasTouch(Material.iron)
.setHardness(3.0F).setResistance(10.0F)
.setStepSound(Block.soundTypeMetal)
.setBlockName(Variables.MODID
+ ".midasTouchBlock");
moltenMetalFluid = new Fluid("metal.molten")
.setLuminosity(15).setDensity(3000)
.setTemperature(2000).setViscosity(6000);
if (!FluidRegistry.registerFluid(moltenMetalFluid))
moltenMetalFluid = FluidRegistry
.getFluid("metal.molten");
moltenMetal = new BlockMoltenMetal(moltenMetalFluid,
Material.lava);
moltenMetalFluid.setBlock(moltenMetal);
crystal = new BlockCrystal().setHardness(2.0F)
.setResistance(5.0F)
.setStepSound(Block.soundTypeGlass)
.setBlockTextureName(Variables.MODID
+ ":blockCrystal")
.setBlockName(Variables.MODID
+ ".blockCrystal")
.setCreativeTab(JewelrycraftMod.jewelrycraft);
GameRegistry.registerBlock(shadowOre, "shadowOre");
GameRegistry.registerBlock(shadowBlock, "shadowBlock");
GameRegistry.registerBlock(smelter, "Smelter");
GameRegistry.registerBlock(molder, "Molder");
GameRegistry.registerBlock(jewelCraftingTable,
"jewelCraftingTable");
GameRegistry.registerBlock(displayer, "Displayer");
GameRegistry.registerBlock(shadowEye, "Shadow Eye");
GameRegistry.registerBlock(handPedestal,
"Stone Bricks Pedestal");
GameRegistry.registerBlock(shadowHand, "Shadow Hand");
GameRegistry.registerBlock(midasTouchBlock,
"Midas Touch Block");
GameRegistry.registerBlock(moltenMetal,
"moltenMetalLiquid");
GameRegistry.registerBlock(crystal, BlockItemCrystal.class,
"crystalBlock");
GameRegistry.registerTileEntity(TileEntitySmelter.class,
Variables.MODID + ":smelter");
GameRegistry.registerTileEntity(TileEntityMolder.class,
Variables.MODID + ":molder");
GameRegistry.registerTileEntity(
TileEntityJewelrsCraftingTable.class,
Variables.MODID + ":table");
GameRegistry.registerTileEntity(TileEntityDisplayer.class,
Variables.MODID + ":displayer");
GameRegistry.registerTileEntity(
TileEntityBlockShadow.class,
Variables.MODID + ":blockShadow");
GameRegistry.registerTileEntity(TileEntityShadowEye.class,
Variables.MODID + ":shadowEye");
GameRegistry.registerTileEntity(
TileEntityHandPedestal.class,
Variables.MODID + ":handPedestal");
GameRegistry.registerTileEntity(TileEntityShadowHand.class,
Variables.MODID + ":shadowHand");
GameRegistry.registerTileEntity(TileEntityMidasTouch.class,
Variables.MODID + ":midsaTouch");
GameRegistry.registerTileEntity(TileEntityCrystal.class,
Variables.MODID + ":crystalBlock");
GameRegistry.registerTileEntity(
TileEntityMoltenMetal.class,
Variables.MODID + ":moltenMetalTE");
OreDictionary.registerOre("oreShadow",
new ItemStack(BlockList.shadowOre));
}
}
|