Package net.minecraft.entity.ai
Class RandomPositionGenerator
- java.lang.Object
-
- net.minecraft.entity.ai.RandomPositionGenerator
-
public class RandomPositionGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RandomPositionGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static Vector3d
generateRandomPos(CreatureEntity p_226339_0_, int p_226339_1_, int p_226339_2_, int p_226339_3_, Vector3d p_226339_4_, boolean p_226339_5_, double p_226339_6_, java.util.function.ToDoubleFunction<BlockPos> p_226339_8_, boolean p_226339_9_, int p_226339_10_, int p_226339_11_, boolean p_226339_12_)
static Vector3d
getAboveLandPos(CreatureEntity p_226340_0_, int p_226340_1_, int p_226340_2_, Vector3d p_226340_3_, float p_226340_4_, int p_226340_5_, int p_226340_6_)
static Vector3d
getAirPos(CreatureEntity p_226338_0_, int p_226338_1_, int p_226338_2_, int p_226338_3_, Vector3d p_226338_4_, double p_226338_5_)
static Vector3d
getAirPosTowards(CreatureEntity p_226344_0_, int p_226344_1_, int p_226344_2_, int p_226344_3_, Vector3d p_226344_4_, double p_226344_5_)
static Vector3d
getLandPos(CreatureEntity p_191377_0_, int p_191377_1_, int p_191377_2_)
static Vector3d
getLandPos(CreatureEntity p_221024_0_, int p_221024_1_, int p_221024_2_, java.util.function.ToDoubleFunction<BlockPos> p_221024_3_)
static Vector3d
getLandPosAvoid(CreatureEntity p_223548_0_, int p_223548_1_, int p_223548_2_, Vector3d p_223548_3_)
static Vector3d
getLandPosTowards(CreatureEntity p_234133_0_, int p_234133_1_, int p_234133_2_, Vector3d p_234133_3_)
static Vector3d
getPos(CreatureEntity p_75463_0_, int p_75463_1_, int p_75463_2_)
static Vector3d
getPosAvoid(CreatureEntity p_75461_0_, int p_75461_1_, int p_75461_2_, Vector3d p_75461_3_)
static Vector3d
getPosTowards(CreatureEntity p_75464_0_, int p_75464_1_, int p_75464_2_, Vector3d p_75464_3_)
static Vector3d
getPosTowards(CreatureEntity p_203155_0_, int p_203155_1_, int p_203155_2_, Vector3d p_203155_3_, double p_203155_4_)
private static BlockPos
getRandomDelta(java.util.Random p_226343_0_, int p_226343_1_, int p_226343_2_, int p_226343_3_, Vector3d p_226343_4_, double p_226343_5_)
(package private) static BlockPos
moveUpToAboveSolid(BlockPos p_226342_0_, int p_226342_1_, int p_226342_2_, java.util.function.Predicate<BlockPos> p_226342_3_)
-
-
-
Method Detail
-
getPos
@Nullable public static Vector3d getPos(CreatureEntity p_75463_0_, int p_75463_1_, int p_75463_2_)
-
getAirPos
@Nullable public static Vector3d getAirPos(CreatureEntity p_226338_0_, int p_226338_1_, int p_226338_2_, int p_226338_3_, @Nullable Vector3d p_226338_4_, double p_226338_5_)
-
getLandPos
@Nullable public static Vector3d getLandPos(CreatureEntity p_191377_0_, int p_191377_1_, int p_191377_2_)
-
getLandPos
@Nullable public static Vector3d getLandPos(CreatureEntity p_221024_0_, int p_221024_1_, int p_221024_2_, java.util.function.ToDoubleFunction<BlockPos> p_221024_3_)
-
getAboveLandPos
@Nullable public static Vector3d getAboveLandPos(CreatureEntity p_226340_0_, int p_226340_1_, int p_226340_2_, Vector3d p_226340_3_, float p_226340_4_, int p_226340_5_, int p_226340_6_)
-
getLandPosTowards
@Nullable public static Vector3d getLandPosTowards(CreatureEntity p_234133_0_, int p_234133_1_, int p_234133_2_, Vector3d p_234133_3_)
-
getPosTowards
@Nullable public static Vector3d getPosTowards(CreatureEntity p_75464_0_, int p_75464_1_, int p_75464_2_, Vector3d p_75464_3_)
-
getPosTowards
@Nullable public static Vector3d getPosTowards(CreatureEntity p_203155_0_, int p_203155_1_, int p_203155_2_, Vector3d p_203155_3_, double p_203155_4_)
-
getAirPosTowards
@Nullable public static Vector3d getAirPosTowards(CreatureEntity p_226344_0_, int p_226344_1_, int p_226344_2_, int p_226344_3_, Vector3d p_226344_4_, double p_226344_5_)
-
getPosAvoid
@Nullable public static Vector3d getPosAvoid(CreatureEntity p_75461_0_, int p_75461_1_, int p_75461_2_, Vector3d p_75461_3_)
-
getLandPosAvoid
@Nullable public static Vector3d getLandPosAvoid(CreatureEntity p_223548_0_, int p_223548_1_, int p_223548_2_, Vector3d p_223548_3_)
-
generateRandomPos
@Nullable private static Vector3d generateRandomPos(CreatureEntity p_226339_0_, int p_226339_1_, int p_226339_2_, int p_226339_3_, @Nullable Vector3d p_226339_4_, boolean p_226339_5_, double p_226339_6_, java.util.function.ToDoubleFunction<BlockPos> p_226339_8_, boolean p_226339_9_, int p_226339_10_, int p_226339_11_, boolean p_226339_12_)
-
getRandomDelta
@Nullable private static BlockPos getRandomDelta(java.util.Random p_226343_0_, int p_226343_1_, int p_226343_2_, int p_226343_3_, @Nullable Vector3d p_226343_4_, double p_226343_5_)
-
-