mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
fix reflection proxies
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ public class NMSBiomeInjector {
|
|||||||
Biome.BiomeBuilder builder = new Biome.BiomeBuilder(); // Builder
|
Biome.BiomeBuilder builder = new Biome.BiomeBuilder(); // Builder
|
||||||
|
|
||||||
|
|
||||||
builder.biomeCategory(Reflection.BIOME.getCategory(vanilla))
|
builder.biomeCategory(Reflection.BIOME.getBiomeCategory(vanilla))
|
||||||
.precipitation(vanilla.getPrecipitation()) // getPrecipitation
|
.precipitation(vanilla.getPrecipitation()) // getPrecipitation
|
||||||
.mobSpawnSettings(vanilla.getMobSettings())
|
.mobSpawnSettings(vanilla.getMobSettings())
|
||||||
.generationSettings(vanilla.getGenerationSettings())
|
.generationSettings(vanilla.getGenerationSettings())
|
||||||
|
|||||||
+4
-4
@@ -21,15 +21,15 @@ public class Reflection {
|
|||||||
BIOME = reflectionProxyFactory.reflectionProxy(BiomeProxy.class);
|
BIOME = reflectionProxyFactory.reflectionProxy(BiomeProxy.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Proxies
|
@Proxies(MappedRegistry.class)
|
||||||
public interface MappedRegistryProxy {
|
public interface MappedRegistryProxy {
|
||||||
@FieldSetter("frozen")
|
@FieldSetter("frozen")
|
||||||
void setFrozen(MappedRegistry<?> instance, boolean frozen);
|
void setFrozen(MappedRegistry<?> instance, boolean frozen);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Proxies
|
@Proxies(Biome.class)
|
||||||
public interface BiomeProxy {
|
public interface BiomeProxy {
|
||||||
@FieldGetter("category")
|
@FieldGetter("biomeCategory")
|
||||||
Biome.BiomeCategory getCategory(Biome instance);
|
Biome.BiomeCategory getBiomeCategory(Biome instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ public class Reflection {
|
|||||||
MAPPED_REGISTRY = reflectionProxyFactory.reflectionProxy(MappedRegistryProxy.class);
|
MAPPED_REGISTRY = reflectionProxyFactory.reflectionProxy(MappedRegistryProxy.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Proxies
|
@Proxies(MappedRegistry.class)
|
||||||
public interface MappedRegistryProxy {
|
public interface MappedRegistryProxy {
|
||||||
@FieldSetter("frozen")
|
@FieldSetter("frozen")
|
||||||
void setFrozen(MappedRegistry<?> instance, boolean frozen);
|
void setFrozen(MappedRegistry<?> instance, boolean frozen);
|
||||||
|
|||||||
Reference in New Issue
Block a user