ForgePatch/common/net/minecraftforge/event/terraingen/SaplingGrowTreeEvent.java

31 lines
714 B
Java
Raw Normal View History

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;
/**
* 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;
}
}