Instance methods
access_token=(access_token : String)
Sourceadd_chunk_batch_sample(millis_per_chunk :
Float64, batch_size :
Int32)
Sourceadd_tick_steps(steps : UInt32)
Add tick steps when ticking is frozen
Sourceaverage_millis_per_chunk
Sourcechat_manager=(chat_manager : ChatManager)
Sourcechunk_batch_samples=(chunk_batch_samples : Array(ChunkBatchSample))
Sourcechunk_batch_start_time=(chunk_batch_start_time : Time | Nil)
Sourceconnection
Internal engine state — not exposed through Bot API.
Protected: accessible within Rosegold:: namespace only.
Sourcecookies=(cookies : Hash(String, Bytes))
Sourcecurrent_protocol_state=(current_protocol_state : ProtocolState)
Sourcedisconnect(*args, **options)
Sourcedisconnect(*args, **options, &)
Sourceget_cookie(identifier : String) : Bytes | Nil
Sourcejoin_game(timeout_ticks = 1200)
Waits for the client to be fully spawned, ie. physics and inventory being ready.
Sourceknown_packs=(known_packs : Array(NamedTuple(namespace: String, id: String, version: String)))
Sourceoffline=(offline : NamedTuple(uuid: String, username: String) | Nil)
Sourcepending_block_operations
Sourcepending_block_operations=(pending_block_operations :
Hash(
Int32,
BlockOperation))
Sourcepending_tick_steps=(pending_tick_steps : UInt32)
Sourceplayer=(player : Player)
Sourceplayer_inventory=(player_inventory : PlayerInventory)
Sourceplayer_list=(player_list : Hash(UUID, PlayerList::Entry))
Sourcequeue_packet(packet : Serverbound::Packet)
Send a packet to the server concurrently.
Sourcerecipe_registry=(recipe_registry : RecipeRegistry)
Sourceregistries=(registries : Hash(String, Clientbound::RegistryData))
Sourcesend_packet!(packet : Serverbound::Packet)
Send a packet in the current fiber. Useful for things like
EncryptionRequest, because it must change the IO socket only AFTER
a EncryptionResponse has been sent.
Sourceset_protocol_state(protocol_state : ProtocolState)
Sourcestate=(state)
Legacy method - deprecated, use set_protocol_state instead
Sourcestore_cookie(identifier : String, data : Bytes)
Sourcetick_interval
Calculate tick interval based on current tick rate
Vanilla client never ticks faster than 20 TPS (Minecraft.java:getTickTargetMillis)
Sourcetick_rate=(tick_rate : Float32)
Sourceticker_done=(ticker_done : Channel(Nil))
Sourceticking_frozen=(ticking_frozen : Bool)
Sourcetransfer_to(new_host : String, new_port : UInt32)
Sourceupdate_ticking_state(new_tick_rate : Float32, frozen : Bool)
Update client ticking state from server
Source