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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
package jp.plusplus.fbs.item;
import cpw.mods.fml.common.registry.GameRegistry;
import jp.plusplus.fbs.FBS;
import jp.plusplus.fbs.alchemy.*;
import jp.plusplus.fbs.block.BlockCore;
import jp.plusplus.fbs.item.enchant.EnchantmentCleverness;
import jp.plusplus.fbs.item.enchant.EnchantmentSanityProtect;
import jp.plusplus.fbs.item.enchant.EnchantmentWealth;
import jp.plusplus.fbs.spirit.ItemSwordSpirit;
import jp.plusplus.fbs.storage.ItemMealFragment;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemSeeds;
import net.minecraftforge.common.util.EnumHelper;
/**
* Createdby pluslus_Fon 2015/06/05.
*/
public class ItemCore {
public static ItemArmor.ArmorMaterial materialMonocleWood;
public static ItemArmor.ArmorMaterial materialMonocle;
public static ItemArmor.ArmorMaterial materialMonocleGold;
public static ItemArmor.ArmorMaterial materialInifinity;
public static int eIdSanity;
public static int eIdCleverness;
public static int eIdWealth;
public static Enchantment enchantmentSanity;
public static Enchantment enchantmentCleverness;
public static Enchantment enchantmentWealth;
public static Item gem;
public static Item seedLavender;
public static Item lavender;
public static Item seedRedLily;
public static Item redLily;
public static Item redLilyDirty;
public static Item stick;
public static Item butterfly;
public static Item instantMana;
public static Item membership;
public static Item enchantScroll;
public static Item mpCoin;
public static Item potionBless;
public static Item cookieFortune;
public static Item monocleWood;
public static Item monocle;
public static Item monocleGold;
public static Item cloak;
public static Item infinityHelm;
public static Item infinityArmor;
public static Item infinityLegs;
public static Item infinityBoots;
public static Item luckyDagger;
public static Item bucketMana;
public static Item bookmark;
public static Item net;
public static Item shovel;
public static Item foldingFan;
public static Item tableware;
public static Item potionOblivion;
public static Item potionSan;
public static Item stoneInactive;
public static Item stoneActive;
public static Item stoneActiveMale;
public static Item stoneActiveFemale;
public static Item spiritSword;
public static Item staffHead1;
public static Item staffHead2;
public static Item staffHead3;
public static Item staffHead4;
public static Item staffHead5;
public static Item staff1_1;
public static Item staff1_2;
public static Item staff1_3;
public static Item staff1_4;
public static Item staff1_5;
public static Item staff2_1;
public static Item staff2_2;
public static Item staff2_3;
public static Item staff2_4;
public static Item staff2_5;
public static Item charm;
public static ItemBookNoDecoded bookNoDecoded;
public static ItemOldBook bookOld;
public static ItemBookSorcery bookSorcery;
public static ItemBookBroken bookBroken;
public static ItemBookWhite bookWhite;
public static Item clayWet;
public static Item clayGlow;
public static Item basket;
public static Item alchemyMaterial;
public static Item alchemyIntermediateMaterial;
public static Item alchemyMaterialEatable;
public static Item alchemyPotion;
public static Item alchemyRecipe;
public static Item herbUnknown;
public static Item seedsUnknown;
public static Item fruitsUnknown;
public static Item flowerUnknown;
public static Item grassUnknown;
public static Item mushroomUnknown;
public static Item mealFragment;
public static Item potMagic;
public static void Init(){
materialMonocleWood=EnumHelper.addArmorMaterial("MonocleWood", 1, new int[]{0,0,0,0}, 0);
materialMonocle=EnumHelper.addArmorMaterial("Monocle", 5, new int[]{0,0,0,0}, 0);
materialMonocleGold=EnumHelper.addArmorMaterial("MonocleGold", 3, new int[]{0,0,0,0}, 0);
materialInifinity=EnumHelper.addArmorMaterial("Infinity", 60, new int[]{3,8,6,3}, 0);
enchantmentSanity=new EnchantmentSanityProtect(eIdSanity, 8);
enchantmentCleverness=new EnchantmentCleverness(eIdCleverness, 2);
enchantmentWealth=new EnchantmentWealth(eIdWealth, 2);
gem=new ItemGem();
GameRegistry.registerItem(gem, "gem");
seedLavender=new ItemSeeds(BlockCore.cropLavender, Blocks.farmland).setCreativeTab(FBS.tab).setUnlocalizedName("fbs.seedLavender").setTextureName(FBS.MODID+":seedLavender");
lavender=new ItemLavender();
seedRedLily=new ItemSeedRedLily();
redLily=new ItemBase().setCreativeTab(FBS.tab).setUnlocalizedName("redLily").setTextureName("redLily");
redLilyDirty=new ItemBase().setCreativeTab(FBS.tab).setUnlocalizedName("redLilyDirty").setTextureName("redLilyDirty");
GameRegistry.registerItem(seedLavender, "seedLavender");
GameRegistry.registerItem(lavender, "lavender");
GameRegistry.registerItem(seedRedLily, "seedRedLily");
GameRegistry.registerItem(redLily, "redLily");
GameRegistry.registerItem(redLilyDirty, "redLilyDirty");
stick=new ItemBase().setUnlocalizedName("stick").setTextureName("stick").setFull3D();
butterfly=new ItemButterfly();
instantMana=new ItemBase().setUnlocalizedName("instantMana").setTextureName("instantMana");
membership=new ItemBase().setUnlocalizedName("membership").setTextureName("membership");
enchantScroll=new ItemEnchantScroll();
mpCoin=new ItemMPCoin();
potionBless=new ItemBase().setUnlocalizedName("potionBless").setTextureName("potionBless");
cookieFortune=new ItemFortuneCookie();
GameRegistry.registerItem(stick, "stick");
GameRegistry.registerItem(butterfly, "butterfly");
GameRegistry.registerItem(instantMana, "instantMana");
GameRegistry.registerItem(membership, "membership");
GameRegistry.registerItem(enchantScroll, "enchantScroll");
GameRegistry.registerItem(mpCoin, "mpCoin");
GameRegistry.registerItem(potionBless, "potionBless");
GameRegistry.registerItem(cookieFortune, "cookieFortune");
monocleWood=new ItemMonocle(materialMonocleWood).setUnlocalizedName("fbs.monocleWood").setTextureName(FBS.MODID+":monocleWood");
monocle=new ItemMonocle(materialMonocle).setUnlocalizedName("fbs.monocle").setTextureName(FBS.MODID+":monocle");
monocleGold=new ItemMonocle(materialMonocleGold).setUnlocalizedName("fbs.monocleGold").setTextureName(FBS.MODID+":monocleGold");
cloak=new ItemCloak(materialMonocle);
infinityHelm=new ItemArmorInfinity(materialInifinity, 0).setUnlocalizedName("fbs.infinityHelm").setTextureName(FBS.MODID+":infinityHelm");
infinityArmor=new ItemArmorInfinity(materialInifinity, 1).setUnlocalizedName("fbs.infinityArmor").setTextureName(FBS.MODID+":infinityArmor");
infinityLegs=new ItemArmorInfinity(materialInifinity, 2).setUnlocalizedName("fbs.infinityLegs").setTextureName(FBS.MODID+":infinityLegs");
infinityBoots=new ItemArmorInfinity(materialInifinity, 3).setUnlocalizedName("fbs.infinityBoots").setTextureName(FBS.MODID+":infinityBoots");
luckyDagger=new ItemLuckyDagger();
GameRegistry.registerItem(monocleWood, "monocleWood");
GameRegistry.registerItem(monocle, "monocle");
GameRegistry.registerItem(monocleGold, "monocleGold");
GameRegistry.registerItem(cloak, "cloak");
GameRegistry.registerItem(infinityHelm, "infinityHelm");
GameRegistry.registerItem(infinityArmor, "infinityArmor");
GameRegistry.registerItem(infinityLegs, "infinityLegs");
GameRegistry.registerItem(infinityBoots, "infinityBoots");
GameRegistry.registerItem(luckyDagger, "luckyDagger");
bucketMana=new Item().setCreativeTab(FBS.tab).setTextureName(FBS.MODID+":bucketMana").setUnlocalizedName("fbs.bucketMana").setMaxStackSize(1);
bookmark=new ItemBookmark();
net=new ItemNet();
shovel=new ItemShovel();
foldingFan=new ItemFoldingFan();
tableware=new ItemPlaceable();
GameRegistry.registerItem(bucketMana, "bucketMana");
GameRegistry.registerItem(bookmark, "bookmark");
GameRegistry.registerItem(net, "net");
GameRegistry.registerItem(shovel, "shovel");
GameRegistry.registerItem(foldingFan, "foldingFan");
GameRegistry.registerItem(tableware, "tableware");
potionOblivion=new ItemPotionOblivion();
potionSan=new ItemPotionSanity();
GameRegistry.registerItem(potionOblivion, "potionOblivion");
GameRegistry.registerItem(potionSan, "potionSan");
stoneInactive=new ItemBase().setCreativeTab(FBS.tabSpirit).setUnlocalizedName("stoneInactive").setTextureName("stoneInactive").setMaxStackSize(1);
stoneActive=new ItemStoneSpirit().setUnlocalizedName("stoneActivated").setTextureName("stoneActivated");
stoneActiveMale=new ItemStoneSpirit().setUnlocalizedName("stoneActivatedMale").setTextureName("stoneActivatedMale");
stoneActiveFemale=new ItemStoneSpirit().setUnlocalizedName("stoneActivatedFemale").setTextureName("stoneActivatedFemale");
spiritSword=new ItemSwordSpirit();
GameRegistry.registerItem(stoneInactive, "stoneInactive");
GameRegistry.registerItem(stoneActive, "stoneActive");
GameRegistry.registerItem(stoneActiveMale, "stoneActiveMale");
GameRegistry.registerItem(stoneActiveFemale, "stoneActiveFemale");
GameRegistry.registerItem(spiritSword, "spiritSword");
staffHead1=new ItemBase().setTextureName("staffhead1").setUnlocalizedName("staffHead1");
staffHead2=new ItemBase().setTextureName("staffhead2").setUnlocalizedName("staffHead2");
staffHead3=new ItemBase().setTextureName("staffhead3").setUnlocalizedName("staffHead3");
staffHead4=new ItemBase().setTextureName("staffhead4").setUnlocalizedName("staffHead4");
staffHead5=new ItemBase().setTextureName("staffhead5").setUnlocalizedName("staffHead5");
GameRegistry.registerItem(staffHead1, "staffHead1");
GameRegistry.registerItem(staffHead2, "staffHead2");
GameRegistry.registerItem(staffHead3, "staffHead3");
GameRegistry.registerItem(staffHead4, "staffHead4");
GameRegistry.registerItem(staffHead5, "staffHead5");
staff1_1 =new ItemStaff(1, 1);
staff1_2 =new ItemStaff(1, 2);
staff1_3 =new ItemStaff(1, 3);
staff1_4 =new ItemStaff(1, 4);
staff1_5 =new ItemStaff(1, 5);
GameRegistry.registerItem(staff1_1, "staff1_1");
GameRegistry.registerItem(staff1_2, "staff1_2");
GameRegistry.registerItem(staff1_3, "staff1_3");
GameRegistry.registerItem(staff1_4, "staff1_4");
GameRegistry.registerItem(staff1_5, "staff1_5");
staff2_1 =new ItemStaff(2, 1);
staff2_2 =new ItemStaff(2, 2);
staff2_3 =new ItemStaff(2, 3);
staff2_4 =new ItemStaff(2, 4);
staff2_5 =new ItemStaff(2, 5);
GameRegistry.registerItem(staff2_1, "staff2_1");
GameRegistry.registerItem(staff2_2, "staff2_2");
GameRegistry.registerItem(staff2_3, "staff2_3");
GameRegistry.registerItem(staff2_4, "staff2_4");
GameRegistry.registerItem(staff2_5, "staff2_5");
charm=new ItemCharm();
GameRegistry.registerItem(charm, "charm");
bookWhite=new ItemBookWhite();
bookBroken=new ItemBookBroken();
bookNoDecoded=new ItemBookNoDecoded();
bookOld=new ItemOldBook();
bookSorcery=new ItemBookSorcery();
GameRegistry.registerItem(bookWhite, "bookWhite");
GameRegistry.registerItem(bookBroken, "bookBroken");
GameRegistry.registerItem(bookNoDecoded, "bookNoDecoded");
GameRegistry.registerItem(bookOld, "bookOld");
GameRegistry.registerItem(bookSorcery, "bookSorcery");
clayWet=new ItemBase().setUnlocalizedName("clayWet").setTextureName("clayWet").setCreativeTab(FBS.tabPottery);
clayGlow=new ItemBase().setUnlocalizedName("clayGlow").setTextureName("clayGlow").setCreativeTab(FBS.tabPottery);
GameRegistry.registerItem(clayWet, "clayWet");
GameRegistry.registerItem(clayGlow, "clayGlow");
basket=new ItemBasket();
alchemyRecipe=new ItemRecipeBook();
GameRegistry.registerItem(basket, "basket");
GameRegistry.registerItem(alchemyRecipe, "alchemyRecipe");
herbUnknown=new ItemBase().setCreativeTab(FBS.tabAlchemy).setUnlocalizedName("in.herb").setTextureName("herbUnknown");
seedsUnknown=new ItemBase().setCreativeTab(FBS.tabAlchemy).setUnlocalizedName("in.seeds").setTextureName("seedsUnknown");
flowerUnknown=new ItemBase().setCreativeTab(FBS.tabAlchemy).setUnlocalizedName("in.flower").setTextureName("flowerUnknown");
fruitsUnknown=new ItemBase().setCreativeTab(FBS.tabAlchemy).setUnlocalizedName("in.fruits").setTextureName("fruitsUnknown");
grassUnknown=new ItemBase().setCreativeTab(FBS.tabAlchemy).setUnlocalizedName("in.grass").setTextureName("grassUnknown");
mushroomUnknown=new ItemBase().setCreativeTab(FBS.tabAlchemy).setUnlocalizedName("in.mushroom").setTextureName("mushroomUnknown");
GameRegistry.registerItem(herbUnknown, "herbUnknown");
GameRegistry.registerItem(seedsUnknown, "seedsUnknown");
GameRegistry.registerItem(flowerUnknown, "flowerUnknown");
GameRegistry.registerItem(fruitsUnknown, "fruitsUnknown");
GameRegistry.registerItem(grassUnknown, "grassUnknown");
GameRegistry.registerItem(mushroomUnknown, "mushroomUnknown");
alchemyMaterial =new ItemAlchemyMaterial();
alchemyIntermediateMaterial=new ItemAlchemyIntermediateMaterial();
alchemyMaterialEatable=new ItemEatableAlchemyMaterial();
alchemyPotion =new ItemAlchemyPotion();
GameRegistry.registerItem(alchemyMaterial, "materials0");
GameRegistry.registerItem(alchemyIntermediateMaterial, "materials1");
GameRegistry.registerItem(alchemyMaterialEatable, "materials2");
GameRegistry.registerItem(alchemyPotion, "potions0");
mealFragment=new ItemMealFragment();
GameRegistry.registerItem(mealFragment, "mealFragment");
/*
potMagic=new ItemPotteryUsableBase();
GameRegistry.registerItem(potMagic, "potMagic");
*/
}
}
|