public class RandomPositionGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Vec3 |
staticVector
used to store a driection when the user passes a point to move towards or away from.
|
Constructor and Description |
---|
RandomPositionGenerator() |
Modifier and Type | Method and Description |
---|---|
static Vec3 |
findRandomTarget(EntityCreature entitycreatureIn,
int xz,
int y)
finds a random target within par1(x,z) and par2 (y) blocks
|
private static Vec3 |
findRandomTargetBlock(EntityCreature entitycreatureIn,
int xz,
int y,
Vec3 targetVec3)
searches 10 blocks at random in a within par1(x,z) and par2 (y) distance, ignores those not in the direction of
par3Vec3, then points to the tile for which creature.getBlockPathWeight returns the highest number
|
static Vec3 |
findRandomTargetBlockAwayFrom(EntityCreature entitycreatureIn,
int xz,
int y,
Vec3 targetVec3)
finds a random target within par1(x,z) and par2 (y) blocks in the reverse direction of the point par3
|
static Vec3 |
findRandomTargetBlockTowards(EntityCreature entitycreatureIn,
int xz,
int y,
Vec3 targetVec3)
finds a random target within par1(x,z) and par2 (y) blocks in the direction of the point par3
|
private static Vec3 staticVector
public static Vec3 findRandomTarget(EntityCreature entitycreatureIn, int xz, int y)
public static Vec3 findRandomTargetBlockTowards(EntityCreature entitycreatureIn, int xz, int y, Vec3 targetVec3)
public static Vec3 findRandomTargetBlockAwayFrom(EntityCreature entitycreatureIn, int xz, int y, Vec3 targetVec3)
private static Vec3 findRandomTargetBlock(EntityCreature entitycreatureIn, int xz, int y, Vec3 targetVec3)