Function simplify
This commit is contained in:
parent
657fae09d4
commit
c997cf43fc
1 changed files with 10 additions and 6 deletions
|
@ -46,12 +46,12 @@ public class EndItems {
|
|||
private static final List<Item> MOD_ITEMS = Lists.newArrayList();
|
||||
|
||||
// Materials //
|
||||
public final static Item ENDER_DUST = registerItem("ender_dust", new Item(makeSettings()));
|
||||
public final static Item TERMINITE_INGOT = registerItem("terminite_ingot", new Item(makeSettings()));
|
||||
public final static Item AETERNIUM_INGOT = registerItem("aeternium_ingot", new Item(makeSettings()));
|
||||
public final static Item END_LILY_LEAF = registerItem("end_lily_leaf", new Item(makeSettings()));
|
||||
public final static Item END_LILY_LEAF_DRIED = registerItem("end_lily_leaf_dried", new Item(makeSettings()));
|
||||
public final static Item CRYSTAL_SHARDS = registerItem("crystal_shards", new Item(makeSettings()));
|
||||
public final static Item ENDER_DUST = registerItem("ender_dust");
|
||||
public final static Item TERMINITE_INGOT = registerItem("terminite_ingot");
|
||||
public final static Item AETERNIUM_INGOT = registerItem("aeternium_ingot");
|
||||
public final static Item END_LILY_LEAF = registerItem("end_lily_leaf");
|
||||
public final static Item END_LILY_LEAF_DRIED = registerItem("end_lily_leaf_dried");
|
||||
public final static Item CRYSTAL_SHARDS = registerItem("crystal_shards");
|
||||
|
||||
// Armor //
|
||||
public static final Item TERMINITE_HELMET = registerItem("terminite_helmet", new ArmorItem(EndArmorMaterial.TERMINITE, EquipmentSlot.HEAD, makeSettings()));
|
||||
|
@ -91,6 +91,10 @@ public class EndItems {
|
|||
// Other //
|
||||
public static final Item ETERNAL_CRYSTAL = registerItem("eternal_crystal", new EternalCrystal());
|
||||
|
||||
protected static Item registerItem(String name) {
|
||||
return registerItem(BetterEnd.makeID(name), new Item(makeSettings()));
|
||||
}
|
||||
|
||||
protected static Item registerItem(String name, Item item) {
|
||||
return registerItem(BetterEnd.makeID(name), item);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue