2016-07-24 17:40:14 +00:00
|
|
|
package net.minecraftforge.debug;
|
|
|
|
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
|
|
import net.minecraftforge.event.terraingen.DecorateBiomeEvent;
|
|
|
|
import net.minecraftforge.fml.common.Mod;
|
|
|
|
import net.minecraftforge.fml.common.Mod.EventHandler;
|
|
|
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Event.Result;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
|
|
|
|
@Mod(modid = DecorateEventDebug.MODID, name = DecorateEventDebug.NAME, version = DecorateEventDebug.VERSION)
|
2016-08-02 22:55:18 +00:00
|
|
|
public class DecorateEventDebug
|
2016-07-24 17:40:14 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public static final String MODID = "decorateeventdebug";
|
|
|
|
public static final String NAME = "DecorateEventDebug";
|
|
|
|
public static final String VERSION = "1.0.0";
|
|
|
|
|
|
|
|
@EventHandler
|
2016-08-02 22:55:18 +00:00
|
|
|
public void init(FMLInitializationEvent event)
|
2016-07-24 17:40:14 +00:00
|
|
|
{
|
2016-08-02 22:55:18 +00:00
|
|
|
MinecraftForge.TERRAIN_GEN_BUS.register(this);
|
2016-07-24 17:40:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@SubscribeEvent
|
2016-08-02 22:55:18 +00:00
|
|
|
public void decorateEvent(DecorateBiomeEvent.Decorate event)
|
2016-07-24 17:40:14 +00:00
|
|
|
{
|
2016-08-02 22:55:18 +00:00
|
|
|
event.setResult(Result.DENY);
|
2016-07-24 17:40:14 +00:00
|
|
|
}
|
|
|
|
}
|