mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Fix most of the compile errors in the client package (#5137)
* Add KeyBinding#getKey and clean up errors in KeyModifier * Add dimension IRenderHandler patches * Fix most of the compile errors in client package. The rest are missing Block/KeyBinding patches * Disable selective reloads until configs are finished * Add OnlyIn on IForgeDimension to match those of Dimension
This commit is contained in:
1 parent
a0cef07a0b
commit
949a62a0da
13 files changed
+163
-91
No files matched your search
@@ -329,6 +329,11 @@ public class ForgeMod implements WorldPersistenceHooks.WorldPersistenceHook
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static Configuration getConfig()
|
||||
{
|
||||
return config;
|
||||
}
|
||||
|
||||
/*
|
||||
public void missingMapping(RegistryEvent.MissingMappings<Item> event)
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
package net.minecraftforge.common.extensions;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.client.IRenderHandler;
|
||||
|
||||
public interface IForgeDimension
|
||||
{
|
||||
/**
|
||||
@@ -18,4 +25,25 @@ public interface IForgeDimension
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Nullable
|
||||
IRenderHandler getSkyRenderer();
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
void setSkyRenderer(IRenderHandler skyRenderer);
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Nullable
|
||||
IRenderHandler getCloudRenderer();
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
void setCloudRenderer(IRenderHandler renderer);
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Nullable
|
||||
IRenderHandler getWeatherRenderer();
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
void setWeatherRenderer(IRenderHandler renderer);
|
||||
}
|
||||
Reference in new issue
Block a user