| 1 | package net.minecraft.references;
|
| 2 |
|
| 3 | import net.minecraft.core.registries.Registries;
|
| 4 | import net.minecraft.resources.Identifier;
|
| 5 | import net.minecraft.resources.ResourceKey;
|
| 6 | import net.minecraft.world.level.block.Block;
|
| 7 | import net.minecraft.world.level.block.ColorCollection;
|
| 8 |
|
| 9 | public class BlockIds {
|
| 10 | public static final ResourceKey<Block> ATTACHED_PUMPKIN_STEM = create("attached_pumpkin_stem");
|
| 11 | public static final ResourceKey<Block> ATTACHED_MELON_STEM = create("attached_melon_stem");
|
| 12 | public static final ResourceKey<Block> WATER = create("water");
|
| 13 | public static final ResourceKey<Block> LAVA = create("lava");
|
| 14 | public static final ResourceKey<Block> TALL_SEAGRASS = create("tall_seagrass");
|
| 15 | public static final ResourceKey<Block> PISTON_HEAD = create("piston_head");
|
| 16 | public static final ResourceKey<Block> MOVING_PISTON = create("moving_piston");
|
| 17 | public static final ResourceKey<Block> WALL_TORCH = create("wall_torch");
|
| 18 | public static final ResourceKey<Block> FIRE = create("fire");
|
| 19 | public static final ResourceKey<Block> SOUL_FIRE = create("soul_fire");
|
| 20 | public static final ResourceKey<Block> OAK_WALL_SIGN = create("oak_wall_sign");
|
| 21 | public static final ResourceKey<Block> SPRUCE_WALL_SIGN = create("spruce_wall_sign");
|
| 22 | public static final ResourceKey<Block> BIRCH_WALL_SIGN = create("birch_wall_sign");
|
| 23 | public static final ResourceKey<Block> ACACIA_WALL_SIGN = create("acacia_wall_sign");
|
| 24 | public static final ResourceKey<Block> CHERRY_WALL_SIGN = create("cherry_wall_sign");
|
| 25 | public static final ResourceKey<Block> JUNGLE_WALL_SIGN = create("jungle_wall_sign");
|
| 26 | public static final ResourceKey<Block> DARK_OAK_WALL_SIGN = create("dark_oak_wall_sign");
|
| 27 | public static final ResourceKey<Block> PALE_OAK_WALL_SIGN = create("pale_oak_wall_sign");
|
| 28 | public static final ResourceKey<Block> MANGROVE_WALL_SIGN = create("mangrove_wall_sign");
|
| 29 | public static final ResourceKey<Block> POPLAR_WALL_SIGN = create("poplar_wall_sign");
|
| 30 | public static final ResourceKey<Block> BAMBOO_WALL_SIGN = create("bamboo_wall_sign");
|
| 31 | public static final ResourceKey<Block> OAK_WALL_HANGING_SIGN = create("oak_wall_hanging_sign");
|
| 32 | public static final ResourceKey<Block> SPRUCE_WALL_HANGING_SIGN = create("spruce_wall_hanging_sign");
|
| 33 | public static final ResourceKey<Block> BIRCH_WALL_HANGING_SIGN = create("birch_wall_hanging_sign");
|
| 34 | public static final ResourceKey<Block> ACACIA_WALL_HANGING_SIGN = create("acacia_wall_hanging_sign");
|
| 35 | public static final ResourceKey<Block> CHERRY_WALL_HANGING_SIGN = create("cherry_wall_hanging_sign");
|
| 36 | public static final ResourceKey<Block> JUNGLE_WALL_HANGING_SIGN = create("jungle_wall_hanging_sign");
|
| 37 | public static final ResourceKey<Block> DARK_OAK_WALL_HANGING_SIGN = create("dark_oak_wall_hanging_sign");
|
| 38 | public static final ResourceKey<Block> PALE_OAK_WALL_HANGING_SIGN = create("pale_oak_wall_hanging_sign");
|
| 39 | public static final ResourceKey<Block> MANGROVE_WALL_HANGING_SIGN = create("mangrove_wall_hanging_sign");
|
| 40 | public static final ResourceKey<Block> POPLAR_WALL_HANGING_SIGN = create("poplar_wall_hanging_sign");
|
| 41 | public static final ResourceKey<Block> CRIMSON_WALL_HANGING_SIGN = create("crimson_wall_hanging_sign");
|
| 42 | public static final ResourceKey<Block> WARPED_WALL_HANGING_SIGN = create("warped_wall_hanging_sign");
|
| 43 | public static final ResourceKey<Block> BAMBOO_WALL_HANGING_SIGN = create("bamboo_wall_hanging_sign");
|
| 44 | public static final ResourceKey<Block> REDSTONE_WALL_TORCH = create("redstone_wall_torch");
|
| 45 | public static final ResourceKey<Block> SOUL_WALL_TORCH = create("soul_wall_torch");
|
| 46 | public static final ResourceKey<Block> COPPER_WALL_TORCH = create("copper_wall_torch");
|
| 47 | public static final ResourceKey<Block> NETHER_PORTAL = create("nether_portal");
|
| 48 | public static final ResourceKey<Block> WATER_CAULDRON = create("water_cauldron");
|
| 49 | public static final ResourceKey<Block> LAVA_CAULDRON = create("lava_cauldron");
|
| 50 | public static final ResourceKey<Block> POWDER_SNOW_CAULDRON = create("powder_snow_cauldron");
|
| 51 | public static final ResourceKey<Block> END_PORTAL = create("end_portal");
|
| 52 | public static final ResourceKey<Block> POTTED_TORCHFLOWER = create("potted_torchflower");
|
| 53 | public static final ResourceKey<Block> POTTED_OAK_SAPLING = create("potted_oak_sapling");
|
| 54 | public static final ResourceKey<Block> POTTED_SPRUCE_SAPLING = create("potted_spruce_sapling");
|
| 55 | public static final ResourceKey<Block> POTTED_BIRCH_SAPLING = create("potted_birch_sapling");
|
| 56 | public static final ResourceKey<Block> POTTED_JUNGLE_SAPLING = create("potted_jungle_sapling");
|
| 57 | public static final ResourceKey<Block> POTTED_ACACIA_SAPLING = create("potted_acacia_sapling");
|
| 58 | public static final ResourceKey<Block> POTTED_CHERRY_SAPLING = create("potted_cherry_sapling");
|
| 59 | public static final ResourceKey<Block> POTTED_DARK_OAK_SAPLING = create("potted_dark_oak_sapling");
|
| 60 | public static final ResourceKey<Block> POTTED_PALE_OAK_SAPLING = create("potted_pale_oak_sapling");
|
| 61 | public static final ResourceKey<Block> POTTED_MANGROVE_PROPAGULE = create("potted_mangrove_propagule");
|
| 62 | public static final ResourceKey<Block> POTTED_POPLAR_SAPLING = create("potted_poplar_sapling");
|
| 63 | public static final ResourceKey<Block> POTTED_FERN = create("potted_fern");
|
| 64 | public static final ResourceKey<Block> POTTED_DANDELION = create("potted_dandelion");
|
| 65 | public static final ResourceKey<Block> POTTED_GOLDEN_DANDELION = create("potted_golden_dandelion");
|
| 66 | public static final ResourceKey<Block> POTTED_POPPY = create("potted_poppy");
|
| 67 | public static final ResourceKey<Block> POTTED_BLUE_ORCHID = create("potted_blue_orchid");
|
| 68 | public static final ResourceKey<Block> POTTED_ALLIUM = create("potted_allium");
|
| 69 | public static final ResourceKey<Block> POTTED_AZURE_BLUET = create("potted_azure_bluet");
|
| 70 | public static final ResourceKey<Block> POTTED_RED_TULIP = create("potted_red_tulip");
|
| 71 | public static final ResourceKey<Block> POTTED_ORANGE_TULIP = create("potted_orange_tulip");
|
| 72 | public static final ResourceKey<Block> POTTED_WHITE_TULIP = create("potted_white_tulip");
|
| 73 | public static final ResourceKey<Block> POTTED_PINK_TULIP = create("potted_pink_tulip");
|
| 74 | public static final ResourceKey<Block> POTTED_OXEYE_DAISY = create("potted_oxeye_daisy");
|
| 75 | public static final ResourceKey<Block> POTTED_CORNFLOWER = create("potted_cornflower");
|
| 76 | public static final ResourceKey<Block> POTTED_LILY_OF_THE_VALLEY = create("potted_lily_of_the_valley");
|
| 77 | public static final ResourceKey<Block> POTTED_WITHER_ROSE = create("potted_wither_rose");
|
| 78 | public static final ResourceKey<Block> POTTED_RED_MUSHROOM = create("potted_red_mushroom");
|
| 79 | public static final ResourceKey<Block> POTTED_BROWN_MUSHROOM = create("potted_brown_mushroom");
|
| 80 | public static final ResourceKey<Block> POTTED_DEAD_BUSH = create("potted_dead_bush");
|
| 81 | public static final ResourceKey<Block> POTTED_CACTUS = create("potted_cactus");
|
| 82 | public static final ResourceKey<Block> SKELETON_WALL_SKULL = create("skeleton_wall_skull");
|
| 83 | public static final ResourceKey<Block> WITHER_SKELETON_WALL_SKULL = create("wither_skeleton_wall_skull");
|
| 84 | public static final ResourceKey<Block> ZOMBIE_WALL_HEAD = create("zombie_wall_head");
|
| 85 | public static final ResourceKey<Block> PLAYER_WALL_HEAD = create("player_wall_head");
|
| 86 | public static final ResourceKey<Block> CREEPER_WALL_HEAD = create("creeper_wall_head");
|
| 87 | public static final ResourceKey<Block> DRAGON_WALL_HEAD = create("dragon_wall_head");
|
| 88 | public static final ResourceKey<Block> PIGLIN_WALL_HEAD = create("piglin_wall_head");
|
| 89 | public static final ResourceKey<Block> END_GATEWAY = create("end_gateway");
|
| 90 | public static final ResourceKey<Block> FROSTED_ICE = create("frosted_ice");
|
| 91 | public static final ResourceKey<Block> KELP_PLANT = create("kelp_plant");
|
| 92 | public static final ResourceKey<Block> DEAD_TUBE_CORAL_WALL_FAN = create("dead_tube_coral_wall_fan");
|
| 93 | public static final ResourceKey<Block> DEAD_BRAIN_CORAL_WALL_FAN = create("dead_brain_coral_wall_fan");
|
| 94 | public static final ResourceKey<Block> DEAD_BUBBLE_CORAL_WALL_FAN = create("dead_bubble_coral_wall_fan");
|
| 95 | public static final ResourceKey<Block> DEAD_FIRE_CORAL_WALL_FAN = create("dead_fire_coral_wall_fan");
|
| 96 | public static final ResourceKey<Block> DEAD_HORN_CORAL_WALL_FAN = create("dead_horn_coral_wall_fan");
|
| 97 | public static final ResourceKey<Block> TUBE_CORAL_WALL_FAN = create("tube_coral_wall_fan");
|
| 98 | public static final ResourceKey<Block> BRAIN_CORAL_WALL_FAN = create("brain_coral_wall_fan");
|
| 99 | public static final ResourceKey<Block> BUBBLE_CORAL_WALL_FAN = create("bubble_coral_wall_fan");
|
| 100 | public static final ResourceKey<Block> FIRE_CORAL_WALL_FAN = create("fire_coral_wall_fan");
|
| 101 | public static final ResourceKey<Block> HORN_CORAL_WALL_FAN = create("horn_coral_wall_fan");
|
| 102 | public static final ResourceKey<Block> BAMBOO_SAPLING = create("bamboo_sapling");
|
| 103 | public static final ResourceKey<Block> POTTED_BAMBOO = create("potted_bamboo");
|
| 104 | public static final ResourceKey<Block> VOID_AIR = create("void_air");
|
| 105 | public static final ResourceKey<Block> CAVE_AIR = create("cave_air");
|
| 106 | public static final ResourceKey<Block> BUBBLE_COLUMN = create("bubble_column");
|
| 107 | public static final ResourceKey<Block> WEEPING_VINES_PLANT = create("weeping_vines_plant");
|
| 108 | public static final ResourceKey<Block> TWISTING_VINES_PLANT = create("twisting_vines_plant");
|
| 109 | public static final ResourceKey<Block> CRIMSON_WALL_SIGN = create("crimson_wall_sign");
|
| 110 | public static final ResourceKey<Block> WARPED_WALL_SIGN = create("warped_wall_sign");
|
| 111 | public static final ResourceKey<Block> POTTED_CRIMSON_FUNGUS = create("potted_crimson_fungus");
|
| 112 | public static final ResourceKey<Block> POTTED_WARPED_FUNGUS = create("potted_warped_fungus");
|
| 113 | public static final ResourceKey<Block> POTTED_CRIMSON_ROOTS = create("potted_crimson_roots");
|
| 114 | public static final ResourceKey<Block> POTTED_WARPED_ROOTS = create("potted_warped_roots");
|
| 115 | public static final ResourceKey<Block> CANDLE_CAKE = create("candle_cake");
|
| 116 | public static final ResourceKey<Block> CAVE_VINES_PLANT = create("cave_vines_plant");
|
| 117 | public static final ResourceKey<Block> BIG_DRIPLEAF_STEM = create("big_dripleaf_stem");
|
| 118 | public static final ResourceKey<Block> POTTED_AZALEA_BUSH = create("potted_azalea_bush");
|
| 119 | public static final ResourceKey<Block> POTTED_FLOWERING_AZALEA_BUSH = create("potted_flowering_azalea_bush");
|
| 120 | public static final ResourceKey<Block> POTTED_OPEN_EYEBLOSSOM = create("potted_open_eyeblossom");
|
| 121 | public static final ResourceKey<Block> POTTED_CLOSED_EYEBLOSSOM = create("potted_closed_eyeblossom");
|
| 122 | public static final ColorCollection<ResourceKey<Block>> WALL_BANNER = createSimpleColored("wall_banner");
|
| 123 | public static final ColorCollection<ResourceKey<Block>> DYED_CANDLE_CAKE = createSimpleColored("candle_cake");
|
| 124 |
|
| 125 | private static ResourceKey<Block> create(final String name) {
|
| 126 | return ResourceKey.create(Registries.BLOCK, Identifier.withDefaultNamespace(name));
|
| 127 | }
|
| 128 |
|
| 129 | private static ColorCollection<ResourceKey<Block>> createSimpleColored(final String baseName) {
|
| 130 | return ColorCollection.prefixWithColor(ColorCollection.create(baseName)).map(BlockIds::create);
|
| 131 | }
|
| 132 | }
|
| 133 |
|