eec52f9055
horizon_client::recipe_book_screen lays out RecipeBookComponent's drawing (background, search EditBox, tab buttons, the filter CycleButton, the page of RecipeButtons with its number and arrows, the alternatives overlay, tooltips) and GhostSlots as vanilla's GUI calls with their poses, and the game paints them. The new harness builds vanilla's widgets for 600 random states (VanillaRecipeBookScreenOracle) and compares every call: 600/600. Ingredients keep their HolderSet order (tags in TagLoader order), which is how the overlay and ghost slots cycle; the book centres over the menu on narrow screens as widthTooNarrow does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
119 lines
2.3 KiB
Rust
119 lines
2.3 KiB
Rust
//! Horizon native client: resources, world streaming, rendering and the
|
|
//! bindings between the validated simulation pieces and the game loop.
|
|
#![forbid(unsafe_code)]
|
|
pub mod advancements;
|
|
pub mod ambience;
|
|
pub mod animate_tick;
|
|
pub mod assets;
|
|
pub mod atlas_sources;
|
|
pub mod attack_strength;
|
|
pub mod attribute_updates;
|
|
pub mod audio;
|
|
pub mod auto_jump;
|
|
pub mod banner;
|
|
pub mod biome;
|
|
pub mod block_entity_anim;
|
|
pub mod block_entity_nbt;
|
|
pub mod block_entity_render;
|
|
pub mod block_transform;
|
|
pub mod blocks;
|
|
pub mod border_render;
|
|
pub mod bossbar;
|
|
pub mod brewing;
|
|
pub mod camera;
|
|
pub mod cauldron;
|
|
pub mod chat;
|
|
pub mod chunk;
|
|
pub mod clock;
|
|
pub mod collisions;
|
|
pub mod command;
|
|
pub mod command_storage;
|
|
pub mod component;
|
|
pub mod containers;
|
|
pub mod control;
|
|
pub mod crafting;
|
|
pub mod creative;
|
|
pub mod data_cmd;
|
|
pub mod datapack;
|
|
pub mod effects;
|
|
pub mod enchant;
|
|
pub mod entities;
|
|
pub mod entity_nbt;
|
|
pub mod environment;
|
|
pub mod fastutil_order;
|
|
pub mod fog;
|
|
pub mod font;
|
|
pub mod gamerules;
|
|
pub mod gfx;
|
|
pub mod gossip;
|
|
pub mod health;
|
|
pub mod hud;
|
|
pub mod hud_layout;
|
|
pub mod hud_overlays;
|
|
pub mod hunger;
|
|
pub mod input;
|
|
pub mod item_data;
|
|
pub mod item_render;
|
|
pub mod items;
|
|
pub mod java_text;
|
|
pub mod key_names;
|
|
pub mod keybinds;
|
|
pub mod keymapping;
|
|
pub mod lan;
|
|
pub mod landing;
|
|
pub mod lang;
|
|
pub mod light;
|
|
pub mod menu;
|
|
pub mod merchant;
|
|
pub mod mesher;
|
|
pub mod mobs;
|
|
pub mod models;
|
|
pub mod motion;
|
|
pub mod mouse;
|
|
pub mod multiplayer;
|
|
pub mod music;
|
|
pub mod nbt_path;
|
|
pub mod net;
|
|
pub mod options_file;
|
|
pub mod options_fixes;
|
|
pub mod options_ui;
|
|
pub mod packs;
|
|
pub mod particles;
|
|
pub mod patrol;
|
|
pub mod pose;
|
|
pub mod projectiles;
|
|
pub mod raid;
|
|
pub mod random_sequences;
|
|
pub mod recipe_book;
|
|
pub mod recipe_book_screen;
|
|
pub mod save;
|
|
pub mod scoreboard;
|
|
pub mod scoreboard_cmd;
|
|
pub mod screen_effects;
|
|
pub mod screen_layout;
|
|
pub mod sculk;
|
|
pub mod server;
|
|
pub mod settings;
|
|
pub mod shadows;
|
|
pub mod signs;
|
|
pub mod snbt;
|
|
pub mod sound_engine;
|
|
pub mod sound_events;
|
|
pub mod sprint;
|
|
pub mod sprites;
|
|
pub mod stations;
|
|
pub mod stopwatches;
|
|
pub mod streaming;
|
|
pub mod structure_blocks;
|
|
pub mod tab_list;
|
|
pub mod testgen;
|
|
pub mod text;
|
|
pub mod title;
|
|
pub mod ui;
|
|
pub mod vanillagen;
|
|
pub mod window;
|
|
pub mod world;
|
|
pub mod worldborder;
|
|
pub mod zip;
|
|
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|