Added straw charge item.
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
package dev.micle.totemofreviving.item;
|
||||
|
||||
import dev.micle.totemofreviving.TotemOfReviving;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.Rarity;
|
||||
|
||||
public class StrawChargeItem extends Item {
|
||||
private static final String NAME = "straw_charge";
|
||||
|
||||
public StrawChargeItem() {
|
||||
super(new Properties().tab(TotemOfReviving.ITEM_GROUP).stacksTo(64).rarity(Rarity.UNCOMMON));
|
||||
}
|
||||
|
||||
public static String getName() {
|
||||
return NAME;
|
||||
}
|
||||
}
|
@ -1,12 +1,13 @@
|
||||
package dev.micle.totemofreviving.setup;
|
||||
|
||||
import dev.micle.totemofreviving.item.StrawChargeItem;
|
||||
import dev.micle.totemofreviving.item.StrawTotemItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.fml.RegistryObject;
|
||||
|
||||
public class ModItems {
|
||||
public static RegistryObject<Item> STRAW_TOTEM = Registration.ITEMS.register(StrawTotemItem.getName(), StrawTotemItem::new);
|
||||
//public static RegistryObject<Item> STRAW_CHARGE = Registration.ITEMS.register();
|
||||
public static RegistryObject<Item> STRAW_CHARGE = Registration.ITEMS.register(StrawChargeItem.getName(), StrawChargeItem::new);
|
||||
|
||||
public static void register() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user