Added Ender Ore and Ender Dust
This commit is contained in:
parent
16c5a9131b
commit
1966d89dc7
13 changed files with 94 additions and 7 deletions
|
@ -6,6 +6,7 @@ import com.google.common.collect.Lists;
|
|||
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.item.Items;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
@ -14,9 +15,11 @@ import ru.betterend.BetterEnd;
|
|||
public class ItemRegistry {
|
||||
private static final List<Item> MOD_BLOCKS = Lists.newArrayList();
|
||||
private static final List<Item> MOD_ITEMS = Lists.newArrayList();
|
||||
|
||||
public final static Item ENDER_DUST = registerItem("ender_dust", new Item((new Item.Settings()).group(ItemGroup.MATERIALS)));
|
||||
|
||||
protected static Item registerItem(String name, Item item) {
|
||||
if (item instanceof BlockItem && item != Items.AIR) {
|
||||
if (item != Items.AIR) {
|
||||
Registry.register(Registry.ITEM, new Identifier(BetterEnd.MOD_ID, name), item);
|
||||
if (item instanceof BlockItem)
|
||||
MOD_BLOCKS.add(item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue