2018-03-28 05:09:10 +00:00
|
|
|
/*
|
|
|
|
* Minecraft Forge
|
2018-07-01 21:17:28 +00:00
|
|
|
* Copyright (c) 2016-2018.
|
2018-03-28 05:09:10 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
package net.minecraftforge.debug.world;
|
2016-07-24 17:40:14 +00:00
|
|
|
|
|
|
|
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;
|
2018-06-11 01:12:46 +00:00
|
|
|
import net.minecraftforge.eventbus.api.Event.Result;
|
|
|
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
2016-07-24 17:40:14 +00:00
|
|
|
|
2016-11-22 20:12:13 +00:00
|
|
|
@Mod(modid = DecorateEventDebug.MODID, name = DecorateEventDebug.NAME, version = DecorateEventDebug.VERSION, acceptableRemoteVersions = "*")
|
2016-08-02 22:55:18 +00:00
|
|
|
public class DecorateEventDebug
|
2016-07-24 17:40:14 +00:00
|
|
|
{
|
|
|
|
|
2016-08-09 00:35:48 +00:00
|
|
|
private static final boolean ENABLED = false;
|
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-09 00:35:48 +00:00
|
|
|
if (ENABLED)
|
2017-05-29 09:10:40 +00:00
|
|
|
{
|
2016-08-09 00:35:48 +00:00
|
|
|
MinecraftForge.TERRAIN_GEN_BUS.register(this);
|
2017-05-29 09:10:40 +00:00
|
|
|
}
|
2016-07-24 17:40:14 +00:00
|
|
|
}
|
|
|
|
|
2018-06-11 01:12:46 +00:00
|
|
|
@net.minecraftforge.eventbus.api.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
|
|
|
}
|
|
|
|
}
|