const game_rule_type_bool = u32(1)
const game_rule_type_int = u32(2)
const game_rule_type_float = u32(3)
const item_descriptor_invalid = u8(0)
const item_descriptor_default = u8(1)
const item_descriptor_molang = u8(2)
const item_descriptor_item_tag = u8(3)
const item_descriptor_deferred = u8(4)
const item_descriptor_complex_alias = u8(5)
const metadata_type_byte = u32(0)
const metadata_type_short = u32(1)
const metadata_type_int = u32(2)
const metadata_type_float = u32(3)
const metadata_type_string = u32(4)
const metadata_type_compound_tag = u32(5)
const metadata_type_pos = u32(6)
const metadata_type_long = u32(7)
const metadata_type_vec3 = u32(8)
const score_entry_type_player = 1
const score_entry_type_entity = 2
const score_entry_type_fake_player = 3
fn game_rule_type_id(v GameRuleValue) u32
fn item_stack_null() ItemStack
fn item_stack_wrapper_legacy #
fn item_stack_wrapper_legacy(item_stack ItemStack) ItemStackWrapper
fn uuid_from_bytes(b []u8) UUID
type GameRuleValue = BoolRule | FloatRule | IntRule
struct ActorAttribute {
pub mut:
id string
min f32
current f32
max f32
}
struct AttributeModifier #
struct AttributeModifier {
pub mut:
id string
name string
amount f32
operation int
operand int
serializable bool
}
struct BlockPosition {
pub mut:
x int
y int
z int
}
struct BoolRule {
pub mut:
value bool
}
struct ChunkPosition {
pub mut:
x int
z int
}
struct CommandOriginData #
struct CommandOriginData {
pub mut:
type string
uuid UUID
request_id string
player_actor_unique_id i64
}
struct CreativeGroupEntry #
struct CreativeGroupEntry {
pub mut:
category_id int
category_name string
icon ItemStack
}
struct CreativeItemEntry #
struct CreativeItemEntry {
pub mut:
entry_id int
item ItemStack
group_id int
}
struct EntityLink {
pub mut:
from_actor_unique_id i64
to_actor_unique_id i64
type int
immediate bool
caused_by_rider bool
vehicle_angular_velocity f32
}
struct ExperimentEntry {
pub mut:
name string
enabled bool
}
struct Experiments {
pub mut:
entries []ExperimentEntry
has_previously_used bool
}
struct FloatProperty {
pub mut:
key u32
value f32
}
struct FloatRule {
pub mut:
value f32
}
struct FullContainerName #
struct FullContainerName {
pub mut:
container_id int
dynamic_id ?int
}
struct GameRule {
pub mut:
name string
is_player_modifiable bool
value GameRuleValue
}
struct IntProperty {
pub mut:
key u32
value i32
}
struct IntRule {
pub mut:
value u32
}
struct ItemDescriptorCount #
struct ItemDescriptorCount {
pub mut:
descriptor_type u8
network_id i16
metadata_value i16
expression string
version u8
tag string
name string
count int
}
struct ItemStack {
pub mut:
id int
meta int
count int
block_runtime_id int
raw_extra_data []u8
}
fn (s &ItemStack) is_null() bool
struct ItemStackWrapper #
struct ItemStackWrapper {
pub mut:
stack_id int
stack_id_variant int
item_stack ItemStack
}
struct ItemTypeEntry {
pub mut:
string_id string
numeric_id int
component_based bool
version int
component_nbt nbt.RootTag
}
struct MetadataEntry {
pub mut:
key u32
value MetadataProperty
}
struct PersonaPieceTintColor #
struct PersonaPieceTintColor {
pub mut:
piece_type string
colors []string
}
struct PersonaSkinPiece #
struct PersonaSkinPiece {
pub mut:
piece_id string
piece_type string
pack_id string
is_default bool
product_id string
}
struct PropertySyncData #
struct PropertySyncData {
pub mut:
int_properties []IntProperty
float_properties []FloatProperty
}
struct ScorePacketEntry #
struct ScorePacketEntry {
pub mut:
scoreboard_id i64
objective_name string
score int
type int
actor_unique_id i64
custom_name string
}
struct ScoreboardIdentityEntry #
struct ScoreboardIdentityEntry {
pub mut:
scoreboard_id i64
actor_unique_id i64
}
struct SkinAnimation {
pub mut:
image SkinImage
type u32
frames f32
expression_type u32
}
struct SkinData {
pub mut:
skin_id string
play_fab_id string
resource_patch string
skin_image SkinImage
animations []SkinAnimation
cape_image SkinImage
geometry_data string
geometry_data_version string
animation_data string
cape_id string
full_skin_id string
arm_size string
skin_color string
persona_pieces []PersonaSkinPiece
piece_tint_colors []PersonaPieceTintColor
premium bool
persona bool
cape_on_classic bool
is_primary_user bool
override bool
}
struct SkinImage {
pub mut:
width u32
height u32
data string
}
struct StructureEditorData #
struct StructureEditorData {
pub mut:
structure_name string
filtered_structure_name string
structure_data_field string
include_players bool
show_bounding_box bool
structure_block_type int
structure_settings StructureSettings
structure_redstone_save_mode int
}
struct StructureSettings #
struct StructureSettings {
pub mut:
palette_name string
ignore_entities bool
ignore_blocks bool
allow_non_ticking_chunks bool
dimensions BlockPosition
offset BlockPosition
last_touched_by_player_id i64
rotation u8
mirror u8
animation_mode u8
animation_seconds f32
integrity_value f32
integrity_seed u32
pivot Vector3
}
struct UUID {
pub mut:
bytes [16]u8
}
fn (u &UUID) to_array() []u8
struct UpdateAttribute {
pub mut:
id string
min f32
max f32
current f32
default_min f32
default_max f32
default f32
modifiers []AttributeModifier
}
struct Vector2 {
pub mut:
x f32
y f32
}
struct Vector3 {
pub mut:
x f32
y f32
z f32
}