Skip to content

Commit

Permalink
feat(api): IValidSlotsVisibleEnchantment
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 16, 2022
1 parent 81b8715 commit 1f2e7b9
Showing 1 changed file with 16 additions and 0 deletions.
@@ -0,0 +1,16 @@
package org.auioc.mcmod.arnicalib.api.game.enchantment;

import org.apache.commons.lang3.ArrayUtils;
import net.minecraft.world.entity.EquipmentSlot;

public interface IValidSlotsVisibleEnchantment {

default EquipmentSlot[] getValidSlots() {
return new EquipmentSlot[] {};
};

default boolean isValidSlot(EquipmentSlot slot) {
return ArrayUtils.contains(getValidSlots(), slot);
}

}

0 comments on commit 1f2e7b9

Please sign in to comment.