public class RandomPositionGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Vec3d |
staticVector |
Constructor and Description |
---|
RandomPositionGenerator() |
Modifier and Type | Method and Description |
---|---|
static Vec3d |
findRandomTarget(EntityCreature entitycreatureIn,
int xz,
int y) |
private static Vec3d |
findRandomTargetBlock(EntityCreature entitycreatureIn,
int xz,
int y,
Vec3d targetVec3) |
static Vec3d |
findRandomTargetBlockAwayFrom(EntityCreature entitycreatureIn,
int xz,
int y,
Vec3d targetVec3) |
static Vec3d |
findRandomTargetBlockTowards(EntityCreature entitycreatureIn,
int xz,
int y,
Vec3d targetVec3) |
private static Vec3d |
generateRandomPos(EntityCreature p_191379_0_,
int p_191379_1_,
int p_191379_2_,
Vec3d p_191379_3_,
boolean p_191379_4_) |
static Vec3d |
getLandPos(EntityCreature p_191377_0_,
int p_191377_1_,
int p_191377_2_) |
private static boolean |
isWaterDestination(BlockPos p_191380_0_,
EntityCreature p_191380_1_) |
private static BlockPos |
moveAboveSolid(BlockPos p_191378_0_,
EntityCreature p_191378_1_) |
private static Vec3d staticVector
@Nullable public static Vec3d findRandomTarget(EntityCreature entitycreatureIn, int xz, int y)
@Nullable public static Vec3d getLandPos(EntityCreature p_191377_0_, int p_191377_1_, int p_191377_2_)
@Nullable public static Vec3d findRandomTargetBlockTowards(EntityCreature entitycreatureIn, int xz, int y, Vec3d targetVec3)
@Nullable public static Vec3d findRandomTargetBlockAwayFrom(EntityCreature entitycreatureIn, int xz, int y, Vec3d targetVec3)
@Nullable private static Vec3d findRandomTargetBlock(EntityCreature entitycreatureIn, int xz, int y, @Nullable Vec3d targetVec3)
@Nullable private static Vec3d generateRandomPos(EntityCreature p_191379_0_, int p_191379_1_, int p_191379_2_, @Nullable Vec3d p_191379_3_, boolean p_191379_4_)
private static BlockPos moveAboveSolid(BlockPos p_191378_0_, EntityCreature p_191378_1_)
private static boolean isWaterDestination(BlockPos p_191380_0_, EntityCreature p_191380_1_)