Corrected class proxy

This commit is contained in:
OakLoaf
2024-11-01 11:57:35 +00:00
parent 4fd84a3f2d
commit f5bbaa3c3a
@@ -27,7 +27,7 @@ public class Reflection {
public static final ChunkMapProxy CHUNKMAP; public static final ChunkMapProxy CHUNKMAP;
public static final HolderSetProxy HOLDER_SET; public static final HolderSetNamedProxy HOLDER_SET;
public static final BiomeProxy BIOME; public static final BiomeProxy BIOME;
static { static {
@@ -39,7 +39,7 @@ public class Reflection {
STRUCTURE_MANAGER = reflectionProxyFactory.reflectionProxy(StructureManagerProxy.class); STRUCTURE_MANAGER = reflectionProxyFactory.reflectionProxy(StructureManagerProxy.class);
REFERENCE = reflectionProxyFactory.reflectionProxy(ReferenceProxy.class); REFERENCE = reflectionProxyFactory.reflectionProxy(ReferenceProxy.class);
CHUNKMAP = reflectionProxyFactory.reflectionProxy(ChunkMapProxy.class); CHUNKMAP = reflectionProxyFactory.reflectionProxy(ChunkMapProxy.class);
HOLDER_SET = reflectionProxyFactory.reflectionProxy(HolderSetProxy.class); HOLDER_SET = reflectionProxyFactory.reflectionProxy(HolderSetNamedProxy.class);
BIOME = reflectionProxyFactory.reflectionProxy(BiomeProxy.class); BIOME = reflectionProxyFactory.reflectionProxy(BiomeProxy.class);
} }
@@ -73,10 +73,10 @@ public class Reflection {
void setWorldGenContext(ChunkMap instance, WorldGenContext worldGenContext); void setWorldGenContext(ChunkMap instance, WorldGenContext worldGenContext);
} }
@Proxies(HolderSet.class) @Proxies(HolderSet.Named.class)
public interface HolderSetProxy { public interface HolderSetNamedProxy {
@MethodName("contents") @MethodName("contents")
<T> List<Holder<T>> invokeContents(HolderSet<T> instance); <T> List<Holder<T>> invokeContents(HolderSet.Named<T> instance);
} }
@Proxies(Biome.class) @Proxies(Biome.class)