Skip to content
Back to search

BedrockServerClientInterface

by OEOTYAN

wow

  • 25 stars
  • Updated
  • Required by 1
26.51.0

README26.51.0

BedrockServerClientInterface

Use

Add in xmake.lua

add_repositories("OTOTYAN https://github.com/OEOTYAN/xmake-repo.git")
add_requires("bsci")

example

#include <bsci/GeometryGroup.h>

int main() {

    static auto geo = bsci::GeometryGroup::createDefault();

    geo->line(0, BlockPos{0, 70, 0}.center(), BlockPos{10, 73, 6}.center(), mce::Color::BLUE);

    geo->box(
        0,
        BoundingBox{
            {0,  70, 0},
            {10, 73, 6}
    },
        mce::Color::PINK
    );

    geo->circle(0, BlockPos{0, 73, 0}.center(), Vec3{1, 1, 1}.normalize(), 8);

    auto s = geo->sphere(0, BlockPos{0, 180, 0}.center(), 100, mce::Color::CYAN);

    std::thread([&, s] {
        std::this_thread::sleep_for(std::chrono::seconds{30});
        geo->remove(s);
    }).join();

    return 0;
}

Contributing

Ask questions by creating an issue.

PRs accepted.

License

AGPL v3.0

Install BedrockServerClientInterface

Run this in your server or client folder with lip:

lip install github.com/OEOTYAN/BedrockServerClientInterface@26.51.0
Download from GitHub