Extension Reference#

Note

The API documented here is for version 1.0.0. You can select a different version at the bottom of the sidebar.

bedrock.ext.ui#

Todo

separate styles and icons and add url references respectively.

This module contains a variety of unicode characters and colors to use inside Minecraft. They can be used everywhere where text is used: chat, signs, titles etc. The appearance may be changed by resource packs.

class bedrock.ext.ui.Style(code: str)[source]#

A class used to style text in the game.

Parameters:

code (str) –

code#

The code used for the style.

Method generated by attrs for class Style.

property code: str#
__call__(text: str, /) str[source]#

Styles text.

Parameters:

text (str) – The text to style.

Returns:

The text prefixed by the formatting code and suffixed with the reset code.

Return type:

str

bedrock.ext.ui.black = Style(_code='0')#

Black (#000000) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.dark_blue = Style(_code='1')#

Dark blue (#0000AA) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.dark_green = Style(_code='2')#

Dark green (#00AA00) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.dark_aqua = Style(_code='3')#

Dark aqua (#00AAAA) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.dark_red = Style(_code='4')#

Dark red (#AA0000) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.dark_purple = Style(_code='5')#

Dark purple (#AA00AA) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.gold = Style(_code='6')#

Gold (#FFAA00) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.gray = Style(_code='7')#

Gray (#AAAAAA) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.dark_gray = Style(_code='8')#

Dark gray (#555555) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.blue = Style(_code='9')#

Blue (#5555FF) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.green = Style(_code='a')#

Green (#55FF55) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.aqua = Style(_code='b')#

Aqua (#55FFFF) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.red = Style(_code='c')#

Red (#FF5555) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.light_purple = Style(_code='d')#

Light purple (#FF55FF) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.yellow = Style(_code='e')#

Yellow (#FFFF55) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.white = Style(_code='f')#

White (#FFFFFF) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.minecoin_gold = Style(_code='g')#

Minecoin gold (#DDD605) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_quartz = Style(_code='h')#

Material quartz (#E3D4D1) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.meterial_iron = Style(_code='i')#

Material iron (#CECACA) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_netherite = Style(_code='j')#

Material netherite (#443A3B) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.obfuscated = Style(_code='k')#

Obfuscated text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.bold = Style(_code='l')#

Bold text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_redstone = Style(_code='m')#

Material redstone (#971607) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_copper = Style(_code='n')#

Material copper (#B4684D) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.italic = Style(_code='o')#

Italic text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_gold = Style(_code='p')#

Material gold (#DEB12D) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_emerald = Style(_code='q')#

Material emerald (#47A036) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.reset = Style(_code='r')#

Reset all styles.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_diamond = Style(_code='s')#

Material diamond (#2CBAA8) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_lapis = Style(_code='t')#

Material lapis (#21497B) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.material_amethyst = Style(_code='u')#

Material amethyst (#9A5CC6) colored text.

Parameters:

text (str) –

Return type:

str

bedrock.ext.ui.XBOX_A_BUTTON = '\ue000'#
bedrock.ext.ui.XBOX_B_BUTTON = '\ue001'#
bedrock.ext.ui.XBOX_X_BUTTON = '\ue002'#
bedrock.ext.ui.XBOX_Y_BUTTON = '\ue003'#
bedrock.ext.ui.XBOX_LB_BUTTON = '\ue004'#
bedrock.ext.ui.XBOX_RB_BUTTON = '\ue005'#
bedrock.ext.ui.XBOX_LT_BUTTON = '\ue006'#
bedrock.ext.ui.XBOX_RT_BUTTON = '\ue007'#
bedrock.ext.ui.XBOX_SELECT_BUTTON = '\ue008'#
bedrock.ext.ui.XBOX_START_BUTTON = '\ue009'#
bedrock.ext.ui.XBOX_LEFT_STICK_BUTTON = '\ue00a'#
bedrock.ext.ui.XBOX_RIGHT_STICK_BUTTON = '\ue00b'#
bedrock.ext.ui.XBOX_D_PAD_UP_BUTTON = '\ue00c'#
bedrock.ext.ui.XBOX_D_PAD_LEFT_BUTTON = '\ue00d'#
bedrock.ext.ui.XBOX_D_PAD_DOWN_BUTTON = '\ue00e'#
bedrock.ext.ui.XBOX_D_PAD_RIGHT_BUTTON = '\ue00f'#
bedrock.ext.ui.MOBILE_JUMP = '\ue014'#
bedrock.ext.ui.MOBILE_ATTACK = '\ue015'#
bedrock.ext.ui.MOBILE_JOY_STICK = '\ue016'#
bedrock.ext.ui.MOBILE_CROSS_HAIR = '\ue017'#
bedrock.ext.ui.PLAYSTATION_CROSS_BUTTON = '\ue020'#
bedrock.ext.ui.PLAYSTATION_CIRCLE_BUTTON = '\ue021'#
bedrock.ext.ui.PLAYSTATION_SQUARE_BUTTON = '\ue022'#
bedrock.ext.ui.PLAYSTATION_TRIANGLE_BUTTON = '\ue023'#
bedrock.ext.ui.PLAYSTATION_L1_BUTTON = '\ue024'#
bedrock.ext.ui.PLAYSTATION_R1_BUTTON = '\ue025'#
bedrock.ext.ui.PLAYSTATION_L2_BUTTON = '\ue026'#
bedrock.ext.ui.PLAYSTATION_R2_BUTTON = '\ue027'#
bedrock.ext.ui.PLAYSTATION_SELECT_BUTTON = '\ue028'#
bedrock.ext.ui.PLAYSTATION_START_BUTTON = '\ue029'#
bedrock.ext.ui.PLAYSTATION_LEFT_STICK_BUTTON = '\ue02a'#
bedrock.ext.ui.PLAYSTATION_RIGHT_STICK_BUTTON = '\ue02b'#
bedrock.ext.ui.PLAYSTATION_D_PAD_UP_BUTTON = '\ue02c'#
bedrock.ext.ui.PLAYSTATION_D_PAD_LEFT_BUTTON = '\ue02d'#
bedrock.ext.ui.PLAYSTATION_D_PAD_DOWN_BUTTON = '\ue02e'#
bedrock.ext.ui.PLAYSTATION_D_PAD_RIGHT_BUTTON = '\ue02f'#
bedrock.ext.ui.SWITCH_A_BUTTON = '\ue040'#
bedrock.ext.ui.SWITCH_B_BUTTON = '\ue041'#
bedrock.ext.ui.SWITCH_X_BUTTON = '\ue042'#
bedrock.ext.ui.SWITCH_Y_BUTTON = '\ue043'#
bedrock.ext.ui.SWITCH_L_BUTTON = '\ue044'#
bedrock.ext.ui.SWITCH_R_BUTTON = '\ue045'#
bedrock.ext.ui.SWITCH_ZL_BUTTON = '\ue046'#
bedrock.ext.ui.SWITCH_ZR_BUTTON = '\ue047'#
bedrock.ext.ui.SWITCH_MINUS_BUTTON = '\ue048'#
bedrock.ext.ui.SWITCH_PLUS_BUTTON = '\ue049'#
bedrock.ext.ui.SWITCH_LEFT_STICK_BUTTON = '\ue04a'#
bedrock.ext.ui.SWITCH_RIGHT_STICK_BUTTON = '\ue04b'#
bedrock.ext.ui.SWITCH_D_PAD_UP_BUTTON = '\ue04c'#
bedrock.ext.ui.SWITCH_D_PAD_LEFT_BUTTON = '\ue04d'#
bedrock.ext.ui.SWITCH_D_PAD_DOWN_BUTTON = '\ue04e'#
bedrock.ext.ui.SWITCH_D_PAD_RIGHT_BUTTON = '\ue04f'#
bedrock.ext.ui.MOBILE_SMALL_JUMP_BUTTON = '\ue059'#
bedrock.ext.ui.MOBILE_SMALL_CROUCH_BUTTON = '\ue05a'#
bedrock.ext.ui.MOBILE_SMALL_FLY_UP_BUTTON = '\ue05c'#
bedrock.ext.ui.MOBILE_SMALL_FLY_DOWN_BUTTON = '\ue05d'#
bedrock.ext.ui.MOBILE_SMALL_LEFT_ARROW_BUTTON = '\ue056'#
bedrock.ext.ui.MOBILE_SMALL_RIGHT_ARROW_BUTTON = '\ue058'#
bedrock.ext.ui.MOBILE_SMALL_UP_ARROW_BUTTON = '\ue055'#
bedrock.ext.ui.MOBILE_SMALL_DOWN__ARROW_BUTTON = '\ue057'#
bedrock.ext.ui.MOBILE_SMALL_INVENTORY_BUTTON = '\ue05b'#
bedrock.ext.ui.WINDOWS_LEFT_MOUSE_BUTTON = '\ue060'#
bedrock.ext.ui.WINDOWS_RIGHT_MOUSE_BUTTON = '\ue061'#
bedrock.ext.ui.WINDOWS_MIDDLE_MOUSE_BUTTON = '\ue062'#
bedrock.ext.ui.MOBILE_FORWARD_ARROW_BUTTON = '\ue080'#
bedrock.ext.ui.MOBILE_LEFT_ARROW_BUTTON = '\ue081'#
bedrock.ext.ui.MOBILE_BACKWARDS_ARROW_BUTTON = '\ue082'#
bedrock.ext.ui.MOBILE_RIGHT_ARROW_BUTTON = '\ue083'#
bedrock.ext.ui.MOBILE_JUMP_BUTTON = '\ue084'#
bedrock.ext.ui.MOBILE_CROUCH_BUTTON = '\ue085'#
bedrock.ext.ui.MOBILE_FLY_UP_BUTTON = '\ue086'#
bedrock.ext.ui.MOBILE_FLY_DOWN_BUTTON = '\ue087'#
bedrock.ext.ui.CRAFTABLE_TOGGLE_ON = '\ue0a0'#
bedrock.ext.ui.CRAFTABLE_TOGGLE_OFF = '\ue0a1'#
bedrock.ext.ui.FOOD_ICON = '\ue100'#
bedrock.ext.ui.ARMOR_ICON = '\ue101'#
bedrock.ext.ui.MINECOIN = '\ue102'#
bedrock.ext.ui.CODE_BUILDER_BUTTON = '\ue103'#
bedrock.ext.ui.IMMERSE_READER_BUTTON = '\ue104'#
bedrock.ext.ui.TOKEN = '\ue105'#
bedrock.ext.ui.WINMR_LEFT_GRAB_BUTTON = '\ue0c0'#
bedrock.ext.ui.WINMR_RIGHT_GRAB_BUTTON = '\ue0c1'#
bedrock.ext.ui.WINMR_MENU_BUTTON = '\ue0c2'#
bedrock.ext.ui.WINMR_LEFT_STICK_BUTTON = '\ue0c3'#
bedrock.ext.ui.WINMR_RIGHT_STICK_BUTTON = '\ue0c4'#
bedrock.ext.ui.WINMR_LEFT_TOUCHPAD_BUTTON = '\ue0c5'#
bedrock.ext.ui.WINMR_LEFT_TOUCHPAD_HORIZONTAL_BUTTON = '\ue0c6'#
bedrock.ext.ui.WINMR_LEFT_TOUCHPAD_VERTICAL_BUTTON = '\ue0c7'#
bedrock.ext.ui.WINMR_RIGHT_TOUCHPAD_BUTTON = '\ue0c8'#
bedrock.ext.ui.WINMR_RIGHT_TOUCHPAD_HORIZONTAL_BUTTON = '\ue0c9'#
bedrock.ext.ui.WINMR_RIGHT_TOUCHPAD_VERTICAL_BUTTON = '\ue0ca'#
bedrock.ext.ui.WINMR_LEFT_TRIGGER_BUTTON = '\ue0cb'#
bedrock.ext.ui.WINMR_RIGHT_TRIGGER_BUTTON = '\ue0cc'#
bedrock.ext.ui.WINMR_WINDOWS = '\ue0cd'#
bedrock.ext.ui.RIFT_ZERO_BUTTON = '\ue0e0'#
bedrock.ext.ui.RIFT_A_BUTTON = '\ue0e1'#
bedrock.ext.ui.RIFT_B_BUTTON = '\ue0e2'#
bedrock.ext.ui.RIFT_LEFT_GRAB_BUTTON = '\ue0e3'#
bedrock.ext.ui.RIFT_RIGHT_GRAB_BUTTON = '\ue0e4'#
bedrock.ext.ui.RIFT_LEFT_STICK_BUTTON = '\ue0e5'#
bedrock.ext.ui.RIFT_RIGHT_STICK_BUTTON = '\ue0e6'#
bedrock.ext.ui.RIFT_LEFT_TRIGGER_BUTTON = '\ue0e7'#
bedrock.ext.ui.RIFT_RIGHT_TRIGGER_BUTTON = '\ue0e8'#
bedrock.ext.ui.RIFT_X_BUTTON = '\ue0e9'#
bedrock.ext.ui.RIFT_Y_BUTTON = '\ue0ea'#