mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Update coremods and spi, include mandatory license field in metadata. Added at top level of mods.toml file.
Signed-off-by: cpw <[email protected]>
This commit is contained in:
13 files changed
+32
-13
No files matched your search
@@ -22,12 +22,13 @@ package net.minecraftforge.client.event;
|
||||
import net.minecraft.client.renderer.color.BlockColors;
|
||||
import net.minecraft.client.renderer.color.ItemColors;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.fml.event.lifecycle.IModBusEvent;
|
||||
|
||||
/**
|
||||
* Use these events to register block/item
|
||||
* color handlers at the appropriate time.
|
||||
*/
|
||||
public abstract class ColorHandlerEvent extends Event
|
||||
public abstract class ColorHandlerEvent extends Event implements IModBusEvent
|
||||
{
|
||||
public static class Block extends ColorHandlerEvent
|
||||
{
|
||||
|
||||
@@ -27,13 +27,14 @@ import net.minecraft.client.renderer.model.ModelResourceLocation;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.fml.event.lifecycle.IModBusEvent;
|
||||
|
||||
/**
|
||||
* Fired when the ModelManager is notified of the resource manager reloading.
|
||||
* Called after model registry is setup, but before it's passed to BlockModelShapes.
|
||||
*/
|
||||
// TODO: try to merge with ICustomModelLoader
|
||||
public class ModelBakeEvent extends Event
|
||||
public class ModelBakeEvent extends Event implements IModBusEvent
|
||||
{
|
||||
private final ModelManager modelManager;
|
||||
private final Map<ResourceLocation, IBakedModel> modelRegistry;
|
||||
|
||||
@@ -20,10 +20,11 @@
|
||||
package net.minecraftforge.client.event;
|
||||
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.fml.event.lifecycle.IModBusEvent;
|
||||
|
||||
/**
|
||||
* Fired when you should call {@link net.minecraft.client.particle.ParticleManager#registerFactory}.
|
||||
* Note that your {@code ParticleType}s should still be registered during the usual registry events, this
|
||||
* is only for the factories.
|
||||
*/
|
||||
public class ParticleFactoryRegisterEvent extends Event {}
|
||||
public class ParticleFactoryRegisterEvent extends Event implements IModBusEvent {}
|
||||
@@ -22,11 +22,12 @@ package net.minecraftforge.client.event;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraft.client.renderer.texture.AtlasTexture;
|
||||
import net.minecraftforge.fml.event.lifecycle.IModBusEvent;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
public class TextureStitchEvent extends Event
|
||||
public class TextureStitchEvent extends Event implements IModBusEvent
|
||||
{
|
||||
private final AtlasTexture map;
|
||||
|
||||
|
||||
@@ -20,12 +20,13 @@
|
||||
package net.minecraftforge.client.event.sound;
|
||||
|
||||
import net.minecraft.client.audio.SoundEngine;
|
||||
import net.minecraftforge.fml.event.lifecycle.IModBusEvent;
|
||||
|
||||
/**
|
||||
* Raised by the SoundManager.loadSoundSettings, this would be a good place for
|
||||
* adding your custom sounds to the SoundPool.
|
||||
*/
|
||||
public class SoundLoadEvent extends SoundEvent
|
||||
public class SoundLoadEvent extends SoundEvent implements IModBusEvent
|
||||
{
|
||||
public SoundLoadEvent(SoundEngine manager)
|
||||
{
|
||||
|
||||
@@ -457,7 +457,7 @@ public class ModListScreen extends Screen
|
||||
|
||||
if (vercheck.status == VersionChecker.Status.OUTDATED || vercheck.status == VersionChecker.Status.BETA_OUTDATED)
|
||||
lines.add(ForgeI18n.parseMessage("fml.menu.mods.info.updateavailable", vercheck.url == null ? "" : vercheck.url));
|
||||
|
||||
lines.add(ForgeI18n.parseMessage("fml.menu.mods.info.license", selectedMod.getOwningFile().getLicense()));
|
||||
lines.add(null);
|
||||
lines.add(selectedMod.getDescription());
|
||||
|
||||
|
||||
Reference in new issue
Block a user