Skip to content

Commit

Permalink
feat!: remove Bukkit enchantments
Browse files Browse the repository at this point in the history
  • Loading branch information
sqyyy-jar committed Apr 28, 2024
1 parent 4aa8da4 commit 9a6a276
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
8 changes: 6 additions & 2 deletions api/src/main/java/io/github/liquip/api/item/Enchantment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

import net.kyori.adventure.key.Keyed;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;

@ApiStatus.Experimental
public interface Enchantment extends Keyed {
default void initialize(@NotNull Item item, int level) {
default int maxLevel() {
return 1;
}

default void apply(@NotNull Item item, @NotNull ItemStack itemStack, int level) {
default boolean canApply(@NotNull ItemStack itemStack) {
return true;
}
}

This file was deleted.

0 comments on commit 9a6a276

Please sign in to comment.