-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from XKazzuKX/bleeding
Enchantment api changes
- Loading branch information
Showing
6 changed files
with
98 additions
and
72 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/org/cloudburstmc/api/enchantment/EnchantmentRarity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.cloudburstmc.api.enchantment; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
@Getter | ||
public enum EnchantmentRarity { | ||
COMMON(10), | ||
UNCOMMON(5), | ||
RARE(2), | ||
VERY_RARE(1); | ||
|
||
private final int weight; | ||
} |
19 changes: 9 additions & 10 deletions
19
src/main/java/org/cloudburstmc/api/enchantment/EnchantmentTarget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
package org.cloudburstmc.api.enchantment; | ||
|
||
public enum EnchantmentTarget { | ||
ALL, | ||
ARMOR, | ||
ARMOR_CHEST, | ||
ARMOR_FEET, | ||
ARMOR_HEAD, | ||
ARMOR_TORSO, | ||
ARMOR_LEGS, | ||
ARMOR_FEET, | ||
SWORD, | ||
DIGGER, | ||
FISHING_ROD, | ||
BREAKABLE, | ||
BOW, | ||
WEARABLE, | ||
BREAKABLE, | ||
CROSSBOW, | ||
FISHING_ROD, | ||
TOOL, | ||
TRIDENT, | ||
CROSSBOW | ||
|
||
VANISHABLE, | ||
WEAPON, | ||
WEARABLE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
src/main/java/org/cloudburstmc/api/enchantment/behavior/EnchantmentBehavior.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.