Class GoToTargetLocation
java.lang.Object
net.minecraft.world.entity.ai.behavior.GoToTargetLocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(MemoryModuleType<BlockPos> locationMemory, int closeEnoughDist, float speedModifier) private static BlockPos
getNearbyPos
(Mob mob, BlockPos pos) private static int
getRandomOffset
(RandomSource random)
-
Constructor Details
-
GoToTargetLocation
public GoToTargetLocation()
-
-
Method Details
-
getNearbyPos
-
getRandomOffset
-
create
public static <E extends Mob> OneShot<E> create(MemoryModuleType<BlockPos> locationMemory, int closeEnoughDist, float speedModifier)
-