-
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.
Merge branch '1.12.2-latest' into 2.2.0
- Loading branch information
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/main/java/ca/landonjw/gooeylibs2/api/button/EnumFlag.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,27 @@ | ||
package ca.landonjw.gooeylibs2.api.button; | ||
|
||
public enum EnumFlag { | ||
/** | ||
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) | ||
*/ | ||
PIXELMON(0), | ||
ENCHANTS(1), | ||
ATTRIBUTE_MODIFIERS(2), | ||
UNBREAKABLE(4), | ||
CAN_DESTROY(8), | ||
CAN_PLACE_ON(16), | ||
EXTRAS(32), | ||
LEATHER_DYED(64), | ||
ALL(127); | ||
|
||
private final int value; | ||
|
||
EnumFlag(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