-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor hide flag enum, add generations flag
- Loading branch information
Showing
5 changed files
with
50 additions
and
36 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
src/main/java/ca/landonjw/gooeylibs2/api/button/EnumFlag.java
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/main/java/ca/landonjw/gooeylibs2/api/button/FlagType.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,31 @@ | ||
package ca.landonjw.gooeylibs2.api.button; | ||
|
||
public enum FlagType | ||
{ | ||
/** | ||
* ENCHANTS only hides tool enchants, as book ones are classified as stored enchantments. | ||
* EXTRAS hides multiple things, according to the minecraft wiki (https://minecraft.fandom.com/wiki/Tutorials/Command_NBT_tags) | ||
*/ | ||
Reforged(0), | ||
Generations(0), | ||
Enchantments(1), | ||
Attribute_Modifiers(2), | ||
Unbreakable(4), | ||
Can_Destroy(8), | ||
Can_Place_On(16), | ||
Extras(32), | ||
Dyed_Leather(64), | ||
All(127); | ||
|
||
private final int value; | ||
|
||
FlagType(int value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public int getValue() | ||
{ | ||
return this.value; | ||
} | ||
} |
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
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