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..790787baa1 --- /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 DefaultedTag PLACEABLE = ArtTypeTags.key(ResourceKey.minecraft("placeable")); + + private ArtTypeTags() { + } + + private static DefaultedTag key(final ResourceKey key) { + return DefaultedTag.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..e4510896d5 --- /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 DefaultedTag NO_ITEM_REQUIRED = BannerPatternShapeTags.key(ResourceKey.minecraft("no_item_required")); + + public static final DefaultedTag PATTERN_ITEM_BORDURE_INDENTED = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/bordure_indented")); + + public static final DefaultedTag PATTERN_ITEM_CREEPER = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/creeper")); + + public static final DefaultedTag PATTERN_ITEM_FIELD_MASONED = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/field_masoned")); + + public static final DefaultedTag PATTERN_ITEM_FLOW = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/flow")); + + public static final DefaultedTag PATTERN_ITEM_FLOWER = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/flower")); + + public static final DefaultedTag PATTERN_ITEM_GLOBE = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/globe")); + + public static final DefaultedTag PATTERN_ITEM_GUSTER = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/guster")); + + public static final DefaultedTag PATTERN_ITEM_MOJANG = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/mojang")); + + public static final DefaultedTag PATTERN_ITEM_PIGLIN = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/piglin")); + + public static final DefaultedTag PATTERN_ITEM_SKULL = BannerPatternShapeTags.key(ResourceKey.minecraft("pattern_item/skull")); + + private BannerPatternShapeTags() { + } + + private static DefaultedTag key(final ResourceKey key) { + return DefaultedTag.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..fb7d43b0e6 --- /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 DefaultedTag DEFAULT_SPAWNS = CatTypeTags.key(ResourceKey.minecraft("default_spawns")); + + public static final DefaultedTag FULL_MOON_SPAWNS = CatTypeTags.key(ResourceKey.minecraft("full_moon_spawns")); + + private CatTypeTags() { + } + + private static DefaultedTag key(final ResourceKey key) { + return DefaultedTag.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..e1a14960f0 --- /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 DefaultedTag CATS_SPAWN_AS_BLACK = StructureTags.key(ResourceKey.minecraft("cats_spawn_as_black")); + + public static final DefaultedTag CATS_SPAWN_IN = StructureTags.key(ResourceKey.minecraft("cats_spawn_in")); + + public static final DefaultedTag DOLPHIN_LOCATED = StructureTags.key(ResourceKey.minecraft("dolphin_located")); + + public static final DefaultedTag EYE_OF_ENDER_LOCATED = StructureTags.key(ResourceKey.minecraft("eye_of_ender_located")); + + public static final DefaultedTag MINESHAFT = StructureTags.key(ResourceKey.minecraft("mineshaft")); + + public static final DefaultedTag OCEAN_RUIN = StructureTags.key(ResourceKey.minecraft("ocean_ruin")); + + public static final DefaultedTag ON_OCEAN_EXPLORER_MAPS = StructureTags.key(ResourceKey.minecraft("on_ocean_explorer_maps")); + + public static final DefaultedTag ON_TREASURE_MAPS = StructureTags.key(ResourceKey.minecraft("on_treasure_maps")); + + public static final DefaultedTag ON_TRIAL_CHAMBERS_MAPS = StructureTags.key(ResourceKey.minecraft("on_trial_chambers_maps")); + + public static final DefaultedTag ON_WOODLAND_EXPLORER_MAPS = StructureTags.key(ResourceKey.minecraft("on_woodland_explorer_maps")); + + public static final DefaultedTag RUINED_PORTAL = StructureTags.key(ResourceKey.minecraft("ruined_portal")); + + public static final DefaultedTag SHIPWRECK = StructureTags.key(ResourceKey.minecraft("shipwreck")); + + public static final DefaultedTag VILLAGE = StructureTags.key(ResourceKey.minecraft("village")); + + private StructureTags() { + } + + private static DefaultedTag key(final ResourceKey key) { + return DefaultedTag.of(RegistryTypes.STRUCTURE, key); + } +}