Moved Config into setup package.

This commit is contained in:
Micle
2022-11-03 18:47:35 +00:00
parent 80bc4f4d9e
commit 7e66d964c6
8 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
package dev.micle.totemofreviving.item.charge; package dev.micle.totemofreviving.item.charge;
import dev.micle.totemofreviving.TotemOfReviving; import dev.micle.totemofreviving.TotemOfReviving;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import net.minecraft.ChatFormatting; import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TextComponent; import net.minecraft.network.chat.TextComponent;

View File

@ -1,6 +1,6 @@
package dev.micle.totemofreviving.item.totem; package dev.micle.totemofreviving.item.totem;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import dev.micle.totemofreviving.item.charge.DiamondChargeItem; import dev.micle.totemofreviving.item.charge.DiamondChargeItem;
import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Rarity; import net.minecraft.world.item.Rarity;

View File

@ -1,6 +1,6 @@
package dev.micle.totemofreviving.item.totem; package dev.micle.totemofreviving.item.totem;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import dev.micle.totemofreviving.item.charge.IronChargeItem; import dev.micle.totemofreviving.item.charge.IronChargeItem;
import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ItemStack;

View File

@ -1,6 +1,6 @@
package dev.micle.totemofreviving.item.totem; package dev.micle.totemofreviving.item.totem;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import dev.micle.totemofreviving.item.charge.NetheriteChargeItem; import dev.micle.totemofreviving.item.charge.NetheriteChargeItem;
import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Rarity; import net.minecraft.world.item.Rarity;

View File

@ -1,6 +1,6 @@
package dev.micle.totemofreviving.item.totem; package dev.micle.totemofreviving.item.totem;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import dev.micle.totemofreviving.item.charge.StrawChargeItem; import dev.micle.totemofreviving.item.charge.StrawChargeItem;
import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Rarity; import net.minecraft.world.item.Rarity;

View File

@ -1,7 +1,7 @@
package dev.micle.totemofreviving.item.totem; package dev.micle.totemofreviving.item.totem;
import dev.micle.totemofreviving.TotemOfReviving; import dev.micle.totemofreviving.TotemOfReviving;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import dev.micle.totemofreviving.network.ChangeTargetPacket; import dev.micle.totemofreviving.network.ChangeTargetPacket;
import dev.micle.totemofreviving.network.ChargeTotemPacket; import dev.micle.totemofreviving.network.ChargeTotemPacket;
import dev.micle.totemofreviving.network.Network; import dev.micle.totemofreviving.network.Network;

View File

@ -1,6 +1,6 @@
package dev.micle.totemofreviving.proxy; package dev.micle.totemofreviving.proxy;
import dev.micle.totemofreviving.config.Config; import dev.micle.totemofreviving.setup.Config;
import dev.micle.totemofreviving.data.DataGenerators; import dev.micle.totemofreviving.data.DataGenerators;
import dev.micle.totemofreviving.network.Network; import dev.micle.totemofreviving.network.Network;
import dev.micle.totemofreviving.setup.Registration; import dev.micle.totemofreviving.setup.Registration;

View File

@ -1,4 +1,4 @@
package dev.micle.totemofreviving.config; package dev.micle.totemofreviving.setup;
import dev.micle.totemofreviving.item.totem.DiamondTotemItem; import dev.micle.totemofreviving.item.totem.DiamondTotemItem;
import dev.micle.totemofreviving.item.totem.IronTotemItem; import dev.micle.totemofreviving.item.totem.IronTotemItem;
@ -15,15 +15,15 @@ public final class Config {
public static class Server { public static class Server {
private static final ForgeConfigSpec SPEC; private static final ForgeConfigSpec SPEC;
private static final TotemConfig STRAW_TOTEM_CONFIG; private static final TotemConfig STRAW_TOTEM_CONFIG;
private static final TotemConfig IRON_TOTEM_CONFIG; private static final TotemConfig IRON_TOTEM_CONFIG;
private static final TotemConfig DIAMOND_TOTEM_CONFIG; private static final TotemConfig DIAMOND_TOTEM_CONFIG;
private static final TotemConfig NETHERITE_TOTEM_CONFIG; private static final TotemConfig NETHERITE_TOTEM_CONFIG;
static { static {
ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder(); ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder();
builder.comment("WHEN MAKING CHANGES IT IS RECOMMENDED TO NOT BE IN A WORLD.\n" + builder.comment("WHEN MAKING CHANGES IT IS RECOMMENDED TO NOT BE IN A WORLD.\n" +
"CHANGES WILL MOST LIKELY REQUIRE A RESTART FOR EVERYTHING TO WORK PROPERLY."); "CHANGES WILL MOST LIKELY REQUIRE A RESTART FOR EVERYTHING TO WORK PROPERLY.");
STRAW_TOTEM_CONFIG = new TotemConfig(builder, StrawTotemItem.getName(), true, -1, 3, STRAW_TOTEM_CONFIG = new TotemConfig(builder, StrawTotemItem.getName(), true, -1, 3,
@ -34,7 +34,7 @@ public final class Config {
0.5, false, false, 10); 0.5, false, false, 10);
NETHERITE_TOTEM_CONFIG = new TotemConfig(builder, NetheriteTotemItem.getName(), true, 1, 1, NETHERITE_TOTEM_CONFIG = new TotemConfig(builder, NetheriteTotemItem.getName(), true, 1, 1,
1, true, true, 0); 1, true, true, 0);
SPEC = builder.build(); SPEC = builder.build();
} }