-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all missing TagKey constants files (#11661)
- Loading branch information
1 parent
9bc1471
commit cf956ac
Showing
11 changed files
with
2,791 additions
and
1 deletion.
There are no files selected for viewing
120 changes: 120 additions & 0 deletions
120
paper-api-generator/generated/io/papermc/paper/registry/keys/tags/BannerPatternTagKeys.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,120 @@ | ||
package io.papermc.paper.registry.keys.tags; | ||
|
||
import static net.kyori.adventure.key.Key.key; | ||
|
||
import io.papermc.paper.generated.GeneratedFrom; | ||
import io.papermc.paper.registry.RegistryKey; | ||
import io.papermc.paper.registry.tag.TagKey; | ||
import net.kyori.adventure.key.Key; | ||
import org.bukkit.block.banner.PatternType; | ||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jspecify.annotations.NullMarked; | ||
|
||
/** | ||
* Vanilla keys for {@link RegistryKey#BANNER_PATTERN}. | ||
* | ||
* @apiNote The fields provided here are a direct representation of | ||
* what is available from the vanilla game source. They may be | ||
* changed (including removals) on any Minecraft version | ||
* bump, so cross-version compatibility is not provided on the | ||
* same level as it is on most of the other API. | ||
*/ | ||
@SuppressWarnings({ | ||
"unused", | ||
"SpellCheckingInspection" | ||
}) | ||
@GeneratedFrom("1.21.3") | ||
@NullMarked | ||
@ApiStatus.Experimental | ||
public final class BannerPatternTagKeys { | ||
/** | ||
* {@code #minecraft:no_item_required} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> NO_ITEM_REQUIRED = create(key("no_item_required")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/bordure_indented} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_BORDURE_INDENTED = create(key("pattern_item/bordure_indented")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/creeper} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_CREEPER = create(key("pattern_item/creeper")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/field_masoned} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_FIELD_MASONED = create(key("pattern_item/field_masoned")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/flow} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_FLOW = create(key("pattern_item/flow")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/flower} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_FLOWER = create(key("pattern_item/flower")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/globe} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_GLOBE = create(key("pattern_item/globe")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/guster} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_GUSTER = create(key("pattern_item/guster")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/mojang} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_MOJANG = create(key("pattern_item/mojang")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/piglin} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_PIGLIN = create(key("pattern_item/piglin")); | ||
|
||
/** | ||
* {@code #minecraft:pattern_item/skull} | ||
* | ||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions | ||
*/ | ||
public static final TagKey<PatternType> PATTERN_ITEM_SKULL = create(key("pattern_item/skull")); | ||
|
||
private BannerPatternTagKeys() { | ||
} | ||
|
||
/** | ||
* Creates a tag key for {@link PatternType} in the registry {@code minecraft:banner_pattern}. | ||
* | ||
* @param key the tag key's key | ||
* @return a new tag key | ||
*/ | ||
@ApiStatus.Experimental | ||
public static TagKey<PatternType> create(final Key key) { | ||
return TagKey.create(RegistryKey.BANNER_PATTERN, key); | ||
} | ||
} |
Oops, something went wrong.