41 lines
1.6 KiB
Java
41 lines
1.6 KiB
Java
/*
|
|
* MCreator note: This file will be REGENERATED on each build.
|
|
*/
|
|
package net.mcreator.landanaleaf.init;
|
|
|
|
import net.minecraft.world.item.Items;
|
|
import net.minecraft.world.item.Item;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.resources.ResourceKey;
|
|
import net.minecraft.core.registries.Registries;
|
|
|
|
import net.mcreator.landanaleaf.item.LandanaSeedItem;
|
|
import net.mcreator.landanaleaf.item.LandanaBudRawItem;
|
|
import net.mcreator.landanaleaf.item.LandanaBudCuredItem;
|
|
import net.mcreator.landanaleaf.item.JointItem;
|
|
import net.mcreator.landanaleaf.item.FilterItem;
|
|
import net.mcreator.landanaleaf.LandanaleafMod;
|
|
|
|
import java.util.function.Function;
|
|
|
|
public class LandanaleafModItems {
|
|
public static Item LANDANA_SEED;
|
|
public static Item LANDANA_BUD_CURED;
|
|
public static Item LANDANA_BUD_RAW;
|
|
public static Item FILTER;
|
|
public static Item JOINT;
|
|
|
|
public static void load() {
|
|
LANDANA_SEED = register("landana_seed", LandanaSeedItem::new);
|
|
LANDANA_BUD_CURED = register("landana_bud_cured", LandanaBudCuredItem::new);
|
|
LANDANA_BUD_RAW = register("landana_bud_raw", LandanaBudRawItem::new);
|
|
FILTER = register("filter", FilterItem::new);
|
|
JOINT = register("joint", JointItem::new);
|
|
}
|
|
|
|
// Start of user code block custom items
|
|
// End of user code block custom items
|
|
private static <I extends Item> I register(String name, Function<Item.Properties, ? extends I> supplier) {
|
|
return (I) Items.registerItem(ResourceKey.create(Registries.ITEM, ResourceLocation.fromNamespaceAndPath(LandanaleafMod.MODID, name)), (Function<Item.Properties, Item>) supplier);
|
|
}
|
|
} |