SpraxDev / BetterChairs

BetterChairs is a Minecraft plugin, that allows you to sit on chairs.
MIT License
38 stars 5 forks source link

chore(deps): bump com.github.cryptomorin:XSeries from 10.0.0 to 11.0.0 #231

Closed dependabot[bot] closed 4 months ago

dependabot[bot] commented 4 months ago

Bumps com.github.cryptomorin:XSeries from 10.0.0 to 11.0.0.

Release notes

Sourced from com.github.cryptomorin:XSeries's releases.

v11.0.0

Maven

<dependency>
    <groupId>com.github.cryptomorin</groupId>
    <artifactId>XSeries</artifactId>
    <version>11.0.0</version>
</dependency>

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("com.github.cryptomorin:XSeries:11.0.0") { isTransitive = false }
}

[!IMPORTANT] Don't forget to shade the library.


Quick Code Update

I'm very sorry for the class renames. It had to be done at some point. You could simply do a RegEx replace in this order (unfortunately IntelliJ's Migrate feature doesn't work for nonexisting classes properly):

  • ReflectionUtils
    1. Replace import (static )?com.cryptomorin.xseries.ReflectionUtils with import $1com.cryptomorin.xseries.reflection.XReflection
    2. Replace ReflectionUtils with XReflection
    3. Replace (XReflection.)?sendPacket(Sync)?\( with MinecraftConnection.sendPacket(
    4. For people who want to use the new ClassHandle API:
      1. (?:XReflection\.)?getNMSClass\(([\w."]+), ([\w"]+)\) -> XReflection.ofMinecraft().inPackage(MinecraftPackage.NMS, $1).named($2).unreflect()
      2. (?:XReflection\.)?getCraftClass\("(?:([\w\.]+)(?:\.))?(\w+)"\) -> XReflection.ofMinecraft().inPackage(MinecraftPackage.CB, "$1").named("$2").unreflect()
  • NMSExtras
    1. Replace import (static )?com.cryptomorin.xseries.NMSExtras with import $1com.cryptomorin.xseries.reflection.minecraft.NMSExtras
  • SkullUtils
    1. Replace SkullUtils with XSkull
    2. Replace XSkull.applySkin\(([^,]+), ([\w\d_]+)\) with XSkull.of($1).profile($2).apply()

You may have to update some parts manually yourself after this replacement.

XReflection (Former ReflectionUtils)

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)