跳转至

Minecraft JSON UI

文档版本:1.21.0.24

架构

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 "^\$.*"
  }
}
namespacestring
<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>
controlsarray
The controls that are contained within this element.
controls
<any array element>object
<any array element>
<any object property>object
<any object property>
controlsitem_ref
The controls that are contained within this element.
element_reference:
string
element_reference:
string
variable_reference:
string
variable_reference:
string
variable_reference:
string
modificationsarray
Modifications to the element.
modifications
<any array element>object
<any array element>
control_namestring
array_namestring
operationstring
wherebindings
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_namestring
The name of the collection that the binding is in.
string:
string
binding_collection_prefixstring
The prefix of the collection that the binding is in.
binding_conditionstring
The condition that must be met for the binding to be applied.
binding_conditionitem_ref
The condition that must be met for the binding to be applied.
binding_namestring
The name of the binding. This is used to reference the binding in the element's properties.
binding_name_overridestring
The name of the binding. This is used to reference the binding in the element's properties.
binding_typestring
The type of the binding.
binding_typevariable
The type of the binding.
variable:
string
variable:
string
variable:
string
ignoredboolean
If true, the binding will be ignored.
boolean:
boolean
resolve_sibling_scopeboolean
If true, the binding will resolve sibling scope.
source_control_namestring
The name of the control that the binding is in.
source_property_namestring
The name of the property that the binding is in.
target_property_namestring
The name of the property that the binding is in.
targetbindings
target_controlstring
valuebindings
valuearray
The controls to add.
value
<any array element>object
<any array element>
<any object property>object
<any object property>
valueitem_ref
The controls to add.
allow_clippingallow_clipping
allow_debug_missing_textureallow_debug_missing_texture
allow_scroll_even_when_content_fitsallow_scroll_even_when_content_fits
alphaalpha
alpha:
number
always_handle_pointeralways_handle_pointer
always_handle_scrollingalways_handle_scrolling
always_listen_to_inputalways_listen_to_input
always_rotatealways_rotate
anchor_fromanchor_from
anchor:
string
anchor_toanchor_to
animsanimations
animations:
array
{
  <any array element> "<any array element>"
}
<any array element>item_ref
background_controlbackground_control
background_hover_controlbackground_hover_control
backup_font_typebackup_font_type
backup_font_type:
string
bilinearbilinear
bindingsbindings
button_mappingsbutton_mappings
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_screencache_screen
checked_controlchecked_control
checked_control:
string
checked_hover_controlchecked_hover_control
checked_hover_control:
string
checked_locked_controlchecked_locked_control
checked_locked_control:
string
checked_locked_hover_controlchecked_locked_hover_control
checked_locked_hover_control:
string
clip_directionclip_direction
clip_direction:
string
clip_pixelperfectclip_pixel_perfect
clips_childrenclips_children
close_on_player_hurtclose_on_player_hurt
collection_indexcollection_index
integer:
integer
collection_namecollection_name
colorcolor
color:
array
{
  number "0..0" : opt
  number "1..1" : opt
  number "2..2" : opt
}
0..0number
A variable
1..1number
A variable
2..2number
A variable
consume_hover_eventsconsume_hover_events
containedcontained
control_namecontrol_name
default_controldefault_control
default_focus_precedencedefault_focus_precedence
disable_anim_fast_forwarddisable_anim_fast_forward
draggabledraggable
dropdown_areadropdown_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..0string
A variable
0..0string
A variable
0..0integer
A variable
1..1
A variable
2..2
A variable
3..3
A variable
dropdown_content_controldropdown_content_control
dropdown_namedropdown_name
enable_directional_togglingenable_directional_toggling
enable_profanity_filterenable_profanity_filter
enabled_newlineenabled_newline
enabledenabled
factoryfactory
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_idscontrol_ids
control_ids:
string
control_ids:
{
  string "<any object property>" : opt
}
<any object property>string
control_namestring
The name of the control that will be created by the factory.
factory_variablesarray
The variables that will be used by the factory.
factory_variables
<any array element>string
factory_variablesstring
The variables that will be used by the factory.
namestring
The name of the factory.
^\$.*variable_definition
variables
A variable is a reference to a value that can be used in the UI.
fillfill
focus_change_downfocus_change_down
focus_change_down:
string
focus_change_leftfocus_change_left
focus_change_left:
string
focus_change_rightfocus_change_right
focus_change_right:
string
focus_change_upfocus_change_up
focus_change_up:
string
focus_containerfocus_container
focus_enabledfocus_enabled
focus_identifierfocus_identifier
focus_magnet_enabledfocus_magnet_enabled
focus_navigation_mode_downfocus_navigation_mode_down
navigation_mode:
string
focus_navigation_mode_leftfocus_navigation_mode_left
focus_navigation_mode_rightfocus_navigation_mode_right
focus_navigation_mode_upfocus_navigation_mode_up
focus_wrap_enabledfocus_wrap_enabled
font_scale_factorfont_scale_factor
number:
number
font_sizefont_size
font_size:
string
font_typefont_type
font_type:
string
force_render_belowforce_render_below
force_texture_reloadforce_texture_reload
grid_dimension_bindinggrid_dimension_binding
grid_dimensionsgrid_dimensions
vec2:
array
{
  string "0..0" : opt
  string "0..0" : opt
  integer "0..0" : opt
  string "1..1" : opt
}
0..0string
A variable
1..1string
A variable
grid_item_templategrid_item_template
grid_positiongrid_position
grid_rescaling_typegrid_rescaling_type
grid_rescaling_type:
string
handle_deselecthandle_deselect
handle_selecthandle_select
hide_hyphenhide_hyphen
hover_alphaalpha
hover_colorcolor
hover_controlhover_control
hover_control:
string
hover_enabledhover_enabled
ignoredignored
imagesimages
images:
array
{
  <any array element> "<any array element>"
}
<any array element>item_ref
indent_controlindent_control
indent_control:
string
inherit_max_sibling_heightinherit_max_sibling_height
inherit_max_sibling_widthinherit_max_sibling_width
is_modalis_modal
is_showing_menuis_showing_menu
jump_to_bottom_on_updatejump_to_bottom_on_update
keep_ratiokeep_ratio
layerlayer
localizelocalize
locked_alphaalpha
locked_colorcolor
locked_controllocked_control
locked_control:
string
low_frequency_renderinglow_frequency_rendering
max_lengthmax_length
max_sizemax_size
size:
array
{
  string "0..0" : opt
  string "0..0" : opt
  integer "0..0" : opt
  string "1..1" : opt
}
0..0string
A size coordinate.
1..1string
A size coordinate.
maximum_grid_itemsmaximum_grid_items
min_sizemin_size
modalmodal
offsetoffset
orientationorientation
orientation:
string
place_holder_controlplace_holder_control
pressed_alphaalpha
pressed_colorcolor
pressed_controlpressed_control
pressed_control:
string
prevent_touch_inputprevent_touch_input
primary_colorcolor
progress_controlprogress_control
progress_hover_controlprogress_hover_control
propagate_alphapropagate_alpha
property_bagproperty_bag
property_bag:
{
  any "<any object property>"
}
<any object property>any
any:
['array', 'boolean', 'integer', 'number', 'object', 'string']
radio_toggle_groupradio_toggle_group
render_game_behindrender_game_behind
render_only_when_topmostrender_only_when_topmost
rendererrenderer
renderer:
string
reset_eventreset_event
reset_on_focus_lostreset_on_focus_lost
rotate_speedrotate_speed
screen_draws_lastscreen_draws_last
screen_not_flushablescreen_not_flushable
scroll_box_and_track_panelscroll_box_and_track_panel
scroll_contentscroll_content
scroll_speedscroll_speed
scroll_view_portscroll_view_port
scrollbar_boxscrollbar_box
scrollbar_box:
string
scrollbar_touch_buttonscrollbar_touch_button
scrollbar_track_buttonscrollbar_track_button
scrollbar_trackscrollbar_track
scrollbar_track:
string
send_telemetrysend_telemetry
shadowshadow
should_steal_mouseshould_steal_mouse
sizesize
slider_box_controlslider_box_control
slider_box_control:
string
slider_collection_nameslider_collection_name
slider_deselected_buttonslider_deselected_button
slider_directionslider_direction
slider_nameslider_name
slider_select_on_hoverslider_select_on_hover
slider_selected_buttonslider_selected_button
slider_small_decrease_buttonslider_small_decrease_button
slider_small_increase_buttonslider_small_increase_button
slider_stepsslider_steps
slider_track_buttonslider_track_button
sound_namesound_name
sound_pitchsound_pitch
sound_volumesound_volume
sound_volume:
number
text_alignmenttext_alignment
text_box_nametext_box_name
text_controltext_control
text_edit_box_grid_collection_nametext_edit_box_grid_collection_name
text_labelstext_labels
text_labels:
array
{
  string "<any array element>" : opt
}
<any array element>string
text_typetext_type
text_type:
string
texttext
texture_file_systemtexture_file_system
texture_file_system:
string
texturetexture
texture:
string
texture:
string
tiledtiled
tiled:
boolean
tiled:
string
toggle_default_statetoggle_default_state
toggle_default_state:
string
toggle_grid_collection_nametoggle_grid_collection_name
toggle_group_default_selectedtoggle_group_default_selected
toggle_group_forced_indextoggle_group_forced_index
toggle_nametoggle_name
toggle_off_buttontoggle_off_button
toggle_on_buttontoggle_on_button
touch_modetouch_mode
touch_mode:
string
tts_control_headertts_control_header
tts_control_type_order_prioritytts_control_type_order_priority
tts_ignore_counttts_ignore_count
tts_ignore_subsectionstts_ignore_subsections
tts_index_prioritytts_index_priority
tts_inherit_siblingstts_inherit_siblings
tts_nametts_name
tts_override_control_valuetts_override_control_value
tts_section_headertts_section_header
tts_toggle_offtts_toggle_off
tts_toggle_ontts_toggle_on
tts_value_changedtts_value_changed
tts_value_order_prioritytts_value_order_priority
ttsSectionContainertts_section_container
typetype
type:
string
unchecked_controlunchecked_control
unchecked_control:
string
unchecked_hover_controlunchecked_hover_control
unchecked_hover_control:
string
unchecked_locked_controlunchecked_locked_control
unchecked_locked_control:
string
unchecked_locked_hover_controlunchecked_locked_hover_control
unchecked_locked_hover_control:
string
use_anchored_offsetuse_anchored_offset
use_child_anchorsuse_child_anchors
use_last_focususe_last_focus
uv_sizeuv_size
uvuv
variablesvariables
variables:
array
{
  object "<any array element>" : opt
  {
     "<any object property>" : opt
  }
}
<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.
variables:
{
   "<any object property>" : opt
}
<any object property>
A variable is a reference to a value that can be used in the UI.
virtual_keyboard_buffer_controlvirtual_keyboard_buffer_control
visiblevisible
zip_folderzip_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_typeanimation_type
animation_type:
string
animation_reset_nameanimation_reset_name
destroy_at_enddestroy_at_end
destroy_at_end:
string
disable_anim_fast_forwarddisable_anim_fast_forward
durationduration
easingeasing
easing:
string
end_eventend_event
fpsfps
frame_countframe_count
frame_stepframe_step
fromfrom
from:
number
initial_uvinitial_uv
nextnext
play_eventplay_event
propagate_alphapropagate_alpha
reversiblereversible
scale_from_starting_alphascale_from_starting_alpha
toto
to:
number
uvuv
uv_sizeuv_size
^\$.*variable_definition
<any object property>object
<any object property>
typestring
The type of the element
control_idscontrol_ids
control_namecontrol_name
^\$.*variable_definition