21 lines
703 B
Java
21 lines
703 B
Java
package com.jenny.xp2items.items;
|
|
|
|
import net.minecraft.world.item.Item;
|
|
import net.minecraftforge.eventbus.api.IEventBus;
|
|
import net.minecraftforge.registries.DeferredRegister;
|
|
import net.minecraftforge.registries.ForgeRegistries;
|
|
import net.minecraftforge.registries.RegistryObject;
|
|
|
|
import static com.jenny.xp2items.Xp2Items.MODID;
|
|
|
|
public class items {
|
|
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
|
|
|
|
public static final RegistryObject<Item> XP_TALISMAN = ITEMS.register("xp_talisman", () -> new xpTalisman(new Item.Properties().stacksTo(1)));
|
|
|
|
public static void register(IEventBus bus) {
|
|
ITEMS.register(bus);
|
|
}
|
|
|
|
}
|