diff --git a/src/main/java/org/spongepowered/api/tag/ArtTypeTags.java b/src/main/java/org/spongepowered/api/tag/ArtTypeTags.java new file mode 100644 index 0000000000..68d3d61e78 --- /dev/null +++ b/src/main/java/org/spongepowered/api/tag/ArtTypeTags.java @@ -0,0 +1,48 @@ +/* + * This file is part of SpongeAPI, licensed under the MIT License (MIT). + * + * Copyright (c) SpongePowered + * Copyright (c) contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package org.spongepowered.api.tag; + +import org.spongepowered.api.ResourceKey; +import org.spongepowered.api.data.type.ArtType; +import org.spongepowered.api.registry.RegistryScope; +import org.spongepowered.api.registry.RegistryScopes; +import org.spongepowered.api.registry.RegistryTypes; + +/** + * + */ +@SuppressWarnings("unused") +@RegistryScopes(scopes = RegistryScope.GAME) +public final class ArtTypeTags { + + public static final Tag PLACEABLE = ArtTypeTags.key(ResourceKey.minecraft("placeable")); + + private ArtTypeTags() { + } + + private static Tag key(final ResourceKey key) { + return Tag.of(RegistryTypes.ART_TYPE, key); + } +} diff --git a/src/main/java/org/spongepowered/api/tag/BannerPatternShapeTags.java b/src/main/java/org/spongepowered/api/tag/BannerPatternShapeTags.java new file mode 100644 index 0000000000..f4904ca39c --- /dev/null +++ b/src/main/java/org/spongepowered/api/tag/BannerPatternShapeTags.java @@ -0,0 +1,68 @@ +/* + * This file is part of SpongeAPI, licensed under the MIT License (MIT). + * + * Copyright (c) SpongePowered + * Copyright (c) contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package org.spongepowered.api.tag; + +import org.spongepowered.api.ResourceKey; +import org.spongepowered.api.data.type.BannerPatternShape; +import org.spongepowered.api.registry.RegistryScope; +import org.spongepowered.api.registry.RegistryScopes; +import org.spongepowered.api.registry.RegistryTypes; + +/** + * + */ +@SuppressWarnings("unused") +@RegistryScopes(scopes = RegistryScope.GAME) +public final class BannerPatternShapeTags { + + public static final Tag NO_ITEM_REQUIRED = BannerPatternShapeTags.key(ResourceKey.minecraft("no_item_required")); + + public static final Tag PATTERN_ITEM_BORDURE_INDENTED = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/bordure_indented")); + + public static final Tag PATTERN_ITEM_CREEPER = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/creeper")); + + public static final Tag PATTERN_ITEM_FIELD_MASONED = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/field_masoned")); + + public static final Tag PATTERN_ITEM_FLOW = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/flow")); + + public static final Tag PATTERN_ITEM_FLOWER = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/flower")); + + public static final Tag PATTERN_ITEM_GLOBE = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/globe")); + + public static final Tag PATTERN_ITEM_GUSTER = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/guster")); + + public static final Tag PATTERN_ITEM_MOJANG = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/mojang")); + + public static final Tag PATTERN_ITEM_PIGLIN = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/piglin")); + + public static final Tag PATTERN_ITEM_SKULL = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/skull")); + + private BannerPatternShapeTags() { + } + + private static Tag key(final ResourceKey key) { + return Tag.of(RegistryTypes.BANNER_PATTERN_SHAPE, key); + } +} diff --git a/src/main/java/org/spongepowered/api/tag/CatTypeTags.java b/src/main/java/org/spongepowered/api/tag/CatTypeTags.java new file mode 100644 index 0000000000..d3b0da157a --- /dev/null +++ b/src/main/java/org/spongepowered/api/tag/CatTypeTags.java @@ -0,0 +1,50 @@ +/* + * This file is part of SpongeAPI, licensed under the MIT License (MIT). + * + * Copyright (c) SpongePowered + * Copyright (c) contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package org.spongepowered.api.tag; + +import org.spongepowered.api.ResourceKey; +import org.spongepowered.api.data.type.CatType; +import org.spongepowered.api.registry.RegistryScope; +import org.spongepowered.api.registry.RegistryScopes; +import org.spongepowered.api.registry.RegistryTypes; + +/** + * + */ +@SuppressWarnings("unused") +@RegistryScopes(scopes = RegistryScope.GAME) +public final class CatTypeTags { + + public static final Tag DEFAULT_SPAWNS = CatTypeTags.key(ResourceKey.minecraft("default_spawns")); + + public static final Tag FULL_MOON_SPAWNS = CatTypeTags.key(ResourceKey.minecraft("full_moon_spawns")); + + private CatTypeTags() { + } + + private static Tag key(final ResourceKey key) { + return Tag.of(RegistryTypes.CAT_TYPE, key); + } +} diff --git a/src/main/java/org/spongepowered/api/tag/StructureTags.java b/src/main/java/org/spongepowered/api/tag/StructureTags.java new file mode 100644 index 0000000000..e031e76813 --- /dev/null +++ b/src/main/java/org/spongepowered/api/tag/StructureTags.java @@ -0,0 +1,72 @@ +/* + * This file is part of SpongeAPI, licensed under the MIT License (MIT). + * + * Copyright (c) SpongePowered + * Copyright (c) contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package org.spongepowered.api.tag; + +import org.spongepowered.api.ResourceKey; +import org.spongepowered.api.registry.RegistryScope; +import org.spongepowered.api.registry.RegistryScopes; +import org.spongepowered.api.registry.RegistryTypes; +import org.spongepowered.api.world.generation.structure.Structure; + +/** + * + */ +@SuppressWarnings("unused") +@RegistryScopes(scopes = RegistryScope.GAME) +public final class StructureTags { + + public static final Tag CATS_SPAWN_AS_BLACK = StructureTags.key(ResourceKey.minecraft("cats_spawn_as_black")); + + public static final Tag CATS_SPAWN_IN = StructureTags.key(ResourceKey.minecraft("cats_spawn_in")); + + public static final Tag DOLPHIN_LOCATED = StructureTags.key(ResourceKey.minecraft("dolphin_located")); + + public static final Tag EYE_OF_ENDER_LOCATED = StructureTags.key(ResourceKey.minecraft("eye_of_ender_located")); + + public static final Tag MINESHAFT = StructureTags.key(ResourceKey.minecraft("mineshaft")); + + public static final Tag OCEAN_RUIN = StructureTags.key(ResourceKey.minecraft("ocean_ruin")); + + public static final Tag ON_OCEAN_EXPLORER_MAPS = StructureTags.key(ResourceKey.minecraft("on_ocean_explorer_maps")); + + public static final Tag ON_TREASURE_MAPS = StructureTags.key(ResourceKey.minecraft("on_treasure_maps")); + + public static final Tag ON_TRIAL_CHAMBERS_MAPS = StructureTags.key(ResourceKey.minecraft("on_trial_chambers_maps")); + + public static final Tag ON_WOODLAND_EXPLORER_MAPS = StructureTags.key(ResourceKey.minecraft("on_woodland_explorer_maps")); + + public static final Tag RUINED_PORTAL = StructureTags.key(ResourceKey.minecraft("ruined_portal")); + + public static final Tag SHIPWRECK = StructureTags.key(ResourceKey.minecraft("shipwreck")); + + public static final Tag VILLAGE = StructureTags.key(ResourceKey.minecraft("village")); + + private StructureTags() { + } + + private static Tag key(final ResourceKey key) { + return Tag.of(RegistryTypes.STRUCTURE, key); + } +}