add mod menu and neo iris support
This commit is contained in:
+1
-5
@@ -20,21 +20,17 @@
|
|||||||
package com.seibel.distanthorizons.fabric.wrappers.config;
|
package com.seibel.distanthorizons.fabric.wrappers.config;
|
||||||
|
|
||||||
import com.seibel.distanthorizons.common.wrappers.gui.GetConfigScreen;
|
import com.seibel.distanthorizons.common.wrappers.gui.GetConfigScreen;
|
||||||
#if MC_VER != MC_1_21_11
|
|
||||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||||
#endif
|
|
||||||
|
|
||||||
/** For making the config show up in modmenu */
|
/** For making the config show up in modmenu */
|
||||||
public class ModMenuIntegration #if MC_VER != MC_1_21_11 implements ModMenuApi #endif
|
public class ModMenuIntegration implements ModMenuApi
|
||||||
{
|
{
|
||||||
#if MC_VER != MC_1_21_11
|
|
||||||
// For the custom config code
|
// For the custom config code
|
||||||
@Override
|
@Override
|
||||||
public ConfigScreenFactory<?> getModConfigScreenFactory()
|
public ConfigScreenFactory<?> getModConfigScreenFactory()
|
||||||
{
|
{
|
||||||
return parent -> GetConfigScreen.getScreen(parent);
|
return parent -> GetConfigScreen.getScreen(parent);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -24,7 +24,7 @@ package com.seibel.distanthorizons.neoforge.wrappers.modAccessor;
|
|||||||
|
|
||||||
import com.seibel.distanthorizons.core.wrapperInterfaces.modAccessor.IIrisAccessor;
|
import com.seibel.distanthorizons.core.wrapperInterfaces.modAccessor.IIrisAccessor;
|
||||||
|
|
||||||
#if MC_VER != MC_1_21_9 && MC_VER != MC_1_21_11
|
#if MC_VER != MC_1_21_9
|
||||||
import net.irisshaders.iris.Iris;
|
import net.irisshaders.iris.Iris;
|
||||||
import net.irisshaders.iris.api.v0.IrisApi;
|
import net.irisshaders.iris.api.v0.IrisApi;
|
||||||
#endif
|
#endif
|
||||||
@@ -53,7 +53,7 @@ public class IrisAccessor implements IIrisAccessor
|
|||||||
@Override
|
@Override
|
||||||
public boolean isShaderPackInUse()
|
public boolean isShaderPackInUse()
|
||||||
{
|
{
|
||||||
#if MC_VER == MC_1_21_9 || MC_VER == MC_1_21_11
|
#if MC_VER == MC_1_21_9
|
||||||
return true; // Iris doesn't support this MC version
|
return true; // Iris doesn't support this MC version
|
||||||
#else
|
#else
|
||||||
return IrisApi.getInstance().isShaderPackInUse();
|
return IrisApi.getInstance().isShaderPackInUse();
|
||||||
@@ -63,7 +63,7 @@ public class IrisAccessor implements IIrisAccessor
|
|||||||
@Override
|
@Override
|
||||||
public boolean isRenderingShadowPass()
|
public boolean isRenderingShadowPass()
|
||||||
{
|
{
|
||||||
#if MC_VER == MC_1_21_9 || MC_VER == MC_1_21_11
|
#if MC_VER == MC_1_21_9
|
||||||
return false; // Iris doesn't support this MC version
|
return false; // Iris doesn't support this MC version
|
||||||
#else
|
#else
|
||||||
return IrisApi.getInstance().isRenderingShadowPass();
|
return IrisApi.getInstance().isRenderingShadowPass();
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ netty_version=4.1.97.Final
|
|||||||
# Fabric loader
|
# Fabric loader
|
||||||
fabric_loader_version=0.17.3
|
fabric_loader_version=0.17.3
|
||||||
fabric_api_version=0.139.4+1.21.11
|
fabric_api_version=0.139.4+1.21.11
|
||||||
modmenu_version=
|
modmenu_version=17.0.0-alpha.1
|
||||||
starlight_version_fabric=
|
starlight_version_fabric=
|
||||||
phosphor_version_fabric=
|
phosphor_version_fabric=
|
||||||
lithium_version=
|
lithium_version=
|
||||||
@@ -30,7 +30,7 @@ fabric_api_version=0.139.4+1.21.11
|
|||||||
# 0 = Don't enable and don't run
|
# 0 = Don't enable and don't run
|
||||||
# 1 = Can be referenced in code but doesn't run
|
# 1 = Can be referenced in code but doesn't run
|
||||||
# 2 = Can be referenced in code and runs in client
|
# 2 = Can be referenced in code and runs in client
|
||||||
enable_mod_menu=0
|
enable_mod_menu=2
|
||||||
enable_starlight=0
|
enable_starlight=0
|
||||||
enable_phosphor=0
|
enable_phosphor=0
|
||||||
enable_sodium=1
|
enable_sodium=1
|
||||||
@@ -46,10 +46,10 @@ neoforge_version=21.11.0-beta
|
|||||||
neoforge_version_range=[*,)
|
neoforge_version_range=[*,)
|
||||||
|
|
||||||
# NeoForge mod versions
|
# NeoForge mod versions
|
||||||
neo_iris_version=
|
neo_iris_version=1.10.2+1.21.11-neoforge
|
||||||
|
|
||||||
# (Neo)Forge mod run
|
# (Neo)Forge mod run
|
||||||
# 0 = Don't enable and don't run
|
# 0 = Don't enable and don't run
|
||||||
# 1 = Can be referenced in code but doesn't run
|
# 1 = Can be referenced in code but doesn't run
|
||||||
# 2 = Can be referenced in code and runs in client
|
# 2 = Can be referenced in code and runs in client
|
||||||
neo_enable_iris=0
|
neo_enable_iris=1
|
||||||
|
|||||||
Reference in New Issue
Block a user