public class AIUtils
extends java.lang.Object
| Constructor and Description |
|---|
AIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.util.math.BlockPos |
computePosToward(net.minecraft.util.math.BlockPos current,
net.minecraft.util.math.BlockPos target,
int move) |
static net.minecraft.util.math.BlockPos |
findIntersect(net.minecraft.util.math.BlockPos center,
int radius,
net.minecraft.util.math.BlockPos start)
Finds the point on the radius edge where we'll intersect if we travel in a
straight line.
|
static net.minecraft.util.math.BlockPos |
findShore(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos center) |
static net.minecraft.util.math.BlockPos |
findSurface(net.minecraft.entity.EntityLiving entity) |
static net.minecraft.util.math.BlockPos |
findSurface(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static net.minecraft.util.math.BlockPos |
getBottom(net.minecraft.entity.EntityLiving entity) |
static int |
getWaterDepth(net.minecraft.entity.EntityLiving entity) |
static int |
getWaterDepth(net.minecraft.entity.EntityLiving entity,
boolean fromEntity) |
public static net.minecraft.util.math.BlockPos findIntersect(net.minecraft.util.math.BlockPos center,
int radius,
net.minecraft.util.math.BlockPos start)
center - Center of target area.radius - Radius of target area.start - Our starting (or current) location.public static net.minecraft.util.math.BlockPos computePosToward(net.minecraft.util.math.BlockPos current,
net.minecraft.util.math.BlockPos target,
int move)
public static net.minecraft.util.math.BlockPos findSurface(net.minecraft.entity.EntityLiving entity)
public static net.minecraft.util.math.BlockPos findSurface(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public static int getWaterDepth(net.minecraft.entity.EntityLiving entity)
public static int getWaterDepth(net.minecraft.entity.EntityLiving entity,
boolean fromEntity)
public static net.minecraft.util.math.BlockPos getBottom(net.minecraft.entity.EntityLiving entity)
public static net.minecraft.util.math.BlockPos findShore(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos center)