2013-09-14 23:01:07 +00:00
|
|
|
package biomesoplenty.handlers;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2013-09-14 23:17:39 +00:00
|
|
|
import net.minecraftforge.event.Event.Result;
|
2013-09-14 23:01:07 +00:00
|
|
|
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);
|
2013-09-14 23:01:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|