Files
MinecraftForge/common/net/minecraftforge/event/terraingen/SaplingGrowTreeEvent.java
T
Scott Killen 69ac1fa3a5 Added terrain gen events
Added biome color events for @XCompWiz
2012-12-07 16:43:15 -05:00

31 lines
691 B
Java

package net.minecraftforge.event.terraingen;
import java.util.Random;
import net.minecraft.src.*;
import net.minecraftforge.event.Event.*;
import net.minecraftforge.event.world.*;
/**
* This event is fired when a sapling grows a tree.
*
* You can set the result to DENY to prevent the default tree growth.
*/
@HasResult
public class SaplingGrowTreeEvent extends WorldEvent
{
public final int x;
public final int y;
public final int z;
public final Random rand;
public SaplingGrowTreeEvent(World world, Random rand, int x, int y, int z)
{
super(world);
this.rand = rand;
this.x = x;
this.y = y;
this.z = z;
}
}