| 1 | package net.minecraft.util.datafix.fixes;
|
| 2 |
|
| 3 | import com.mojang.datafixers.DSL.TypeReference;
|
| 4 |
|
| 5 | public class References {
|
| 6 | public static final TypeReference LEVEL = reference("level");
|
| 7 | public static final TypeReference LIGHTWEIGHT_LEVEL = reference("lightweight_level");
|
| 8 | public static final TypeReference PLAYER = reference("player");
|
| 9 | public static final TypeReference CHUNK = reference("chunk");
|
| 10 | public static final TypeReference HOTBAR = reference("hotbar");
|
| 11 | public static final TypeReference OPTIONS = reference("options");
|
| 12 | public static final TypeReference STRUCTURE = reference("structure");
|
| 13 | public static final TypeReference STATS = reference("stats");
|
| 14 | public static final TypeReference SAVED_DATA_COMMAND_STORAGE = reference("saved_data/command_storage");
|
| 15 | public static final TypeReference SAVED_DATA_CUSTOM_BOSS_EVENTS = reference("saved_data/custom_boss_events");
|
| 16 | public static final TypeReference SAVED_DATA_ENDER_DRAGON_FIGHT = reference("saved_data/ender_dragon_fight");
|
| 17 | public static final TypeReference SAVED_DATA_GAME_RULES = reference("saved_data/game_rules");
|
| 18 | public static final TypeReference SAVED_DATA_TICKETS = reference("saved_data/tickets");
|
| 19 | public static final TypeReference SAVED_DATA_MAP_DATA = reference("saved_data/map_data");
|
| 20 | public static final TypeReference SAVED_DATA_MAP_INDEX = reference("saved_data/idcounts");
|
| 21 | public static final TypeReference SAVED_DATA_RAIDS = reference("saved_data/raids");
|
| 22 | public static final TypeReference SAVED_DATA_RANDOM_SEQUENCES = reference("saved_data/random_sequences");
|
| 23 | public static final TypeReference SAVED_DATA_SCHEDULED_EVENTS = reference("saved_data/scheduled_events");
|
| 24 | public static final TypeReference SAVED_DATA_SCOREBOARD = reference("saved_data/scoreboard");
|
| 25 | public static final TypeReference SAVED_DATA_STOPWATCHES = reference("saved_data/stopwatches");
|
| 26 | public static final TypeReference SAVED_DATA_STRUCTURE_FEATURE_INDICES = reference("saved_data/structure_feature_indices");
|
| 27 | public static final TypeReference SAVED_DATA_WANDERING_TRADER = reference("saved_data/wandering_trader");
|
| 28 | public static final TypeReference SAVED_DATA_WEATHER = reference("saved_data/weather");
|
| 29 | public static final TypeReference SAVED_DATA_WORLD_BORDER = reference("saved_data/world_border");
|
| 30 | public static final TypeReference SAVED_DATA_WORLD_CLOCKS = reference("saved_data/world_clocks");
|
| 31 | public static final TypeReference SAVED_DATA_WORLD_GEN_SETTINGS = reference("saved_data/world_gen_settings");
|
| 32 | public static final TypeReference ADVANCEMENTS = reference("advancements");
|
| 33 | public static final TypeReference POI_CHUNK = reference("poi_chunk");
|
| 34 | public static final TypeReference ENTITY_CHUNK = reference("entity_chunk");
|
| 35 | public static final TypeReference DEBUG_PROFILE = reference("debug_profile");
|
| 36 | public static final TypeReference BLOCK_ENTITY = reference("block_entity");
|
| 37 | public static final TypeReference ITEM_STACK = reference("item_stack");
|
| 38 | public static final TypeReference BLOCK_STATE = reference("block_state");
|
| 39 | public static final TypeReference FLAT_BLOCK_STATE = reference("flat_block_state");
|
| 40 | public static final TypeReference DATA_COMPONENTS = reference("data_components");
|
| 41 | public static final TypeReference VILLAGER_TRADE = reference("villager_trade");
|
| 42 | public static final TypeReference PARTICLE = reference("particle");
|
| 43 | public static final TypeReference TEXT_COMPONENT = reference("text_component");
|
| 44 | public static final TypeReference ENTITY_EQUIPMENT = reference("entity_equipment");
|
| 45 | public static final TypeReference ENTITY_NAME = reference("entity_name");
|
| 46 | public static final TypeReference ENTITY_TREE = reference("entity_tree");
|
| 47 | public static final TypeReference ENTITY = reference("entity");
|
| 48 | public static final TypeReference BLOCK_NAME = reference("block_name");
|
| 49 | public static final TypeReference ITEM_NAME = reference("item_name");
|
| 50 | public static final TypeReference GAME_EVENT_NAME = reference("game_event_name");
|
| 51 | public static final TypeReference UNTAGGED_SPAWNER = reference("untagged_spawner");
|
| 52 | public static final TypeReference STRUCTURE_FEATURE = reference("structure_feature");
|
| 53 | public static final TypeReference OBJECTIVE = reference("objective");
|
| 54 | public static final TypeReference TEAM = reference("team");
|
| 55 | public static final TypeReference RECIPE = reference("recipe");
|
| 56 | public static final TypeReference BIOME = reference("biome");
|
| 57 | public static final TypeReference MULTI_NOISE_BIOME_SOURCE_PARAMETER_LIST = reference("multi_noise_biome_source_parameter_list");
|
| 58 | public static final TypeReference WORLD_GEN_SETTINGS = reference("world_gen_settings");
|
| 59 |
|
| 60 | public static TypeReference reference(final String id) {
|
| 61 | return new TypeReference() {
|
| 62 | @Override
|
| 63 | public String typeName() {
|
| 64 | return id;
|
| 65 | }
|
| 66 |
|
| 67 | @Override
|
| 68 | public String toString() {
|
| 69 | return "@" + id;
|
| 70 | }
|
| 71 | };
|
| 72 | }
|
| 73 | }
|
| 74 |
|