Started rewrite.
This commit is contained in:
@ -1,18 +1,19 @@
|
|||||||
package dev.micle.totemofreviving.setup;
|
package dev.micle.totemofreviving.setup;
|
||||||
|
|
||||||
import dev.micle.totemofreviving.items.RevivingChargeItem;
|
import dev.micle.totemofreviving.config.Config;
|
||||||
import dev.micle.totemofreviving.items.StrawChargeItem;
|
|
||||||
import dev.micle.totemofreviving.items.StrawTotemItem;
|
|
||||||
import dev.micle.totemofreviving.items.TotemOfRevivingItem;
|
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraftforge.fml.RegistryObject;
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
|
||||||
public class ModItems {
|
import java.util.HashMap;
|
||||||
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);
|
|
||||||
|
|
||||||
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", );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user