2012-11-19 04:27:43 +00:00
|
|
|
package net.minecraftforge.event.terraingen;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
2012-12-13 07:27:57 +00:00
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraftforge.event.Event.HasResult;
|
|
|
|
import net.minecraftforge.event.world.WorldEvent;
|
2012-11-19 04:27:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
}
|