public class RandomPositionGenerator extends Object
Constructor and Description |
---|
RandomPositionGenerator() |
Modifier and Type | Method and Description |
---|---|
static Vec3 |
findRandomTarget(EntityCreature par0EntityCreature,
int par1,
int par2)
finds a random target within par1(x,z) and par2 (y) blocks
|
static Vec3 |
findRandomTargetBlockAwayFrom(EntityCreature par0EntityCreature,
int par1,
int par2,
Vec3 par3Vec3)
finds a random target within par1(x,z) and par2 (y) blocks in the reverse direction of the point par3
|
static Vec3 |
findRandomTargetBlockTowards(EntityCreature par0EntityCreature,
int par1,
int par2,
Vec3 par3Vec3)
finds a random target within par1(x,z) and par2 (y) blocks in the direction of the point par3
|
public static Vec3 findRandomTarget(EntityCreature par0EntityCreature, int par1, int par2)
public static Vec3 findRandomTargetBlockTowards(EntityCreature par0EntityCreature, int par1, int par2, Vec3 par3Vec3)
public static Vec3 findRandomTargetBlockAwayFrom(EntityCreature par0EntityCreature, int par1, int par2, Vec3 par3Vec3)