BiomesOPlenty/common/biomesoplenty/handlers/VillageMaterialEventHandler.java

23 lines
574 B
Java
Raw Normal View History

package biomesoplenty.handlers;
import net.minecraft.block.Block;
2013-09-14 23:17:39 +00:00
import net.minecraftforge.event.Event.Result;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.terraingen.BiomeEvent;
import biomesoplenty.api.Biomes;
public class VillageMaterialEventHandler
{
@ForgeSubscribe
public void getVillageBlockID(BiomeEvent.GetVillageBlockID event)
{
if (event.biome == Biomes.savanna.get())
{
if (event.original == Block.cobblestone.blockID)
{
event.replacement = Block.brick.blockID;
2013-09-14 23:17:39 +00:00
event.setResult(Result.DENY);
}
}
}
}