Minecraft JSON UI¶
文档版本:1.21.50.25
架构¶
minecraft_json_ui:
{
string "namespace" : opt
object "<any object property>" : opt
{
array "controls" : opt
{
object "<any array element>" : opt
{
object "<any object property>" : opt
{
}
}
}
controls "controls"
array "modifications" : opt
{
object "<any array element>" : opt
{
string "control_name" : opt
string "array_name" : opt
string "operation" : opt
bindings "where"
bindings "target"
string "target_control" : opt
bindings "value"
array "value" : opt
{
object "<any array element>" : opt
{
object "<any object property>" : opt
{
}
}
}
value "value"
}
}
allow_clipping "allow_clipping"
allow_debug_missing_texture "allow_debug_missing_texture"
allow_scroll_even_when_content_fits "allow_scroll_even_when_content_fits"
alpha "alpha"
always_handle_pointer "always_handle_pointer"
always_handle_scrolling "always_handle_scrolling"
always_listen_to_input "always_listen_to_input"
always_rotate "always_rotate"
anchor_from "anchor_from"
anchor_to "anchor_to"
animations "anims"
background_control "background_control"
background_hover_control "background_hover_control"
backup_font_type "backup_font_type"
bilinear "bilinear"
bindings "bindings"
button_mappings "button_mappings"
cache_screen "cache_screen"
checked_control "checked_control"
checked_hover_control "checked_hover_control"
checked_locked_control "checked_locked_control"
checked_locked_hover_control "checked_locked_hover_control"
clip_direction "clip_direction"
clip_pixel_perfect "clip_pixelperfect"
clips_children "clips_children"
close_on_player_hurt "close_on_player_hurt"
collection_index "collection_index"
collection_name "collection_name"
color "color"
consume_hover_events "consume_hover_events"
contained "contained"
control_name "control_name"
default_control "default_control"
default_focus_precedence "default_focus_precedence"
disable_anim_fast_forward "disable_anim_fast_forward"
draggable "draggable"
dropdown_area "dropdown_area"
dropdown_content_control "dropdown_content_control"
dropdown_name "dropdown_name"
enable_directional_toggling "enable_directional_toggling"
enable_profanity_filter "enable_profanity_filter"
enabled_newline "enabled_newline"
enabled "enabled"
factory "factory"
fill "fill"
focus_change_down "focus_change_down"
focus_change_left "focus_change_left"
focus_change_right "focus_change_right"
focus_change_up "focus_change_up"
focus_container "focus_container"
focus_enabled "focus_enabled"
focus_identifier "focus_identifier"
focus_magnet_enabled "focus_magnet_enabled"
focus_navigation_mode_down "focus_navigation_mode_down"
focus_navigation_mode_left "focus_navigation_mode_left"
focus_navigation_mode_right "focus_navigation_mode_right"
focus_navigation_mode_up "focus_navigation_mode_up"
focus_wrap_enabled "focus_wrap_enabled"
font_scale_factor "font_scale_factor"
font_size "font_size"
font_type "font_type"
force_render_below "force_render_below"
force_texture_reload "force_texture_reload"
grid_dimension_binding "grid_dimension_binding"
grid_dimensions "grid_dimensions"
grid_item_template "grid_item_template"
grid_position "grid_position"
grid_rescaling_type "grid_rescaling_type"
handle_deselect "handle_deselect"
handle_select "handle_select"
hide_hyphen "hide_hyphen"
alpha "hover_alpha"
color "hover_color"
hover_control "hover_control"
hover_enabled "hover_enabled"
ignored "ignored"
images "images"
indent_control "indent_control"
inherit_max_sibling_height "inherit_max_sibling_height"
inherit_max_sibling_width "inherit_max_sibling_width"
is_modal "is_modal"
is_showing_menu "is_showing_menu"
jump_to_bottom_on_update "jump_to_bottom_on_update"
keep_ratio "keep_ratio"
layer "layer"
localize "localize"
alpha "locked_alpha"
color "locked_color"
locked_control "locked_control"
low_frequency_rendering "low_frequency_rendering"
max_length "max_length"
max_size "max_size"
maximum_grid_items "maximum_grid_items"
min_size "min_size"
modal "modal"
offset "offset"
orientation "orientation"
place_holder_control "place_holder_control"
alpha "pressed_alpha"
color "pressed_color"
pressed_control "pressed_control"
prevent_touch_input "prevent_touch_input"
color "primary_color"
progress_control "progress_control"
progress_hover_control "progress_hover_control"
propagate_alpha "propagate_alpha"
property_bag "property_bag"
radio_toggle_group "radio_toggle_group"
render_game_behind "render_game_behind"
render_only_when_topmost "render_only_when_topmost"
renderer "renderer"
reset_event "reset_event"
reset_on_focus_lost "reset_on_focus_lost"
rotate_speed "rotate_speed"
screen_draws_last "screen_draws_last"
screen_not_flushable "screen_not_flushable"
scroll_box_and_track_panel "scroll_box_and_track_panel"
scroll_content "scroll_content"
scroll_speed "scroll_speed"
scroll_view_port "scroll_view_port"
scrollbar_box "scrollbar_box"
scrollbar_touch_button "scrollbar_touch_button"
scrollbar_track_button "scrollbar_track_button"
scrollbar_track "scrollbar_track"
send_telemetry "send_telemetry"
shadow "shadow"
should_steal_mouse "should_steal_mouse"
size "size"
slider_box_control "slider_box_control"
slider_collection_name "slider_collection_name"
slider_deselected_button "slider_deselected_button"
slider_direction "slider_direction"
slider_name "slider_name"
slider_select_on_hover "slider_select_on_hover"
slider_selected_button "slider_selected_button"
slider_small_decrease_button "slider_small_decrease_button"
slider_small_increase_button "slider_small_increase_button"
slider_steps "slider_steps"
slider_track_button "slider_track_button"
sound_name "sound_name"
sound_pitch "sound_pitch"
sound_volume "sound_volume"
text_alignment "text_alignment"
text_box_name "text_box_name"
text_control "text_control"
text_edit_box_grid_collection_name "text_edit_box_grid_collection_name"
text_labels "text_labels"
text_type "text_type"
text "text"
texture_file_system "texture_file_system"
texture "texture"
tiled "tiled"
toggle_default_state "toggle_default_state"
toggle_grid_collection_name "toggle_grid_collection_name"
toggle_group_default_selected "toggle_group_default_selected"
toggle_group_forced_index "toggle_group_forced_index"
toggle_name "toggle_name"
toggle_off_button "toggle_off_button"
toggle_on_button "toggle_on_button"
touch_mode "touch_mode"
tts_control_header "tts_control_header"
tts_control_type_order_priority "tts_control_type_order_priority"
tts_ignore_count "tts_ignore_count"
tts_ignore_subsections "tts_ignore_subsections"
tts_index_priority "tts_index_priority"
tts_inherit_siblings "tts_inherit_siblings"
tts_name "tts_name"
tts_override_control_value "tts_override_control_value"
tts_section_header "tts_section_header"
tts_toggle_off "tts_toggle_off"
tts_toggle_on "tts_toggle_on"
tts_value_changed "tts_value_changed"
tts_value_order_priority "tts_value_order_priority"
tts_section_container "ttsSectionContainer"
type "type"
unchecked_control "unchecked_control"
unchecked_hover_control "unchecked_hover_control"
unchecked_locked_control "unchecked_locked_control"
unchecked_locked_hover_control "unchecked_locked_hover_control"
use_anchored_offset "use_anchored_offset"
use_child_anchors "use_child_anchors"
use_last_focus "use_last_focus"
uv_size "uv_size"
uv "uv"
variables "variables"
virtual_keyboard_buffer_control "virtual_keyboard_buffer_control"
visible "visible"
zip_folder "zip_folder"
variable_definition "^\$.*"
}
object "<any object property>" : opt
{
animation_type "anim_type"
animation_reset_name "animation_reset_name"
destroy_at_end "destroy_at_end"
disable_anim_fast_forward "disable_anim_fast_forward"
duration "duration"
easing "easing"
end_event "end_event"
fps "fps"
frame_count "frame_count"
frame_step "frame_step"
from "from"
initial_uv "initial_uv"
next "next"
play_event "play_event"
propagate_alpha "propagate_alpha"
reversible "reversible"
scale_from_starting_alpha "scale_from_starting_alpha"
to "to"
uv "uv"
uv_size "uv_size"
variable_definition "^\$.*"
}
object "<any object property>" : opt
{
string "type" : opt
control_ids "control_ids"
control_name "control_name"
variable_definition "^\$.*"
}
}
namespace
:string
<any object property>
:object- An element is a control that can be added to a screen. It can be a button, a label, an image, etc.
<any object property>
controls
:array- The controls that are contained within this element.
controls
<any array element>
:object
<any array element>
<any object property>
:object
<any object property>
controls
:item_ref- The controls that are contained within this element.
modifications
:array- Modifications to the element.
modifications
<any array element>
:object
<any array element>
control_name
:string
array_name
:string
operation
:string
where
:bindings
bindings:
array
{
object "<any array element>" : opt
{
string "binding_collection_name"
string "binding_collection_prefix"
string "binding_condition" : opt
binding_condition "binding_condition"
string "binding_name"
string "binding_name_override"
string "binding_type" : opt
variable "binding_type"
boolean "ignored"
boolean "resolve_sibling_scope"
string "source_control_name"
string "source_property_name"
string "target_property_name"
}
}
<any array element>
:object
<any array element>
binding_collection_name
:string- The name of the collection that the binding is in.
binding_collection_prefix
:string- The prefix of the collection that the binding is in.
binding_condition
:string- The condition that must be met for the binding to be applied.
binding_condition
:item_ref- The condition that must be met for the binding to be applied.
binding_name
:string- The name of the binding. This is used to reference the binding in the element's properties.
binding_name_override
:string- The name of the binding. This is used to reference the binding in the element's properties.
binding_type
:string- The type of the binding.
binding_type
:variable- The type of the binding.
ignored
:boolean- If true, the binding will be ignored.
resolve_sibling_scope
:boolean- If true, the binding will resolve sibling scope.
source_control_name
:string- The name of the control that the binding is in.
source_property_name
:string- The name of the property that the binding is in.
target_property_name
:string- The name of the property that the binding is in.
target
:bindings
target_control
:string
value
:bindings
value
:array- The controls to add.
value
<any array element>
:object
<any array element>
<any object property>
:object
<any object property>
value
:item_ref- The controls to add.
allow_clipping
:allow_clipping
allow_debug_missing_texture
:allow_debug_missing_texture
allow_scroll_even_when_content_fits
:allow_scroll_even_when_content_fits
alpha
:alpha
always_handle_pointer
:always_handle_pointer
always_handle_scrolling
:always_handle_scrolling
always_listen_to_input
:always_listen_to_input
always_rotate
:always_rotate
anchor_from
:anchor_from
anchor_to
:anchor_to
anims
:animations
<any array element>
:item_ref
background_control
:background_control
background_hover_control
:background_hover_control
backup_font_type
:backup_font_type
bilinear
:bilinear
bindings
:bindings
button_mappings:
array
{
object "<any array element>" : opt
{
['string', 'boolean'] "<any object property>" : opt
}
}
<any array element>
:object
<any array element>
<any object property>
:['string', 'boolean']
cache_screen
:cache_screen
checked_control
:checked_control
checked_hover_control
:checked_hover_control
checked_locked_control
:checked_locked_control
checked_locked_hover_control
:checked_locked_hover_control
clip_direction
:clip_direction
clip_pixelperfect
:clip_pixel_perfect
clips_children
:clips_children
close_on_player_hurt
:close_on_player_hurt
collection_index
:collection_index
collection_name
:collection_name
color
:color
0..0
:number- A variable
1..1
:number- A variable
2..2
:number- A variable
consume_hover_events
:consume_hover_events
contained
:contained
control_name
:control_name
default_control
:default_control
default_focus_precedence
:default_focus_precedence
disable_anim_fast_forward
:disable_anim_fast_forward
draggable
:draggable
dropdown_area
:dropdown_area
vec4:
array
{
string "0..0" : opt
string "0..0" : opt
integer "0..0" : opt
"1..1" : opt
"2..2" : opt
"3..3" : opt
}
0..0
:string- A variable
0..0
:string- A variable
0..0
:integer- A variable
1..1
- A variable
2..2
- A variable
3..3
- A variable
dropdown_content_control
:dropdown_content_control
dropdown_name
:dropdown_name
enable_directional_toggling
:enable_directional_toggling
enable_profanity_filter
:enable_profanity_filter
enabled_newline
:enabled_newline
enabled
:enabled
factory
:factory
factory:
{
control_ids "control_ids"
string "control_name"
array "factory_variables" : opt
{
string "<any array element>" : opt
}
string "factory_variables" : opt
string "name" : opt
variable_definition "^\$.*"
}
control_ids
:control_ids
<any object property>
:string
control_name
:string- The name of the control that will be created by the factory.
factory_variables
:array- The variables that will be used by the factory.
factory_variables
<any array element>
:string
factory_variables
:string- The variables that will be used by the factory.
name
:string- The name of the factory.
^\$.*
:variable_definition
variables
- A variable is a reference to a value that can be used in the UI.
fill
:fill
focus_change_down
:focus_change_down
focus_change_left
:focus_change_left
focus_change_right
:focus_change_right
focus_change_up
:focus_change_up
focus_container
:focus_container
focus_enabled
:focus_enabled
focus_identifier
:focus_identifier
focus_magnet_enabled
:focus_magnet_enabled
focus_wrap_enabled
:focus_wrap_enabled
font_scale_factor
:font_scale_factor
font_size
:font_size
font_type
:font_type
force_render_below
:force_render_below
force_texture_reload
:force_texture_reload
grid_dimension_binding
:grid_dimension_binding
grid_dimensions
:grid_dimensions
0..0
:string- A variable
1..1
:string- A variable
grid_item_template
:grid_item_template
grid_position
:grid_position
grid_rescaling_type
:grid_rescaling_type
handle_deselect
:handle_deselect
handle_select
:handle_select
hide_hyphen
:hide_hyphen
hover_alpha
:alpha
hover_color
:color
hover_control
:hover_control
hover_enabled
:hover_enabled
ignored
:ignored
images
:images
<any array element>
:item_ref
indent_control
:indent_control
inherit_max_sibling_height
:inherit_max_sibling_height
inherit_max_sibling_width
:inherit_max_sibling_width
is_modal
:is_modal
jump_to_bottom_on_update
:jump_to_bottom_on_update
keep_ratio
:keep_ratio
layer
:layer
localize
:localize
locked_alpha
:alpha
locked_color
:color
locked_control
:locked_control
low_frequency_rendering
:low_frequency_rendering
max_length
:max_length
max_size
:max_size
0..0
:string- A size coordinate.
1..1
:string- A size coordinate.
maximum_grid_items
:maximum_grid_items
min_size
:min_size
modal
:modal
offset
:offset
orientation
:orientation
place_holder_control
:place_holder_control
pressed_alpha
:alpha
pressed_color
:color
pressed_control
:pressed_control
prevent_touch_input
:prevent_touch_input
primary_color
:color
progress_control
:progress_control
progress_hover_control
:progress_hover_control
propagate_alpha
:propagate_alpha
property_bag
:property_bag
radio_toggle_group
:radio_toggle_group
render_game_behind
:render_game_behind
render_only_when_topmost
:render_only_when_topmost
renderer
:renderer
reset_event
:reset_event
reset_on_focus_lost
:reset_on_focus_lost
rotate_speed
:rotate_speed
screen_draws_last
:screen_draws_last
screen_not_flushable
:screen_not_flushable
scroll_box_and_track_panel
:scroll_box_and_track_panel
scroll_content
:scroll_content
scroll_speed
:scroll_speed
scroll_view_port
:scroll_view_port
scrollbar_box
:scrollbar_box
scrollbar_track
:scrollbar_track
send_telemetry
:send_telemetry
shadow
:shadow
should_steal_mouse
:should_steal_mouse
size
:size
slider_box_control
:slider_box_control
slider_collection_name
:slider_collection_name
slider_direction
:slider_direction
slider_name
:slider_name
slider_select_on_hover
:slider_select_on_hover
slider_steps
:slider_steps
sound_name
:sound_name
sound_pitch
:sound_pitch
sound_volume
:sound_volume
text_alignment
:text_alignment
text_box_name
:text_box_name
text_control
:text_control
text_edit_box_grid_collection_name
:text_edit_box_grid_collection_name
text_labels
:text_labels
<any array element>
:string
text_type
:text_type
text
:text
texture_file_system
:texture_file_system
texture
:texture
tiled
:tiled
toggle_default_state
:toggle_default_state
toggle_grid_collection_name
:toggle_grid_collection_name
toggle_group_default_selected
:toggle_group_default_selected
toggle_group_forced_index
:toggle_group_forced_index
toggle_name
:toggle_name
touch_mode
:touch_mode
tts_control_header
:tts_control_header
tts_control_type_order_priority
:tts_control_type_order_priority
tts_ignore_count
:tts_ignore_count
tts_ignore_subsections
:tts_ignore_subsections
tts_index_priority
:tts_index_priority
tts_inherit_siblings
:tts_inherit_siblings
tts_name
:tts_name
tts_override_control_value
:tts_override_control_value
tts_section_header
:tts_section_header
tts_toggle_off
:tts_toggle_off
tts_toggle_on
:tts_toggle_on
tts_value_changed
:tts_value_changed
tts_value_order_priority
:tts_value_order_priority
ttsSectionContainer
:tts_section_container
type
:type
unchecked_control
:unchecked_control
unchecked_hover_control
:unchecked_hover_control
unchecked_locked_control
:unchecked_locked_control
unchecked_locked_hover_control
:unchecked_locked_hover_control
use_anchored_offset
:use_anchored_offset
use_child_anchors
:use_child_anchors
use_last_focus
:use_last_focus
uv_size
:uv_size
uv
:uv
variables
:variables
<any array element>
:object
<any array element>
<any object property>
- A variable is a reference to a value that can be used in the UI.
<any object property>
- A variable is a reference to a value that can be used in the UI.
virtual_keyboard_buffer_control
:virtual_keyboard_buffer_control
visible
:visible
zip_folder
:zip_folder
^\$.*
:variable_definition
<any object property>
:object- An animation is a set of keyframes that can be applied to an element.
<any object property>
anim_type
:animation_type
animation_reset_name
:animation_reset_name
destroy_at_end
:destroy_at_end
disable_anim_fast_forward
:disable_anim_fast_forward
duration
:duration
easing
:easing
end_event
:end_event
fps
:fps
frame_count
:frame_count
frame_step
:frame_step
from
:from
initial_uv
:initial_uv
next
:next
play_event
:play_event
propagate_alpha
:propagate_alpha
reversible
:reversible
scale_from_starting_alpha
:scale_from_starting_alpha
to
:to
uv
:uv
uv_size
:uv_size
^\$.*
:variable_definition
<any object property>
:object
<any object property>
type
:string- The type of the element
control_ids
:control_ids
control_name
:control_name
^\$.*
:variable_definition