Skip to content

Commit d15129e

Browse files
authored
Make Enchantment a ComponentLike (#2600)
1 parent 201e3a2 commit d15129e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/spongepowered/api/item/enchantment/Enchantment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525
package org.spongepowered.api.item.enchantment;
2626

27+
import net.kyori.adventure.text.ComponentLike;
2728
import org.spongepowered.api.Sponge;
2829
import org.spongepowered.api.data.persistence.DataBuilder;
2930
import org.spongepowered.api.data.persistence.DataSerializable;
@@ -42,7 +43,7 @@
4243
* they will work properly outside of {@link EnchantmentType#minimumLevel()}
4344
* and {@link EnchantmentType#maximumLevel()}.</p>
4445
*/
45-
public interface Enchantment extends DataSerializable {
46+
public interface Enchantment extends DataSerializable, ComponentLike {
4647

4748
/**
4849
* Creates a new {@link Builder} to create an {@link Enchantment}.

0 commit comments

Comments
 (0)