fix: make static mixin methods private

dependabot/gradle/org.projectlombok-lombok-1.18.34 1.0.11
William 5 months ago
parent 73559b32a4
commit 58d20a3a8c
No known key found for this signature in database

@ -39,12 +39,12 @@ import org.spongepowered.asm.mixin.injection.Redirect;
public class ArgumentNodeMixin {
@Invoker("<init>")
static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties<?> properties, @Nullable Identifier id) {
private static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties<?> properties, @Nullable Identifier id) {
throw new AssertionError();
}
@Redirect(method = "<init>(Lcom/mojang/brigadier/tree/ArgumentCommandNode;)V", at = @At("HEAD"))
static <A> ArgumentNode onConstruct(ArgumentCommandNode<CommandSource, A> node) {
private static <A> ArgumentNode onConstruct(ArgumentCommandNode<CommandSource, A> node) {
ArgumentSerializer.ArgumentTypeProperties<?> properties;
try {
properties = ArgumentTypes.get(node.getType()).getArgumentTypeProperties(node.getType());

@ -39,12 +39,12 @@ import org.spongepowered.asm.mixin.injection.Redirect;
public class ArgumentNodeMixin {
@Invoker("<init>")
static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties<?> properties, @Nullable Identifier id) {
private static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties<?> properties, @Nullable Identifier id) {
throw new AssertionError();
}
@Redirect(method = "<init>(Lcom/mojang/brigadier/tree/ArgumentCommandNode;)V", at = @At("HEAD"))
static <A> ArgumentNode onConstruct(ArgumentCommandNode<CommandSource, A> node) {
private static <A> ArgumentNode onConstruct(ArgumentCommandNode<CommandSource, A> node) {
ArgumentSerializer.ArgumentTypeProperties<?> properties;
try {
properties = ArgumentTypes.get(node.getType()).getArgumentTypeProperties(node.getType());

@ -3,6 +3,6 @@ javaVersion=17
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true
library_version=1.0.10
library_version=1.0.11
library_archive=uniform
library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system.
Loading…
Cancel
Save