diff --git a/src/main/java/gay/sylv/legacy_landscape/data_components/Broken.java b/src/main/java/gay/sylv/legacy_landscape/api/definitions/data_components/Broken.java similarity index 92% rename from src/main/java/gay/sylv/legacy_landscape/data_components/Broken.java rename to src/main/java/gay/sylv/legacy_landscape/api/definitions/data_components/Broken.java index e1b3579..1a9735f 100644 --- a/src/main/java/gay/sylv/legacy_landscape/data_components/Broken.java +++ b/src/main/java/gay/sylv/legacy_landscape/api/definitions/data_components/Broken.java @@ -1,15 +1,17 @@ -package gay.sylv.legacy_landscape.data_components; +package gay.sylv.legacy_landscape.api.definitions.data_components; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import io.netty.buffer.ByteBuf; import net.minecraft.network.codec.ByteBufCodecs; import net.minecraft.network.codec.StreamCodec; +import org.jetbrains.annotations.ApiStatus; /** * A component that stores how many times an item has broken. * @param level the amount of times that something has broken. */ +@ApiStatus.Experimental public record Broken(int level) { public static final Codec CODEC = RecordCodecBuilder.create( instance -> instance.group( diff --git a/src/main/java/gay/sylv/legacy_landscape/data_components/LegacyComponents.java b/src/main/java/gay/sylv/legacy_landscape/data_components/LegacyComponents.java index 5711e38..9cb9707 100644 --- a/src/main/java/gay/sylv/legacy_landscape/data_components/LegacyComponents.java +++ b/src/main/java/gay/sylv/legacy_landscape/data_components/LegacyComponents.java @@ -1,5 +1,6 @@ package gay.sylv.legacy_landscape.data_components; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import net.minecraft.core.component.DataComponentType; import net.minecraft.core.registries.Registries; import net.neoforged.neoforge.registries.DeferredHolder; diff --git a/src/main/java/gay/sylv/legacy_landscape/fluid/LegacyFluids.java b/src/main/java/gay/sylv/legacy_landscape/fluid/LegacyFluids.java index e6d1a01..01f03c2 100644 --- a/src/main/java/gay/sylv/legacy_landscape/fluid/LegacyFluids.java +++ b/src/main/java/gay/sylv/legacy_landscape/fluid/LegacyFluids.java @@ -6,7 +6,7 @@ import gay.sylv.legacy_landscape.api.definitions.effect.MobEffects; import gay.sylv.legacy_landscape.block.LegacyBlocks; import gay.sylv.legacy_landscape.data_attachment.LegacyAttachments; -import gay.sylv.legacy_landscape.data_components.Broken; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import gay.sylv.legacy_landscape.data_components.LegacyComponents; import gay.sylv.legacy_landscape.effect.LegacyEffects; import gay.sylv.legacy_landscape.item.LegacyItems; diff --git a/src/main/java/gay/sylv/legacy_landscape/item/ConditionalText.java b/src/main/java/gay/sylv/legacy_landscape/item/ConditionalText.java index 92983fe..949ccac 100644 --- a/src/main/java/gay/sylv/legacy_landscape/item/ConditionalText.java +++ b/src/main/java/gay/sylv/legacy_landscape/item/ConditionalText.java @@ -1,6 +1,6 @@ package gay.sylv.legacy_landscape.item; -import gay.sylv.legacy_landscape.data_components.Broken; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import net.minecraft.world.item.TooltipFlag; import org.jetbrains.annotations.NotNull; diff --git a/src/main/java/gay/sylv/legacy_landscape/item/JappasWandItem.java b/src/main/java/gay/sylv/legacy_landscape/item/JappasWandItem.java index 159cd5d..e824cd4 100644 --- a/src/main/java/gay/sylv/legacy_landscape/item/JappasWandItem.java +++ b/src/main/java/gay/sylv/legacy_landscape/item/JappasWandItem.java @@ -3,7 +3,7 @@ import gay.sylv.legacy_landscape.CommonConfig; import gay.sylv.legacy_landscape.data_attachment.LegacyAttachments; import gay.sylv.legacy_landscape.data_attachment.LegacyChunkType; -import gay.sylv.legacy_landscape.data_components.Broken; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import gay.sylv.legacy_landscape.data_components.LegacyComponents; import gay.sylv.legacy_landscape.networking.client_bound.LegacyChunkPayload; import gay.sylv.legacy_landscape.util.Constants; diff --git a/src/main/java/gay/sylv/legacy_landscape/item/LegacyItems.java b/src/main/java/gay/sylv/legacy_landscape/item/LegacyItems.java index 1344c36..a77eb07 100644 --- a/src/main/java/gay/sylv/legacy_landscape/item/LegacyItems.java +++ b/src/main/java/gay/sylv/legacy_landscape/item/LegacyItems.java @@ -1,6 +1,6 @@ package gay.sylv.legacy_landscape.item; -import gay.sylv.legacy_landscape.data_components.Broken; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import gay.sylv.legacy_landscape.fluid.LegacyFluids; import net.minecraft.ChatFormatting; import net.minecraft.network.chat.Component; diff --git a/src/main/java/gay/sylv/legacy_landscape/item/TooltipItem.java b/src/main/java/gay/sylv/legacy_landscape/item/TooltipItem.java index e67f6e7..34d5abf 100644 --- a/src/main/java/gay/sylv/legacy_landscape/item/TooltipItem.java +++ b/src/main/java/gay/sylv/legacy_landscape/item/TooltipItem.java @@ -1,6 +1,6 @@ package gay.sylv.legacy_landscape.item; -import gay.sylv.legacy_landscape.data_components.Broken; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import net.minecraft.ChatFormatting; import net.minecraft.core.component.DataComponentType; import net.minecraft.network.chat.Component; diff --git a/src/main/java/gay/sylv/legacy_landscape/mixin/Mixin_MutableComponent.java b/src/main/java/gay/sylv/legacy_landscape/mixin/Mixin_MutableComponent.java index 6927b34..8b5bfca 100644 --- a/src/main/java/gay/sylv/legacy_landscape/mixin/Mixin_MutableComponent.java +++ b/src/main/java/gay/sylv/legacy_landscape/mixin/Mixin_MutableComponent.java @@ -1,6 +1,6 @@ package gay.sylv.legacy_landscape.mixin; -import gay.sylv.legacy_landscape.data_components.Broken; +import gay.sylv.legacy_landscape.api.definitions.data_components.Broken; import gay.sylv.legacy_landscape.item.ConditionalText; import gay.sylv.legacy_landscape.item.TooltipCondition; import net.minecraft.network.chat.MutableComponent;