Fix reflection
This commit is contained in:
parent
04f9fe30ae
commit
df77c315a7
1 changed files with 6 additions and 1 deletions
|
|
@ -54,7 +54,12 @@ class BukkitReflectionUtils {
|
|||
private static class ModernGameProfileConsumer implements GameProfileConsumer {
|
||||
private final Class<?> __ResolvableProfile_CLASS = ReflectionUtils.getType("net.minecraft.world.item.component.ResolvableProfile");
|
||||
private final Constructor<?> __ResolvableProfile_CONSTRUCTOR;
|
||||
protected final Method __setProfile__CraftMetaSkull__METHOD = ReflectionUtils.getMethod(__ResolvableProfile_CLASS, "setProfile", __ResolvableProfile_CLASS);
|
||||
protected final Method __setProfile__CraftMetaSkull__METHOD = ReflectionUtils.methodSearcher()
|
||||
.type(__CraftMetaSkull__CLASS)
|
||||
.methodOf("setProfile")
|
||||
.parameters(__ResolvableProfile_CLASS)
|
||||
.returns(void.class)
|
||||
.search();
|
||||
|
||||
ModernGameProfileConsumer() {
|
||||
Constructor<?> resolvableConstructor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue