Skip to content

Add Minestom support - #200

Draft
Sparky983 wants to merge 22 commits into
mainfrom
feature/minestom
Draft

Sparky983 wants to merge 22 commits into
mainfrom
feature/minestom

Conversation

@Sparky983

@Sparky983 Sparky983 commented Feb 17, 2024 •

Copy link
Copy Markdown
Owner

TODO:

@Sparky983
Sparky983 marked this pull request as draft February 17, 2024 00:18
@Sparky983 Sparky983 linked an issue Feb 17, 2024 that may be closed by this pull request
@Sparky983 Sparky983 added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 17, 2024
@Sparky983

Sparky983 commented May 2, 2024 •

Copy link
Copy Markdown
Owner Author

A snapshot using the updated inventory API included in Minestom/Minestom#2089 has been published.

Basic Usage

import me.sparky983.vision.minestom.MinestomVision;

MinestomVision vision = MinestomVision.create();

Player player = ...;

Gui gui = Gui.chest()
    .slot(Slot.of(0, 4), Button.of(ItemType.DIAMOND))
    .build();

vision.open(player, gui);

Maven

<repositories>
    <repository>
        <id>sparky983-snapshots</id>
        <url>https://repo.sparky983.me/snapshots</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>me.sparky983</groupId>
        <artifactId>vision-minestom</artifactId>
        <version>1.1.0-1.20.6-SNAPSHOT</version>
    </dependency>
</dependencies>

Gradle Kotlin DSL

repositories {
    maven("https://repo.sparky983.me/snapshots")
}

dependencies {
    implementation("me.sparky983:vision-minestom:1.1.0-1.20.6-SNAPSHOT")
}

Gradle Groovy DSL

repositories {
    maven { url 'https://repo.sparky983.me/snapshots' }
}

dependencies {
    implementation 'me.sparky983:vision-minestom:1.1.0-1.20.6-SNAPSHOT'
}

@Sparky983

Copy link
Copy Markdown
Owner Author

Dependencies:

@Sparky983 Sparky983 modified the milestone: 1.1 May 2, 2024
renovate Bot and others added 2 commits May 8, 2024 16:03
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minestom Implementation

1 participant