Started rewrite.

This commit is contained in:
2022-01-09 19:27:13 +00:00
parent 06f28a4c94
commit c91add1e80

View File

@ -1,18 +1,19 @@
package dev.micle.totemofreviving.setup;
import dev.micle.totemofreviving.items.RevivingChargeItem;
import dev.micle.totemofreviving.items.StrawChargeItem;
import dev.micle.totemofreviving.items.StrawTotemItem;
import dev.micle.totemofreviving.items.TotemOfRevivingItem;
import dev.micle.totemofreviving.config.Config;
import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
public class ModItems {
public static final RegistryObject<Item> TOTEM_OF_REVIVING = Registration.ITEMS.register("totem_of_reviving", TotemOfRevivingItem::new);
public static final RegistryObject<Item> REVIVING_CHARGE = Registration.ITEMS.register("reviving_charge", RevivingChargeItem::new);
public static final RegistryObject<Item> STRAW_TOTEM = Registration.ITEMS.register("straw_totem", StrawTotemItem::new);
public static final RegistryObject<Item> STRAW_CHARGE = Registration.ITEMS.register("straw_charge", StrawChargeItem::new);
import java.util.HashMap;
static void register() {
}
public class ModItems {
public static final RegistryObject<Item> STRAW_TOTEM = Registration.ITEMS.register("straw_totem", );
ModItems() {
HashMap<String, Config.Server.TotemConfig> configs = Config.Server.TOTEM_CONFIGS;
if (configs.get("Straw Totem").IS_ENABLED.get()) {
STRAW_TOTEM = Registration.ITEMS.register("straw_totem", );
}
}
}