Enable EventBus type check during ForgeDev, and add IModBusEvent marker to ModelRegistryEvent.
This commit is contained in:
parent
4ffcdaa6da
commit
5104824a1b
2 changed files with 4 additions and 1 deletions
|
@ -269,6 +269,7 @@ project(':forge') {
|
|||
environment 'FORGE_VERSION', project.version.substring(MC_VERSION.length() + 1).toString()
|
||||
environment 'LAUNCHER_VERSION', SPEC_VERSION
|
||||
property 'org.lwjgl.system.SharedLibraryExtractDirectory', 'lwjgl_dll'
|
||||
property 'eventbus.checkTypesOnDispatch', 'true'
|
||||
|
||||
ideaModule "${rootProject.name}.${project.name}.userdev"
|
||||
|
||||
|
@ -303,6 +304,7 @@ project(':forge') {
|
|||
environment 'FORGE_SPEC', SPEC_VERSION
|
||||
environment 'FORGE_VERSION', project.version.substring(MC_VERSION.length() + 1).toString()
|
||||
environment 'LAUNCHER_VERSION', SPEC_VERSION
|
||||
property 'eventbus.checkTypesOnDispatch', 'true'
|
||||
|
||||
ideaModule "${rootProject.name}.${project.name}.userdev"
|
||||
|
||||
|
|
|
@ -20,10 +20,11 @@
|
|||
package net.minecraftforge.client.event;
|
||||
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.fml.event.lifecycle.IModBusEvent;
|
||||
|
||||
/**
|
||||
* Fired when the {@link net.minecraftforge.client.model.ModelLoader} is ready to receive registrations
|
||||
*/
|
||||
public class ModelRegistryEvent extends Event
|
||||
public class ModelRegistryEvent extends Event implements IModBusEvent
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue