diff --git a/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ComponentValidationEvents.java b/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ComponentValidationEvents.java index c248652..9ec17b1 100644 --- a/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ComponentValidationEvents.java +++ b/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ComponentValidationEvents.java @@ -16,9 +16,12 @@ import net.minecraft.core.component.DataComponentMap; import net.minecraft.resources.Identifier; import net.minecraft.util.Unit; +/** + * Events for component validation across all objects that implement Cowponents. + */ public class ComponentValidationEvents { /** - * An event used to validate components alongside other components. + * An event used to validate components alongside other components when applying a new {@link net.minecraft.core.component.DataComponentPatch}. *
* Returning a DataResult#error within this event will roll back any components to what they were previously. */ @@ -27,9 +30,9 @@ public class ComponentValidationEvents { @FunctionalInterface public interface ValidateComponentsCallback { /** - * An event used to validate components alongside other components. + * An event used to validate components alongside other components when applying a new {@link net.minecraft.core.component.DataComponentPatch}. *
- * Returning a DataResult#error within this event will roll back any components to what they were previously. + * Returning a DataResult#error within this callback will roll back any components to what they were previously. * * @param components The data component map to validate. * @return A data result. diff --git a/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ItemStackComponentValidationEvents.java b/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ItemStackComponentValidationEvents.java index 731c080..d31bc9d 100644 --- a/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ItemStackComponentValidationEvents.java +++ b/core/xplat/src/main/java/lgbt/greenhouse/cowponents/api/v1/event/ItemStackComponentValidationEvents.java @@ -13,9 +13,12 @@ import dev.yumi.mc.core.api.YumiEvents; import lgbt.greenhouse.cowponents.impl.util.ComponentValidationUtils; import net.minecraft.resources.Identifier; +/** + * Events for validating an {@link net.minecraft.world.item.ItemStack}'s components upon change. + */ public class ItemStackComponentValidationEvents { /** - * An event used to validate components alongside other components specifically in an item stack context. + * An event used to validate components alongside other components when applying a new {@link net.minecraft.core.component.DataComponentPatch} to an item stack. *
* Returning a DataResult#error within this event will roll back any components to what they were previously. */